Freya  0.0.1
A Gtk3 MPD Client
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Data Structures | Typedefs | Enumerations
MPD Namespace Reference

Contains everything related to Interaction with the MPD Server. More...

Data Structures

class  AbstractClientExtension
 Abstract base class for classes that want to implement spefic MPD Commands. More...
class  AbstractClientUser
class  AbstractComposite
class  AbstractItemGenerator
class  AbstractItemlist
 Inhertit from this class to use MPD::Client's fill_* methods. More...
class  AudioOutput
 Wrapper for mpd_output, implements also two client commands: enable() and disable() More...
class  BaseClient
 The Base to MPD::Client. More...
class  Client
 The client implements concrete commands of the MPD Protocol. More...
class  Connection
 A convinience Wrapper around mpd_connection*. More...
class  Directory
 A wrapper for mpd_directory. More...
class  Listener
 Listener for Server events, Freya's actual core. More...
class  NotifyData
 NotifyData is passed as second argument to the on_client_update signal. More...
class  Playlist
 A Wrapper for mpd_playlist, also implements own client commands. More...
class  Query
class  Song
 A wrapper for mpd_song. More...
class  Statistics
 A wrapper for mpd_stats. More...
class  Status
 A Wrapper for mpd_status. More...

Typedefs

typedef sigc::signal< void,
bool, bool > 
ConnectionNotifier
 You can call sigc::signal::connect() on this.
typedef sigc::signal< void,
bool, mpd_error > 
ErrorNotify
 Called once check_error() notices an error.
typedef struct mpd_playlist mpd_playlist
typedef std::vector< MPD::Song * > SongVector
typedef std::vector< char * > TagVector
typedef struct mpd_song mpd_song
typedef struct mpd_stats mpd_stats
typedef enum mpd_state mpd_state

Enumerations

enum  QueryType { QUERY_TAGS, QUERY_SONGS }

Detailed Description

Contains everything related to Interaction with the MPD Server.

This class exists to allow use of the Proxy Pattern (i.e. a Proxy for MPD::Client)

Instead of talking directly with the client in order to request data some classes want to do implement something own, like for example a caching of the data.

An example would be the DatabaseCache that implements this class. It caches all data, and requests data only if not cached yet.


Typedef Documentation

typedef sigc::signal<void,bool,bool> MPD::ConnectionNotifier

You can call sigc::signal::connect() on this.

It gets emitted by the client whenever the connection changes, i.e. when getting disconnected or connected, in former case 'false' is passed as argument, in the latter 'true'

Definition at line 46 of file Connection.hh.

typedef sigc::signal<void, bool,mpd_error> MPD::ErrorNotify

Called once check_error() notices an error.

Definition at line 51 of file Connection.hh.

Definition at line 41 of file Playlist.hh.

typedef struct mpd_song MPD::mpd_song

Definition at line 39 of file Song.hh.

typedef enum mpd_state MPD::mpd_state

Definition at line 38 of file Status.hh.

typedef struct mpd_stats MPD::mpd_stats

Definition at line 38 of file Statistics.hh.

typedef std::vector<MPD::Song*> MPD::SongVector

Definition at line 18 of file Query.hh.

typedef std::vector<char*> MPD::TagVector

Definition at line 21 of file Query.hh.


Enumeration Type Documentation

Enumerator:
QUERY_TAGS 
QUERY_SONGS 

Definition at line 11 of file Query.hh.