X-Git-Url: http://git.tdb.fi/?p=xinema.git;a=blobdiff_plain;f=source%2Fclient.h;h=fa2ea8d02ebdcfff8002b74e9f8bbb77071d894d;hp=1f543fc15861f4ebaf2e4cd923e05d38c4d1f37a;hb=ed777426d367df15a67082f5dae0911c21472b5f;hpb=de7f120098fc0e4455c532836767d8ed3fc340cc diff --git a/source/client.h b/source/client.h index 1f543fc..fa2ea8d 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,10 @@ 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_duration_changed(const Msp::Time::TimeDelta &); + void stream_position_changed(const Msp::Time::TimeDelta &); }; #endif