Herqq
|
This class is used to specify information that can be used to validate UPnP state variables. More...
#include <HStateVariablesSetupData>
Public Types | |
enum | DefaultInclusionPolicy { Accept, Deny } |
Public Member Functions | |
HStateVariablesSetupData (DefaultInclusionPolicy defIncPol=Accept) | |
DefaultInclusionPolicy | defaultInclusionPolicy () const |
bool | contains (const QString &name) const |
HStateVariableInfo | get (const QString &name) const |
bool | isEmpty () const |
QSet< QString > | names () const |
qint32 | size () const |
bool | insert (const HStateVariableInfo &newItem) |
bool | remove (const QString &name) |
bool | setInclusionRequirement (const QString &name, HInclusionRequirement incReq) |
This class is used to specify information that can be used to validate UPnP state variables.
This enumeration specifies the actions the HUPnP device model builder should take when it encounters an unknown state variable definition in a service description file.
HStateVariablesSetupData | ( | DefaultInclusionPolicy | defIncPol = Accept | ) |
Creates a new, empty instance.
defIncPol | specifies the default inclusion policy for state variables that are not contained in this instance. |
HStateVariablesSetupData::DefaultInclusionPolicy defaultInclusionPolicy | ( | ) | const |
Returns the default inclusion policy.
The default inclusion policy specifies the action to take when a state variable definition in a service description file does not map to any HStateVariableInfo object contained within this instance.
bool contains | ( | const QString & | name | ) | const |
HStateVariableInfo get | ( | const QString & | name | ) | const |
Retrieves an item.
name | specifies the name of the item to be retrieved. |
bool isEmpty | ( | ) | const |
Indicates if the object is empty.
QSet< QString > names | ( | ) | const |
Returns the names of the contained items.
qint32 size | ( | ) | const |
Returns the number of contained items.
bool insert | ( | const HStateVariableInfo & | newItem | ) |
Inserts a new item.
newItem | specifies the item to be added. |
newItem
.bool remove | ( | const QString & | name | ) |
Removes an existing item.
name | specifies the name of the item to be removed. |
bool setInclusionRequirement | ( | const QString & | name, |
HInclusionRequirement | incReq | ||
) |
Sets the inclusion requirement element of an item.
name | specifies the name of the item. |
incReq | specifies the inclusion requirement value. |