X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fclient.h;h=31bdbec4d70ce6a571425a2dc51e2988ee2d29fd;hb=3bd92c1fa7a85b47356cd6f2bad23893955a0785;hp=1f543fc15861f4ebaf2e4cd923e05d38c4d1f37a;hpb=8c7e5bd0d1f966af2b22293a3a0780c419fb9c95;p=xinema.git diff --git a/source/client.h b/source/client.h index 1f543fc..31bdbec 100644 --- a/source/client.h +++ b/source/client.h @@ -1,17 +1,21 @@ #ifndef CLIENT_H_ #define CLIENT_H_ +#include #include #include +#include +class XineStream; class Xinema; -class Client +class Client: public sigc::trackable { private: Xinema &xinema; Msp::Net::StreamSocket *socket; std::string buffer; + Msp::Time::TimeDelta last_position; bool stale; public: @@ -26,6 +30,11 @@ private: void process_command(const std::string &); void send_reply(const std::string &); void list_directory(const Msp::FS::Path &); + + void stream_created(XineStream &); + void stream_title_changed(const std::string &); + void stream_duration_changed(const Msp::Time::TimeDelta &); + void stream_position_changed(const Msp::Time::TimeDelta &); }; #endif