diff options
Diffstat (limited to 'xbmc/pvr/addons/PVRClient.h')
-rw-r--r-- | xbmc/pvr/addons/PVRClient.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/xbmc/pvr/addons/PVRClient.h b/xbmc/pvr/addons/PVRClient.h index 42f634a775..99b77c4458 100644 --- a/xbmc/pvr/addons/PVRClient.h +++ b/xbmc/pvr/addons/PVRClient.h @@ -42,7 +42,8 @@ class CPVRTimerInfoTag; class CPVRTimerType; class CPVRTimersContainer; -#define PVR_INVALID_CLIENT_ID (-2) +static constexpr int PVR_ANY_CLIENT_ID = -1; +static constexpr int PVR_INVALID_CLIENT_ID = -2; /*! * Interface from Kodi to a PVR add-on. @@ -164,18 +165,26 @@ public: const std::string& GetConnectionString() const; /*! - * @brief A friendly name used to uniquely identify the addon instance + * @brief The name of the PVR client, as specified by the addon developer. * @return string that can be used in log messages and the GUI. */ - const std::string GetFriendlyName() const; + std::string GetClientName() const; /*! - * @brief The name used by the PVR client addon instance + * @brief The name of the PVR client addon instance, as specified by the user in the addon + * settings. Empty if addon does not support multiple instances. * @return string that can be used in log messages and the GUI. */ std::string GetInstanceName() const; /*! + * @brief A name used to uniquely identify the client, inclusing addon name and instance + * name, if multiple instances are supported by the client implementation. + * @return string that can be used in log messages and the GUI. + */ + std::string GetFullClientName() const; + + /*! * @brief Get the disk space reported by the server. * @param iTotal The total disk space. * @param iUsed The used disk space. |