#include <mpdclient.hxx>
◆ mpdclient()
mpdclient::mpdclient |
( |
const char * |
host, |
|
|
unsigned |
port, |
|
|
unsigned |
_timeout_ms, |
|
|
const char * |
_password |
|
) |
| |
◆ ~mpdclient()
mpdclient::~mpdclient |
( |
| ) |
|
|
inline |
◆ GetSettingsName()
std::string mpdclient::GetSettingsName |
( |
| ) |
const |
Determine a human-readable "name" of the settings currently used to connect to MPD.
- Returns
- an allocated string that needs to be freed (with g_free()) by the caller
◆ IsConnected()
bool mpdclient::IsConnected |
( |
| ) |
const |
|
inline |
◆ IsDead()
gcc_pure bool mpdclient::IsDead |
( |
| ) |
const |
|
inline |
Is this object "dead"? i.e. not connected and not currently doing anything to connect.
◆ GetCurrentSong()
gcc_pure const struct mpd_song* mpdclient::GetCurrentSong |
( |
| ) |
const |
|
inline |
◆ Connect()
void mpdclient::Connect |
( |
| ) |
|
◆ Disconnect()
void mpdclient::Disconnect |
( |
| ) |
|
◆ HandleError()
bool mpdclient::HandleError |
( |
| ) |
|
◆ GetConnection()
struct mpd_connection* mpdclient::GetConnection |
( |
| ) |
|
◆ FinishCommand()
bool mpdclient::FinishCommand |
( |
| ) |
|
|
inline |
◆ Update()
bool mpdclient::Update |
( |
| ) |
|
◆ host
const char* mpdclient::host |
◆ port
◆ timeout_ms
const unsigned mpdclient::timeout_ms |
◆ password
const char* const mpdclient::password |
◆ playlist
◆ connection
struct mpd_connection* mpdclient::connection = nullptr |
◆ source
Tracks idle events. It is automatically called by mpdclient_get_connection().
◆ status
struct mpd_status* mpdclient::status = nullptr |
◆ song
const struct mpd_song* mpdclient::song = nullptr |
◆ enter_idle_source_id
unsigned mpdclient::enter_idle_source_id = 0 |
The GLib source id which re-enters MPD idle mode before the next main loop interation.
◆ connection_id
unsigned mpdclient::connection_id = 0 |
This attribute is incremented whenever the connection changes (i.e. on disconnection and (re-)connection).
◆ volume
int mpdclient::volume = -1 |
◆ events
unsigned mpdclient::events = 0 |
A bit mask of idle events occurred since the last update.
◆ state
enum mpd_state mpdclient::state = MPD_STATE_UNKNOWN |
◆ idle
bool mpdclient::idle = false |
This attribute is true when the connection is currently in "idle" mode, and the #mpd_glib_source waits for an event.
◆ playing
bool mpdclient::playing = false |
Is MPD currently playing?
◆ playing_or_paused
bool mpdclient::playing_or_paused = false |
Is MPD currently playing or paused?
The documentation for this struct was generated from the following file: