-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconnectionmanager.hpp
51 lines (40 loc) · 1.32 KB
/
connectionmanager.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef CONNECTION_MANAGER_HPP
#define CONNECTION_MANAGER_HPP
#include "control.hpp"
#include "connectioninfo.hpp"
#include <QVector>
START_DEFINE_UPNP_NAMESPACE
class CControlPoint;
class CActionInfo;
/*! \brief A wrapper that manages the urn:schemas-upnp-org:service:ConnectionManager:1
* service actions.
*/
class CConnectionManager : public CControl
{
public:
/*! Defines the 2 directions for the protocols. */
enum EProtocolDir { Source, Sink };
/*! Default constructor. */
CConnectionManager () {}
/*! Constructor
* \param cp: The control point of the application.
*/
CConnectionManager (CControlPoint* cp) : CControl (cp) {}
/*! Invokes the GetCurrentConnectionInfo action.
* \param deviceUUID: Device uuid.
* \return The connection info.
*/
CConnectionInfo getCurrentConnectionInfo (QString const & deviceUUID);
/*! Invokes the >GetProtocolInfos action.
* \param deviceUUID: Renderer uuid.
* \return protocol info.
*/
QVector<QStringList> getProtocolInfos (QString const & deviceUUID);
/*! Invokes the GetCurrentConnectionIDs action.
* \param deviceUUID: Renderer uuid.
* \return Current connection IDs.
*/
QStringList getCurrentConnectionIDs (QString const & deviceUUID);
};
} // Namespace
#endif // CONNECTION_MANAGER_HPP