|
a/upmpd/mpdcli.hxx |
|
b/upmpd/mpdcli.hxx |
|
... |
|
... |
53 |
~MPDCli();
|
53 |
~MPDCli();
|
54 |
bool ok() {return m_ok && m_conn;}
|
54 |
bool ok() {return m_ok && m_conn;}
|
55 |
bool setVolume(int ivol, bool relative = false);
|
55 |
bool setVolume(int ivol, bool relative = false);
|
56 |
int getVolume();
|
56 |
int getVolume();
|
57 |
bool togglePause();
|
57 |
bool togglePause();
|
58 |
bool play();
|
58 |
bool play(int pos = -1);
|
59 |
bool stop();
|
59 |
bool stop();
|
60 |
bool next();
|
60 |
bool next();
|
61 |
bool previous();
|
61 |
bool previous();
|
62 |
bool repeat(bool on);
|
62 |
bool repeat(bool on);
|
63 |
bool random(bool on);
|
63 |
bool random(bool on);
|
64 |
bool single(bool on);
|
64 |
bool single(bool on);
|
|
|
65 |
bool seek(int seconds);
|
65 |
int insert(const std::string& uri, int pos);
|
66 |
int insert(const std::string& uri, int pos);
|
|
|
67 |
bool deleteId(int id);
|
|
|
68 |
bool statId(int id);
|
66 |
int curpos();
|
69 |
int curpos();
|
67 |
const struct MpdStatus& getStatus()
|
70 |
const struct MpdStatus& getStatus()
|
68 |
{
|
71 |
{
|
69 |
updStatus();
|
72 |
updStatus();
|
70 |
return m_stat;
|
73 |
return m_stat;
|