Switch to unified view

a/upmpd/avtransport.hxx b/upmpd/avtransport.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 _AVTRANSPORT_H_X_INCLUDED_
17
#ifndef _AVTRANSPORT_H_X_INCLUDED_
18
#define _AVTRANSPORT_H_X_INCLUDED_
18
#define _AVTRANSPORT_H_X_INCLUDED_
19
19
20
#include <string>
20
#include <set>                          // for set
21
#include <string>                       // for string
22
#include <unordered_map>                // for unordered_map
23
#include <vector>                       // for vector
21
24
22
#include "libupnpp/device/device.hxx"
25
#include "libupnpp/device/device.hxx"   // for UpnpService
26
#include "libupnpp/soaphelp.hxx"        // for SoapArgs, SoapData
27
28
class OHPlaylist;
29
class UpMpd;
23
30
24
using namespace UPnPP;
31
using namespace UPnPP;
25
32
26
class UpMpd;
27
class OHPlaylist;
28
29
class UpMpdAVTransport : public UpnpService {
33
class UpMpdAVTransport : public UPnPProvider::UpnpService {
30
public:
34
public:
31
    UpMpdAVTransport(UpMpd *dev);
35
    UpMpdAVTransport(UpMpd *dev);
32
36
33
    virtual bool getEventData(bool all, std::vector<std::string>& names, 
37
    virtual bool getEventData(bool all, std::vector<std::string>& names, 
34
                              std::vector<std::string>& values);
38
                              std::vector<std::string>& values);
...
...
49
    int getCurrentTransportActions(const SoapArgs& sc, SoapData& data);
53
    int getCurrentTransportActions(const SoapArgs& sc, SoapData& data);
50
    int playcontrol(const SoapArgs& sc, SoapData& data, int what);
54
    int playcontrol(const SoapArgs& sc, SoapData& data, int what);
51
    int seek(const SoapArgs& sc, SoapData& data);
55
    int seek(const SoapArgs& sc, SoapData& data);
52
    int seqcontrol(const SoapArgs& sc, SoapData& data, int what);
56
    int seqcontrol(const SoapArgs& sc, SoapData& data, int what);
53
    // Translate MPD state to AVTransport state variables.
57
    // Translate MPD state to AVTransport state variables.
54
    bool tpstateMToU(unordered_map<string, string>& state);
58
    bool tpstateMToU(std::unordered_map<std::string, std::string>& state);
55
59
56
    UpMpd *m_dev;
60
    UpMpd *m_dev;
57
    OHPlaylist *m_ohp;
61
    OHPlaylist *m_ohp;
58
62
59
    // State variable storage
63
    // State variable storage
60
    unordered_map<string, string> m_tpstate;
64
    std::unordered_map<std::string, std::string> m_tpstate;
61
    string m_uri;
65
    std::string m_uri;
62
    string m_curMetadata;
66
    std::string m_curMetadata;
63
    string m_nextUri;
67
    std::string m_nextUri;
64
    string m_nextMetadata;
68
    std::string m_nextMetadata;
65
    // My track identifiers (for cleaning up)
69
    // My track identifiers (for cleaning up)
66
    set<int> m_songids;
70
    std::set<int> m_songids;
67
};
71
};
68
72
69
#endif /* _AVTRANSPORT_H_X_INCLUDED_ */
73
#endif /* _AVTRANSPORT_H_X_INCLUDED_ */