|
a/libupnpp/control/avtransport.hxx |
|
b/libupnpp/control/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_HXX_INCLUDED_
|
17 |
#ifndef _AVTRANSPORT_HXX_INCLUDED_
|
18 |
#define _AVTRANSPORT_HXX_INCLUDED_
|
18 |
#define _AVTRANSPORT_HXX_INCLUDED_
|
19 |
|
19 |
|
20 |
#include <memory> // for shared_ptr
|
20 |
#include "libupnpp/config.h"
|
|
|
21 |
|
21 |
#include <string> // for string
|
22 |
#include <string> // for string
|
22 |
#include <unordered_map> // for unordered_map
|
|
|
23 |
|
23 |
|
24 |
#include "libupnpp/control/cdircontent.hxx" // for UPnPDirObject
|
24 |
#include "libupnpp/control/cdircontent.hxx" // for UPnPDirObject
|
25 |
#include "libupnpp/control/service.hxx" // for Service
|
25 |
#include "libupnpp/control/service.hxx" // for Service
|
26 |
|
26 |
|
27 |
namespace UPnPClient { class AVTransport; }
|
27 |
namespace UPnPClient { class AVTransport; }
|
28 |
namespace UPnPClient { class UPnPDeviceDesc; }
|
28 |
namespace UPnPClient { class UPnPDeviceDesc; }
|
29 |
namespace UPnPClient { class UPnPServiceDesc; }
|
29 |
namespace UPnPClient { class UPnPServiceDesc; }
|
30 |
|
30 |
|
31 |
namespace UPnPClient {
|
31 |
namespace UPnPClient {
|
32 |
|
32 |
|
33 |
typedef std::shared_ptr<AVTransport> AVTH;
|
33 |
typedef STD_SHARED_PTR<AVTransport> AVTH;
|
34 |
|
34 |
|
35 |
/**
|
35 |
/**
|
36 |
* AVTransport Service client class.
|
36 |
* AVTransport Service client class.
|
37 |
*
|
37 |
*
|
38 |
*/
|
38 |
*/
|
|
... |
|
... |
148 |
int setURI(const std::string& uri, const std::string& metadata,
|
148 |
int setURI(const std::string& uri, const std::string& metadata,
|
149 |
int instanceID, bool next);
|
149 |
int instanceID, bool next);
|
150 |
int CTAStringToBits(const std::string& actions, int& iacts);
|
150 |
int CTAStringToBits(const std::string& actions, int& iacts);
|
151 |
|
151 |
|
152 |
private:
|
152 |
private:
|
153 |
void evtCallback(const std::unordered_map<std::string, std::string>&);
|
153 |
void evtCallback(const STD_UNORDERED_MAP<std::string, std::string>&);
|
154 |
void registerCallback();
|
154 |
void registerCallback();
|
155 |
|
155 |
|
156 |
};
|
156 |
};
|
157 |
|
157 |
|
158 |
} // namespace UPnPClient
|
158 |
} // namespace UPnPClient
|