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

Wrapper for mpd_output, implements also two client commands: enable() and disable() More...

#include <AudioOutput.hh>

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

Public Member Functions

 AudioOutput (MPD::BaseClient &client, mpd_output &output)
 You cannot instance this class yourself.
unsigned get_id ()
 Output ID - this is usually not needed.
const char * get_name ()
 Get the name of this putput.
bool get_enabled ()
 Obvious.
bool enable ()
 Enable this output.
bool disable ()
 Disable this output.
const char * get_path ()
 Alias for get_name() (Implemented due to Compositum)

Detailed Description

Wrapper for mpd_output, implements also two client commands: enable() and disable()

Definition at line 45 of file AudioOutput.hh.


Constructor & Destructor Documentation

MPD::AudioOutput::AudioOutput ( MPD::BaseClient &  client,
mpd_output &  output 
)

You cannot instance this class yourself.

Parameters:
client
output

Member Function Documentation

Disable this output.

Returns:
true on success

Enable this output.

Returns:
true on success

Obvious.

Returns:

Output ID - this is usually not needed.

Returns:
an unsigned integer, starting from 0
const char* MPD::AudioOutput::get_name ( )

Get the name of this putput.

Returns:
a nullterminated string
const char* MPD::AudioOutput::get_path ( ) [virtual]

Alias for get_name() (Implemented due to Compositum)

Returns:

Implements MPD::AbstractComposite.


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