Herqq
|
A storage class for HActionArgument instances. More...
#include <HActionArguments>
Public Member Functions | |
HActionArguments () | |
HActionArguments (const QVector< HActionArgument > &args) | |
HActionArguments (const HActionArguments &) | |
~HActionArguments () | |
HActionArguments & | operator= (const HActionArguments &) |
bool | contains (const QString &argumentName) const |
HActionArgument | get (const QString &argumentName) const |
HActionArgument | get (qint32 index) const |
HActionArguments::const_iterator | constBegin () const |
HActionArguments::const_iterator | constEnd () const |
HActionArguments::iterator | begin () |
HActionArguments::const_iterator | begin () const |
HActionArguments::iterator | end () |
HActionArguments::const_iterator | end () const |
qint32 | size () const |
HActionArgument | operator[] (qint32 index) const |
HActionArgument | operator[] (const QString &argName) const |
QStringList | names () const |
bool | isEmpty () const |
void | clear () |
bool | remove (const QString &name) |
bool | append (const HActionArgument &arg) |
QVariant | value (const QString &name, bool *ok=0) const |
bool | setValue (const QString &name, const QVariant &value) |
QString | toString () const |
Friends | |
H_UPNP_CORE_EXPORT bool | operator== (const HActionArguments &, const HActionArguments &) |
Related Functions | |
(Note that these are not member functions.) | |
H_UPNP_CORE_EXPORT void | swap (HActionArguments &, HActionArguments &) |
bool | operator!= (const HActionArguments &obj1, const HActionArguments &obj2) |
A storage class for HActionArgument instances.
Instances of this class are used to contain the input and output arguments for an action invocation.
HActionArguments | ( | ) |
Creates a new, empty instance.
HActionArguments | ( | const QVector< HActionArgument > & | args | ) |
Creates a new instance from the specified input arguments.
args | specifies the action argument objects this instance will contain. |
HActionArguments | ( | const HActionArguments & | ) |
Copy constructor.
Creates a copy of other
.
~HActionArguments | ( | ) |
Destroys the instance.
HActionArguments& operator= | ( | const HActionArguments & | ) |
Assignment operator.
Copies the contents of other
to this.
bool contains | ( | const QString & | argumentName | ) | const |
Indicates if the object contains an argument with the specified name.
argumentName | specifies the name of the action argument. |
HActionArgument get | ( | const QString & | argumentName | ) | const |
Returns an action argument with the specified name.
argumentName | specifies the name of the argument to be retrieved. |
HActionArgument get | ( | qint32 | index | ) | const |
Returns an action argument at the specified index.
index | specifies the index of the action argument to return. The index has to be valid position in the container, i.e. it must be 0 <= i < size(). |
HActionArguments::const_iterator constBegin | ( | ) | const |
Returns a const STL-style iterator pointing to the first item.
HActionArguments::const_iterator constEnd | ( | ) | const |
Returns a const STL-style iterator pointing to the imaginary item after the last item.
HActionArguments::iterator begin | ( | ) |
Returns an STL-style iterator pointing to the first item.
HActionArguments::const_iterator begin | ( | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
HActionArguments::iterator end | ( | ) |
Returns an STL-style iterator pointing to the imaginary item after the last item.
HActionArguments::const_iterator end | ( | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
qint32 size | ( | ) | const |
Returns the number of contained action arguments.
HActionArgument operator[] | ( | qint32 | index | ) | const |
Returns an action argument at the specified index.
This is the same as calling get() with the specified index. This method is provided for convenience.
index | specifies the index of the action argument to return. The index has to be valid position in the container, i.e. it must be 0 <= i < size(). |
HActionArgument operator[] | ( | const QString & | argName | ) | const |
Returns an action argument with the specified name.
This is the same as calling get() with the specified argument name. This method is provided for convenience.
argName | specifies the name of the argument to be retrieved. |
QStringList names | ( | ) | const |
Returns the names of all the contained action arguments.
bool isEmpty | ( | ) | const |
Indicates if the object is empty, i.e.
it has no action arguments.
void clear | ( | ) |
Removes every contained HActionArgument from this instance.
bool remove | ( | const QString & | name | ) |
Removes an HActionArgument with the specified name.
name | specifies the name of the HActionArgument to be removed. |
bool append | ( | const HActionArgument & | arg | ) |
Inserts an HActionArgument to this instance.
arg | specifies the HActionArgument to be added. |
QVariant value | ( | const QString & | name, |
bool * | ok = 0 |
||
) | const |
Returns the value of the specified state variable, if such exists.
This is a convenience method for retrieving the value of the specified state variable. Semantically this call is comparable to get("stateVariable_name").value()
.
name | specifies the name of the state variable. |
ok | specifies a pointer to bool , which will be true if the specified state variable was found. This parameter is optional. |
QVariant
is invalid. bool setValue | ( | const QString & | name, |
const QVariant & | value | ||
) |
Attempts to set the value of the specified state variable.
This is a convenience method for setting the value of the specified state variable. Semantically this call is comparable to get("stateVariable_name").setValue(value)
.
name | specifies the name of the state variable. |
value | specifies the value of the state variable. |
QString toString | ( | ) | const |
Returns a string representation of the object.
H_UPNP_CORE_EXPORT bool operator== | ( | const HActionArguments & | , |
const HActionArguments & | |||
) | [friend] |
Compares the two objects for equality.
H_UPNP_CORE_EXPORT void swap | ( | HActionArguments & | , |
HActionArguments & | |||
) | [friend] |
Swaps the contents of the two containers.
bool operator!= | ( | const HActionArguments & | obj1, |
const HActionArguments & | obj2 | ||
) | [related] |
Compares the two objects for inequality.