44 #ifndef PLAYERCLIENT_H
45 #define PLAYERCLIENT_H
47 #include "libplayerc++/utility.h"
48 #include "libplayerc++/playerc++config.h"
54 #if defined (PLAYER_STATIC)
55 #define PLAYERCC_EXPORT
56 #elif defined (playerc___EXPORTS)
57 #define PLAYERCC_EXPORT __declspec (dllexport)
59 #define PLAYERCC_EXPORT __declspec (dllimport)
62 #define PLAYERCC_EXPORT
65 #ifdef HAVE_BOOST_SIGNALS
66 #include <boost/signal.hpp>
69 #ifdef HAVE_BOOST_THREAD
70 #include <boost/thread/mutex.hpp>
71 #include <boost/thread/thread.hpp>
72 #include <boost/thread/xtime.hpp>
73 #include <boost/bind.hpp>
127 std::list<PlayerCc::ClientProxy*> mProxyList;
129 std::list<playerc_device_info_t> mDeviceList;
133 void Connect(
const std::string aHostname, uint32_t aPort);
142 std::string mHostname;
148 unsigned int mTransport;
170 bool Connected() {
return (NULL!=mClient && mClient->connected == 1) ?
true :
false; }
186 void Run(uint32_t aTimeout=10);
197 bool Peek(uint32_t timeout=0);
234 void ReadIfWaiting();
256 void SetDataMode(uint32_t aMode);
274 void SetReplaceRule(
bool aReplace,
281 void RequestDeviceList();
283 std::list<playerc_device_info_t> GetDeviceList();
292 int LookupCode(std::string aName)
const;
295 std::string LookupName(
int aCode)
const;
298 uint32_t GetOverflowCount();