Switch to unified view

a/src/ohreceiver.hxx b/src/ohreceiver.hxx
...
...
30
using namespace UPnPP;
30
using namespace UPnPP;
31
class UpMpd;
31
class UpMpd;
32
class OHPlaylist;
32
class OHPlaylist;
33
class OHProduct;
33
class OHProduct;
34
34
35
struct OHReceiverParams {
36
    enum PlayMethod {OHRP_MPD, OHRP_ALSA};
37
    PlayMethod pm;
38
    OHPlaylist *pl;
39
    OHProduct *pr;
40
    int httpport;
41
    OHReceiverParams() : pm(OHRP_MPD), pl(0), pr(0), httpport(8768) {}
42
};
43
35
class OHReceiver : public UPnPProvider::UpnpService {
44
class OHReceiver : public UPnPProvider::UpnpService {
36
public:
45
public:
37
    OHReceiver(UpMpd *dev, OHPlaylist *pl, OHProduct *pr, int httpport);
46
    OHReceiver(UpMpd *dev, const OHReceiverParams& parms);
38
47
39
    virtual bool getEventData(bool all, std::vector<std::string>& names, 
48
    virtual bool getEventData(bool all, std::vector<std::string>& names, 
40
                              std::vector<std::string>& values);
49
                              std::vector<std::string>& values);
41
50
42
    virtual bool iStop();
51
    virtual bool iStop();
...
...
62
    OHProduct *m_pr;
71
    OHProduct *m_pr;
63
72
64
    std::shared_ptr<ExecCmd> m_cmd;
73
    std::shared_ptr<ExecCmd> m_cmd;
65
    int m_httpport;
74
    int m_httpport;
66
    std::string m_httpuri;
75
    std::string m_httpuri;
76
    OHReceiverParams::PlayMethod m_pm;
67
};
77
};
68
78
69
#endif /* _OHRECEIVER_H_X_INCLUDED_ */
79
#endif /* _OHRECEIVER_H_X_INCLUDED_ */