|
Herqq
|
An utility class for working with UPnP data types. More...
#include <HUpnpDataTypes>
Public Types | |
| enum | DataType { Undefined = 0, ui1, ui2, ui4 , i2, i4, integer, r4, r8, number, fixed_14_4, fp, character, string, date, dateTime, dateTimeTz, time, timeTz, boolean, bin_base64, bin_hex, uri, uuid } |
| typedef quint8 | ui1T |
| typedef quint16 | ui2T |
| typedef quint32 | ui4T |
| typedef qint8 | i1T |
| typedef qint16 | i2T |
| typedef qint32 | i4T |
| typedef i4T | integerT |
| typedef float | r4T |
| typedef qreal | r8T |
| typedef r8T | numberT |
| typedef qreal | fixed_14_4T |
| typedef float | fpT |
| typedef char | characterT |
| typedef QString | stringT |
| typedef QDate | dateT |
| typedef QDateTime | dateTimeT |
| typedef QTime | timeT |
| typedef QTime | time_tzT |
| typedef bool | booleanT |
| typedef QByteArray | bin_base64T |
| typedef QByteArray | bin_hexT |
| typedef QUrl | uriT |
| typedef QUuid | uuidT |
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) |
An utility class for working with UPnP data types.
| typedef quint8 ui1T |
Type definition for a DataType::ui1.
| typedef quint16 ui2T |
Type definition for a DataType::ui2.
| typedef quint32 ui4T |
Type definition for a DataType::ui4.
| typedef qint8 i1T |
Type definition for a DataType::i1.
| typedef qint16 i2T |
Type definition for a DataType::i2.
| typedef qint32 i4T |
Type definition for a DataType::i4.
| typedef float r4T |
Type definition for a DataType::r4.
| typedef qreal r8T |
Type definition for a DataType::r8.
| typedef qreal fixed_14_4T |
Type definition for a DataType::fixed_14_4.
| typedef float fpT |
Type definition for a DataType::fp.
| typedef char characterT |
Type definition for a DataType::char.
| typedef QString stringT |
Type definition for a DataType::string.
| typedef QDate dateT |
Type definition for a DataType::date.
| typedef QDateTime dateTimeT |
Type definition for a DataType::dateTime.
| typedef QTime timeT |
Type definition for a DataType::time.
| typedef QTime time_tzT |
Type definition for a DataType::timeTz.
| typedef bool booleanT |
Type definition for a DataType::boolean.
| typedef QByteArray bin_base64T |
Type definition for a DataType::bin_base64.
| typedef QByteArray bin_hexT |
Type definition for a DataType::bin_hex.
| typedef QUrl uriT |
Type definition for a DataType::uri.
| typedef QUuid uuidT |
Type definition for a DataType::uuid.
| 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. |
1.7.3