Freya  0.0.1
A Gtk3 MPD Client
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
MPD::AbstractClientUser Class Reference

#include <AbstractClientUser.hh>

Inheritance diagram for MPD::AbstractClientUser:
[legend]
Collaboration diagram for MPD::AbstractClientUser:
[legend]

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.

Detailed Description

Definition at line 38 of file AbstractClientUser.hh.


Constructor & Destructor Documentation

Pass a MPD::Client ref to register it's signals and maintain a pointer to it.

Parameters:
clienta ref to a MPD::Client

Definition at line 46 of file AbstractClientUser.hh.

Here is the call graph for this function:


Member Function Documentation

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

Parameters:
mpd_idlethe type of the change (see http://www.musicpd.org/doc/libmpdclient/idle_8h.html#a3378f7a24c714d7cb1058232330d7a1c)
dataa reference to MPD::NotifyData, for use with get_status() etc.

Implemented in Browser::SettingsOutputs.

Here is the caller graph for this function:

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

Parameters:
server_changedtrue if the server changed on connect
is_connectedtrue if connected

Implemented in Browser::SettingsOutputs.

Here is the caller graph for this function:


Field Documentation

Setting the client is error-prone. This class does this for you.

Definition at line 85 of file AbstractClientUser.hh.


The documentation for this class was generated from the following file: