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

A Wrapper for mpd_status. More...

#include <Status.hh>

Public Member Functions

 Status (mpd_status &status, unsigned long nextSongID)
 ~Status ()
int get_volume ()
 Get volume 0-100.
bool get_repeat ()
 True if on repeat mode.
bool get_random ()
 True if on random mode.
bool get_single ()
 True if on single mode.
bool get_consume ()
 True if on consume mode.
unsigned get_queue_length ()
 Return the length of the queue (0 to UINT_MAX)
unsigned get_queue_version ()
 The version of the Queue, starting from 0.
mpd_state get_state ()
 State of the Playback, MPD_STATE_PAUSE,_PLAY...
unsigned get_crossfade ()
 Crossfade in seconds.
float get_mixrampdb ()
 Intelligent blending treshold.
float get_mixrampdelay ()
 Intelligent blending delay.
int get_song_pos ()
 Song position in the queue of the currently playing song.
int get_song_id ()
 Database ID of the current playing song.
unsigned get_elapsed_time ()
 Elapsed time in seconds of the current song.
unsigned get_elapsed_ms ()
 Elapsed time in milliseconds of the currently playing song (higher resolution)
unsigned get_total_time ()
 Total time of the current song in seconds.
unsigned get_kbit_rate ()
 Current kbit rate.
unsigned get_update_id ()
 Update ID, or 0 if no updates running.
const char * get_error ()
 Any error message, you dont need to use this.
uint32_t get_audio_sample_rate ()
 Current sample rate.
uint8_t get_audio_bits ()
 Used audio bits.
uint8_t get_audio_channels ()
 Used audio channels (Currently only Stereo or Mono)

Detailed Description

A Wrapper for mpd_status.

Definition at line 43 of file Status.hh.


Constructor & Destructor Documentation

MPD::Status::Status ( mpd_status &  status,
unsigned long  nextSongID 
)

Member Function Documentation

Used audio bits.

Returns:

Used audio channels (Currently only Stereo or Mono)

Returns:

Current sample rate.

Returns:

True if on consume mode.

Returns:

Here is the caller graph for this function:

Crossfade in seconds.

Returns:

Elapsed time in milliseconds of the currently playing song (higher resolution)

Returns:

Elapsed time in seconds of the current song.

Returns:
const char* MPD::Status::get_error ( )

Any error message, you dont need to use this.

Returns:

Current kbit rate.

Returns:

Intelligent blending treshold.

Returns:

Intelligent blending delay.

Returns:

Return the length of the queue (0 to UINT_MAX)

Returns:

The version of the Queue, starting from 0.

This is used for the plchanged command, to only list the changes the versions since XYZ

Returns:

True if on random mode.

Returns:

Here is the caller graph for this function:

True if on repeat mode.

Returns:

Here is the caller graph for this function:

True if on single mode.

Returns:

Here is the caller graph for this function:

Database ID of the current playing song.

Returns:

Song position in the queue of the currently playing song.

Returns:

State of the Playback, MPD_STATE_PAUSE,_PLAY...

Returns:

Total time of the current song in seconds.

Returns:

Update ID, or 0 if no updates running.

Returns:

Get volume 0-100.

Returns:

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