X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fclient.h;h=671290e1b86cf4f65dea17675957e99a6fb8ac77;hb=a4982bb4d3fd9908aa01c824ac6202ac8618ac24;hp=fa2ea8d02ebdcfff8002b74e9f8bbb77071d894d;hpb=ed777426d367df15a67082f5dae0911c21472b5f;p=xinema.git diff --git a/source/client.h b/source/client.h index fa2ea8d..671290e 100644 --- a/source/client.h +++ b/source/client.h @@ -5,8 +5,8 @@ #include #include #include +#include "xinestream.h" -class XineStream; class Xinema; class Client: public sigc::trackable @@ -15,6 +15,7 @@ private: Xinema &xinema; Msp::Net::StreamSocket *socket; std::string buffer; + Msp::Mutex mutex; Msp::Time::TimeDelta last_position; bool stale; @@ -27,13 +28,20 @@ private: void data_available(); void end_of_stream(); + XineStream &get_stream() const; void process_command(const std::string &); void send_reply(const std::string &); void list_directory(const Msp::FS::Path &); + void set_audio_channel(const std::string &); + void set_spu_channel(const std::string &); void stream_created(XineStream &); + void stream_destroyed(); + void stream_state_changed(XineStream::State); + void stream_title_changed(const std::string &); void stream_duration_changed(const Msp::Time::TimeDelta &); void stream_position_changed(const Msp::Time::TimeDelta &); + void stream_channels_changed(); }; #endif