An utility class for working with UPnP data types.
#include <HUpnpDataTypes>
Static Public Member Functions | |
static const QString & | ui1_str () |
static const QString & | ui2_str () |
static const QString & | ui4_str () |
static const QString & | i1_str () |
static const QString & | i2_str () |
static const QString & | i4_str () |
static const QString & | integer_str () |
static const QString & | r4_str () |
static const QString & | r8_str () |
static const QString & | number_str () |
static const QString & | fixed_14_4_str () |
static const QString & | fp_str () |
static const QString & | character_str () |
static const QString & | string_str () |
static const QString & | date_str () |
static const QString & | dateTime_str () |
static const QString & | dateTimeTz_str () |
static const QString & | time_str () |
static const QString & | time_tz_str () |
static const QString & | boolean_str () |
static const QString & | bin_base64_str () |
static const QString & | bin_hex_str () |
static const QString & | uri_str () |
static const QString & | uuid_str () |
static DataType | dataType (const QString &dataTypeAsStr) |
static bool | isNumeric (DataType datatype) |
static bool | isInteger (DataType datatype) |
static bool | isRational (DataType arg) |
static QString | toString (DataType datatype) |
enum DataType |
This enum type defines the UPnP data types set by the UPnP Device Architecture v1.1 specification.
static const QString& ui1_str | ( | ) | [inline, static] |
The string identifier for an unsigned 1 byte int.
static const QString& ui2_str | ( | ) | [inline, static] |
The string identifier for an unsigned 2 byte int.
static const QString& ui4_str | ( | ) | [inline, static] |
The string identifier for an unsigned 4 byte int.
static const QString& i1_str | ( | ) | [inline, static] |
The string identifier for a 1 byte int.
static const QString& i2_str | ( | ) | [inline, static] |
The string identifier for a 2 byte int.
static const QString& i4_str | ( | ) | [inline, static] |
The string identifier for a 4 byte int.
static const QString& integer_str | ( | ) | [inline, static] |
The string identifier for a fixed point, integer number.
static const QString& r4_str | ( | ) | [inline, static] |
The string identifier for a 4 byte float.
static const QString& r8_str | ( | ) | [inline, static] |
The string identifier for a 8 byte float.
static const QString& number_str | ( | ) | [inline, static] |
The string identifier for a 8 byte float.
This is an alias for r8.
static const QString& fixed_14_4_str | ( | ) | [inline, static] |
The string identifier for a 8 byte float that has no more than 14 digits to the left of the decimal point and no more than 4 to the right.
static const QString& fp_str | ( | ) | [inline, static] |
The string identifier for a floating point number.
static const QString& character_str | ( | ) | [inline, static] |
The string identifier for a unicode string that is one character long.
static const QString& string_str | ( | ) | [inline, static] |
The string identifier for a unicode string that has no limit on length.
static const QString& date_str | ( | ) | [inline, static] |
The string identifier for a date in a subset of ISO 8601 format without time data.
static const QString& dateTime_str | ( | ) | [inline, static] |
The string identifier for a date in ISO 8601 format with OPTIONAL time but no time zone.
static const QString& dateTimeTz_str | ( | ) | [inline, static] |
The string identifier for a date in ISO 8601 format with OPTIONAL time and OPTIONAL time zone.
static const QString& time_str | ( | ) | [inline, static] |
The string identifier for a time in a subset of ISO 8601 format with no date and no time zone.
static const QString& time_tz_str | ( | ) | [inline, static] |
The string identifier for a time in a subset of ISO 8601 format with OPTIONAL time zone but no date.
static const QString& boolean_str | ( | ) | [inline, static] |
The string identifier for a boolean.
static const QString& bin_base64_str | ( | ) | [inline, static] |
The string identifier for a MIME-style Base64 encoded binary BLOB.
static const QString& bin_hex_str | ( | ) | [inline, static] |
The string identifier for a hexadecimal digits representing octets.
static const QString& uri_str | ( | ) | [inline, static] |
The string identifier for a universal Resource Identifier.
static const QString& uuid_str | ( | ) | [inline, static] |
The string identifier for a universally Unique ID.
HUpnpDataTypes::DataType dataType | ( | const QString & | dataTypeAsStr ) | [static] |
Returns the UPnP data type enum value that matches the content of the specified string, if any.
dataTypeAsStr | specifies the "name" of the UPnP data type as string. For example, the string could contain "i4", which in the UDA v1.1 specification is defined as 4-byte signed integer. |
static bool isNumeric | ( | DataType | datatype ) | [inline, static] |
Indicates whether or not the specified data type is numeric.
datatype | specifies the data type to be checked. |
true | if the specified data type is numeric. |
false | in case the data type is not numeric or it is undefined. |
static bool isInteger | ( | DataType | datatype ) | [inline, static] |
Indicates whether or not the specified data type is an integer.
datatype | specifies the data type to be checked. |
true | if the specified data type is an integer. |
false | in case the data type is not an integer or it is undefined. |
static bool isRational | ( | DataType | arg ) | [inline, static] |
Indicates whether or not the specified data type is a rational number.
arg | specifies the data type to be checked. |
true | if the specified data type is a rational number. |
false | in case the data type is not rational or it is undefined. |
QString toString | ( | DataType | datatype ) | [static] |
Returns the UDA defined string representation of the specified data type.
datatype | specifies the data type which string representation is requested. |