-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathcontrol.hpp
50 lines (38 loc) · 1.24 KB
/
control.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
#ifndef CONTROL_HPP
#define CONTROL_HPP
#include "using_upnp_namespace.hpp"
#include "upnp_global.hpp"
#include <QStringList>
START_DEFINE_UPNP_NAMESPACE
class CControlPoint;
class CActionInfo;
/*! \brief The base class for UPnP/AV specific objects (CConnectionManager, CAVTransport...).
*
* The CControl class is the base class for
* \li CConnectionManager
* \li CContentDirectory
* \li
* \li CRenderingContro
*/
class UPNP_API CControl
{
public:
/*! Default constructor. */
CControl () {}
/*! Constructor. */
CControl (CControlPoint* cp) : m_cp (cp) {}
/*! Sets the application control point. */
void setControlPoint (CControlPoint* cp) { m_cp = cp; }
/*! Returns the control point. */
CControlPoint* controlPoint () { return m_cp; }
/*! Returns a string list corresponding at CVS format (values separated by comma). */
QStringList fromCVS (QString entryString);
/*! Returns a boolean value corresponding at a string.
* True is returned if entryString doesn't start by '0' or 'f' or 'F';
*/
static bool toBool (QString const & entryString);
protected :
CControlPoint* m_cp = nullptr; //<! The control point of the application.
};
} // Namespace
#endif // CONTROL_HPP