|
a/libupnpp/control/ohplaylist.hxx |
|
b/libupnpp/control/ohplaylist.hxx |
|
... |
|
... |
19 |
|
19 |
|
20 |
#include <string>
|
20 |
#include <string>
|
21 |
#include <memory>
|
21 |
#include <memory>
|
22 |
|
22 |
|
23 |
#include "service.hxx"
|
23 |
#include "service.hxx"
|
|
|
24 |
#include "cdircontent.hxx"
|
24 |
|
25 |
|
25 |
namespace UPnPClient {
|
26 |
namespace UPnPClient {
|
26 |
|
27 |
|
27 |
class OHPlaylist;
|
28 |
class OHPlaylist;
|
28 |
typedef std::shared_ptr<OHPlaylist> OHPLH;
|
29 |
typedef std::shared_ptr<OHPlaylist> OHPLH;
|
|
... |
|
... |
41 |
OHPlaylist() {}
|
42 |
OHPlaylist() {}
|
42 |
|
43 |
|
43 |
/** Test service type from discovery message */
|
44 |
/** Test service type from discovery message */
|
44 |
static bool isOHPlService(const std::string& st);
|
45 |
static bool isOHPlService(const std::string& st);
|
45 |
|
46 |
|
|
|
47 |
int play();
|
|
|
48 |
int pause();
|
|
|
49 |
int stop();
|
|
|
50 |
int next();
|
|
|
51 |
int previous();
|
|
|
52 |
int setRepeat(bool onoff);
|
|
|
53 |
int repeat(bool *on);
|
|
|
54 |
int setShuffle(bool onoff);
|
|
|
55 |
int shuffle(bool *on);
|
|
|
56 |
int seekSecondAbsolute(int value);
|
|
|
57 |
int seekSecondRelative(int value);
|
|
|
58 |
int seekId(int value);
|
|
|
59 |
int seekIndex(int value);
|
|
|
60 |
enum TPState {TPS_Unknown, TPS_Buffering, TPS_Paused, TPS_Playing,
|
|
|
61 |
TPS_Stopped};
|
|
|
62 |
int transportState(TPState *tps);
|
|
|
63 |
int id(int *value);
|
|
|
64 |
int read(int id, std::string* uri, UPnPDirObject *dirent);
|
|
|
65 |
|
|
|
66 |
struct TrackListEntry {
|
|
|
67 |
int id;
|
|
|
68 |
std::string url;
|
|
|
69 |
UPnPDirObject dirent;
|
|
|
70 |
void clear() {id = -1; url.clear(); dirent.clear();}
|
|
|
71 |
};
|
|
|
72 |
int readList(const std::vector<int>& ids,
|
|
|
73 |
std::vector<TrackListEntry>* entsp);
|
|
|
74 |
|
|
|
75 |
int insert(int afterid, const string& uri, const string& didl, int *nid);
|
|
|
76 |
int deleteId(int id);
|
|
|
77 |
int deleteAll();
|
|
|
78 |
int tracksMax(int *);
|
|
|
79 |
int idArray(std::vector<int> *ids, int *tokp);
|
|
|
80 |
int idArrayChanged(int token, bool *changed);
|
|
|
81 |
int protocolInfo(std::string *proto);
|
|
|
82 |
|
46 |
protected:
|
83 |
protected:
|
47 |
/* My service type string */
|
84 |
/* My service type string */
|
48 |
static const std::string SType;
|
85 |
static const std::string SType;
|
49 |
};
|
86 |
};
|
50 |
|
87 |
|