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
Browser::SettingsOutputs Class Reference

Outputlist Tab. More...

#include <SettingsOutputs.hh>

Inheritance diagram for Browser::SettingsOutputs:
[legend]
Collaboration diagram for Browser::SettingsOutputs:
[legend]

Public Member Functions

 SettingsOutputs (MPD::Client &client, Glib::RefPtr< Gtk::Builder > &builder, Browser::Settings *sett)
 ~SettingsOutputs ()
void accept_new_settings ()
void decline_new_settings ()
void reset_settings ()
void add_item (MPD::AbstractComposite *item)
 Called after calling (e.g.) fill_queue()

Protected Member Functions

void on_client_update (enum mpd_idle event, MPD::NotifyData &data)
 Derived class have to implement this.
void on_connection_change (bool, bool)
 Derived class have to implement this.
void on_toggle (const Glib::ustring &path)
bool on_select (const Glib::RefPtr< Gtk::TreeModel > &model, const Gtk::TreeModel::Path &path, bool)
void clear ()

Detailed Description

Outputlist Tab.

Definition at line 49 of file SettingsOutputs.hh.


Constructor & Destructor Documentation

Browser::SettingsOutputs::SettingsOutputs ( MPD::Client &  client,
Glib::RefPtr< Gtk::Builder > &  builder,
Browser::Settings *  sett 
)

Member Function Documentation

Called after calling (e.g.) fill_queue()

Cast this to the correct type, fill_queue delivers you for example a MPD::Song*

Parameters:
itema dynamically allocated item

Implements MPD::AbstractItemlist.

void Browser::SettingsOutputs::clear ( ) [protected]
void Browser::SettingsOutputs::on_client_update ( enum mpd_idle  mpd_idle,
MPD::NotifyData &  data 
) [protected, 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.

Implements MPD::AbstractClientUser.

void Browser::SettingsOutputs::on_connection_change ( bool  server_changed,
bool  is_connected 
) [protected, 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

Implements MPD::AbstractClientUser.

bool Browser::SettingsOutputs::on_select ( const Glib::RefPtr< Gtk::TreeModel > &  model,
const Gtk::TreeModel::Path &  path,
bool   
) [protected]
void Browser::SettingsOutputs::on_toggle ( const Glib::ustring &  path) [protected]

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