|
a/upmpd/mpdcli.hxx |
|
b/upmpd/mpdcli.hxx |
|
... |
|
... |
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
*/
|
16 |
*/
|
17 |
#ifndef _MPDCLI_H_X_INCLUDED_
|
17 |
#ifndef _MPDCLI_H_X_INCLUDED_
|
18 |
#define _MPDCLI_H_X_INCLUDED_
|
18 |
#define _MPDCLI_H_X_INCLUDED_
|
19 |
|
19 |
|
20 |
#include <unordered_map>
|
20 |
#include <regex.h> // for regex_t
|
21 |
#include <string>
|
21 |
#include <string> // for string
|
22 |
#include <map>
|
22 |
#include <vector> // for vector
|
23 |
#include <vector>
|
|
|
24 |
|
23 |
|
25 |
#include <regex.h>
|
24 |
struct mpd_song;
|
26 |
|
25 |
|
27 |
class UpSong {
|
26 |
class UpSong {
|
28 |
public:
|
27 |
public:
|
29 |
UpSong() : duration_secs(0), mpdid(0) {}
|
28 |
UpSong() : duration_secs(0), mpdid(0) {}
|
30 |
void clear() {
|
29 |
void clear() {
|
|
... |
|
... |
77 |
|
76 |
|
78 |
// Synthetized fields
|
77 |
// Synthetized fields
|
79 |
int trackcounter;
|
78 |
int trackcounter;
|
80 |
int detailscounter;
|
79 |
int detailscounter;
|
81 |
};
|
80 |
};
|
82 |
|
|
|
83 |
struct mpd_song;
|
|
|
84 |
|
81 |
|
85 |
class MPDCli {
|
82 |
class MPDCli {
|
86 |
public:
|
83 |
public:
|
87 |
MPDCli(const std::string& host, int port = 6600,
|
84 |
MPDCli(const std::string& host, int port = 6600,
|
88 |
const std::string& pass="");
|
85 |
const std::string& pass="");
|