blob: 7f1d8750996c431b8bc91ed3ebc685973474a7a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* Copyright (C) 2005-2018 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#pragma once
#include "interfaces/json-rpc/ITransportLayer.h"
#include "interfaces/json-rpc/JSONRPC.h"
class CVariant;
class CAddOnTransport : public JSONRPC::ITransportLayer
{
public:
bool PrepareDownload(const char *path, CVariant &details, std::string &protocol) override { return false; }
bool Download(const char *path, CVariant& result) override { return false; }
int GetCapabilities() override { return JSONRPC::Response; }
class CAddOnClient : public JSONRPC::IClient
{
public:
int GetPermissionFlags() override { return JSONRPC::OPERATION_PERMISSION_ALL; }
int GetAnnouncementFlags() override { return 0; }
bool SetAnnouncementFlags(int flags) override { return true; }
};
};
|