-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathargument.hpp
54 lines (40 loc) · 1.21 KB
/
argument.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
52
53
54
#ifndef ARGUMENT_HPP
#define ARGUMENT_HPP
#include "using_upnp_namespace.hpp"
#include "upnp_global.hpp"
#include <QSharedDataPointer>
START_DEFINE_UPNP_NAMESPACE
/*! Forward CArgument data. */
struct SArgumentData;
/*! \brief The CArgument class holds information about an action argument.
*
* \remark Use implicit Sharing QT technology.
*/
class UPNP_API CArgument
{
public:
/*! Direction of the variable. */
enum EDir { Unknown, //!< Unknown direction.
In, //!< The value is sent.
Out //!< The value is returned.
};
/*! Defaut constructor. */
CArgument ();
/*! Copy constructor. */
CArgument (CArgument const & other);
/*! Equal operator. */
CArgument& operator = (CArgument const & other);
~CArgument ();
/*! Returns the direction of the argument. */
EDir dir () const;
/*! Returns the related variable name. */
QString const & relatedStateVariable () const;
/*! Sets the direction of the argument. */
void setDir (EDir dir);
/*! Sets the name of the related variable. */
void setRelatedStateVariable (QString const & var);
private:
QSharedDataPointer<SArgumentData> m_d; //!< Shared data pointer.
};
} // Namespace
#endif // ARGUMENT_HPP