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