|
Freya
0.0.1
A Gtk3 MPD Client
|
#include <AbstractClientUser.hh>
Public Member Functions | |
| AbstractClientUser (MPD::Client &client) | |
| Pass a MPD::Client ref to register it's signals and maintain a pointer to it. | |
Protected Member Functions | |
| virtual void | on_client_update (enum mpd_idle, MPD::NotifyData &data)=0 |
| Derived class have to implement this. | |
| virtual void | on_connection_change (bool server_changed, bool is_connected)=0 |
| Derived class have to implement this. | |
Protected Attributes | |
| MPD::Client * | mp_Client |
| Setting the client is error-prone. This class does this for you. | |
Definition at line 38 of file AbstractClientUser.hh.
| MPD::AbstractClientUser::AbstractClientUser | ( | MPD::Client & | client | ) | [inline] |
Pass a MPD::Client ref to register it's signals and maintain a pointer to it.
| client | a ref to a MPD::Client |
Definition at line 46 of file AbstractClientUser.hh.
| virtual void MPD::AbstractClientUser::on_client_update | ( | enum | mpd_idle, |
| MPD::NotifyData & | data | ||
| ) | [protected, pure virtual] |
Derived class have to implement this.
It is called once the Listener notices any changed
| mpd_idle | the type of the change (see http://www.musicpd.org/doc/libmpdclient/idle_8h.html#a3378f7a24c714d7cb1058232330d7a1c) |
| data | a reference to MPD::NotifyData, for use with get_status() etc. |
Implemented in Browser::SettingsOutputs.
| virtual void MPD::AbstractClientUser::on_connection_change | ( | bool | server_changed, |
| bool | is_connected | ||
| ) | [protected, pure virtual] |
Derived class have to implement this.
Called once the Client connects or disconnects server_changed can only be true when is_connected is true
| server_changed | true if the server changed on connect |
| is_connected | true if connected |
Implemented in Browser::SettingsOutputs.
MPD::Client* MPD::AbstractClientUser::mp_Client [protected] |
Setting the client is error-prone. This class does this for you.
Definition at line 85 of file AbstractClientUser.hh.
1.8.0