diff options
author | chriszero <zerov83@gmail.com> | 2014-11-17 21:38:09 +0100 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2014-11-17 21:38:09 +0100 |
commit | fc243d8bfde7c24168b67f90341e7d0d114114b2 (patch) | |
tree | c8756fd61712d63801f2085959ac1b9468533af6 /SubscriptionManager.h | |
parent | 23f9f7712bfa33b5a488a447a6fabe6035cc3240 (diff) | |
download | vdr-plugin-plex-fc243d8bfde7c24168b67f90341e7d0d114114b2.tar.gz vdr-plugin-plex-fc243d8bfde7c24168b67f90341e7d0d114114b2.tar.bz2 |
Removed c++11 dependency
Diffstat (limited to 'SubscriptionManager.h')
-rw-r--r-- | SubscriptionManager.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/SubscriptionManager.h b/SubscriptionManager.h index a411256..44ec899 100644 --- a/SubscriptionManager.h +++ b/SubscriptionManager.h @@ -1,10 +1,11 @@ #ifndef SUBSCRIPTIONMANAGER_H #define SUBSCRIPTIONMANAGER_H +#include <vdr/tools.h> #include <string> #include <iostream> #include <map> -#include <mutex> +//#include <mutex> #include <sstream> #include "player.h" @@ -26,7 +27,8 @@ class Subscriber void SendUpdate(std::string msg, bool isNav); virtual std::string to_string() { - return "Subscriber-> Host: " + m_sHost + "; Port:" + std::to_string(m_iPort) + "; Uuid:" + m_sUuid + "; CmdID:" + std::to_string(m_iCommandId); + return "Subscriber-> Host: " + m_sHost + "; Port: " + std::string(itoa(m_iPort)) + "; Uuid:" + m_sUuid + "; CmdID:" + std::string(itoa(m_iCommandId)); + return ""; } private: @@ -53,7 +55,7 @@ public: private: SubscriptionManager(); - std::mutex mutex; + //std::mutex mutex; std::map<std::string, Subscriber> m_mSubcribers; }; @@ -70,8 +72,8 @@ class ActionManager private: ActionManager(); - std::string m_sAction = ""; - bool m_isAction = false; + std::string m_sAction; + bool m_isAction; }; } |