#include </home/clem/local/src/opie/library/quuid.h>
Public Types | |
| enum | Variant { VarUnknown = -1, NCS = 0, DCE = 2, Microsoft = 6, Reserved = 7 } |
| enum | Variant { VarUnknown = -1, NCS = 0, DCE = 2, Microsoft = 6, Reserved = 7 } |
| enum | Version { VerUnknown = -1, Time = 1, EmbeddedPOSIX = 2, Name = 3, Random = 4 } |
Public Member Functions | |
| QUuid () | |
| QUuid (uint l, ushort w1, ushort w2, uchar b1, uchar b2, uchar b3, uchar b4, uchar b5, uchar b6, uchar b7, uchar b8) | |
| QUuid (const QUuid &uuid) | |
| QUuid (const QString &) | |
| QString | toString () const |
| bool | isNull () const |
| QUuid & | operator= (const QUuid &orig) |
| bool | operator== (const QUuid &orig) const |
| bool | operator!= (const QUuid &orig) const |
| bool | operator< (const QUuid &other) const |
| bool | operator> (const QUuid &other) const |
| QUuid::Variant | variant () const |
| QUuid () | |
| QUuid (uint l, ushort w1, ushort w2, uchar b1, uchar b2, uchar b3, uchar b4, uchar b5, uchar b6, uchar b7, uchar b8) | |
| QUuid (const QUuid &uuid) | |
| QUuid (const QString &) | |
| QUuid (const char *) | |
| QString | toString () const |
| operator QString () const | |
| bool | isNull () const |
| QUuid & | operator= (const QUuid &orig) |
| bool | operator== (const QUuid &orig) const |
| bool | operator!= (const QUuid &orig) const |
| bool | operator< (const QUuid &other) const |
| bool | operator> (const QUuid &other) const |
| QUuid::Variant | variant () const |
| QUuid::Version | version () const |
Static Public Member Functions | |
| static QUuid | createUuid () |
Public Attributes | |
| ulong | data1 |
| ushort | data2 |
| ushort | data3 |
| uchar | data4 [8] |
| uint | data1 |
Related Functions | |
| (Note that these are not member functions.) | |
| QDataStream & | operator<< (QDataStream &s, const QUuid &id) |
| QDataStream & | operator>> (QDataStream &s, QUuid &id) |
This class is temporarily copied from Qt 3.0.
Definition at line 28 of file quuid.h.
|
|
|
|
|
This enum defines the variant of the UUID, which is the scheme which defines the layout of the 128-bits value. VarUnknown Variant is unknown NCS Reserved for NCS (Network Computing System) backward compatibility DCE Distributed Computing Environment, the scheme used by QUuid Microsoft Reserved for Microsoft backward compatibility (GUID) Reserved Reserved for future definition |
|
|
This enum defines the version of the UUID. VerUnknown Version is unknown Time Time-based, by using timestamp, clock sequence, and MAC network card address (if available) for the node sections EmbeddedPOSIX DCE Security version, with embedded POSIX UUIDs Name Name-based, by using values from a name for all sections Random Random-based, by using random numbers for all sections |
|
|
Creates the null UUID {00000000-0000-0000-0000-000000000000}. Definition at line 38 of file quuid.h. Referenced by QUuid(). |
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Creates an UUID with the value specified by the parameters, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8. Example: // {67C8770B-44F1-410A-AB9A-F9B5446F13EE} QUuid IID_MyInterface( 0x67c8770b, 0x44f1, 0x410a, 0xab, 0x9a, 0xf9, 0xb5, 0x44, 0x6f, 0x13, 0xee ) |
|
|
Creates a copy of the QUuid orig. |
|
|
Creates a QUuid object from the string text. Right now, the function can only convert the format {12345678-1234-1234-1234-123456789ABC} and will create the null UUID when the conversion fails. Definition at line 62 of file quuid.cpp. References data1, data2, data3, data4, i, QString::mid(), QUuid(), and QString::upper(). |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
For internal use only.
Definition at line 148 of file quuid.cpp. References QUuid(). |
|
|
Returns a new UUID of On Windows, the new UUID is extremely likely to be unique on the same or any other system, networked or not.
Definition at line 391 of file quuid.cpp. References QDateTime::currentDateTime(), data, data1, data3, data4, and max. Referenced by VcprojGenerator::getProjectUUID(). |
|
|
|
|
|
Returns TRUE if this is the null UUID {00000000-0000-0000-0000-000000000000}, otherwise returns FALSE. Definition at line 151 of file quuid.cpp. References data1, data2, data3, and data4. Referenced by QComponentFactory::createInstance(), VcprojGenerator::getProjectUUID(), variant(), and version(). |
|
|
Returns the string representation of the uuid.
|
|
|
|
|
|
Returns TRUE if this QUuid and the other QUuid are different, otherwise returns FALSE. |
|
|
|
|
|
Returns TRUE if this QUuid is of the same variant, and lexicographically before the other QUuid; otherwise returns FALSE.
Definition at line 189 of file quuid.cpp. References data1, data2, data3, data4, FALSE, ISLESS, and variant(). |
|
|
|
|
|
Assigns the value of uuid to this QUuid object. |
|
|
|
|
|
Returns TRUE if this QUuid and the other QUuid are identical, otherwise returns FALSE. |
|
|
|
|
|
Returns TRUE if this QUuid is of the same variant, and lexicographically after the other QUuid; otherwise returns FALSE.
Definition at line 214 of file quuid.cpp. References data1, data2, data3, data4, FALSE, ISMORE, and variant(). |
|
|
|
|
|
QString QUuid::toString() const Returns a string in {12345678-1234-1234-1234-123456789ABC} format. Definition at line 132 of file quuid.cpp. References data1, data2, data3, data4, i, and QString::number(). Referenced by QComponentFactory::createInstance(), and VcprojGenerator::getProjectUUID(). |
|
|
|
|
|
Returns the variant of the UUID. The null UUID is considered to be of an unknown variant.
Definition at line 167 of file quuid.cpp. References data4, DCE, isNull(), Microsoft, NCS, Reserved, and VarUnknown. Referenced by operator<(), operator>(), and version(). |
|
|
Returns the version of the UUID, if the UUID is of the DCE variant; otherwise returns VerUnknown.
Definition at line 305 of file quuid.cpp. References data3, DCE, isNull(), Random, Time, variant(), and VerUnknown. |
|
||||||||||||
|
Writes the uuid id to the datastream s. Definition at line 207 of file quuid.cpp. References i. |
|
||||||||||||
|
Reads uuid from from the stream s into id. |
|
|
|
|
|
Definition at line 110 of file quuid.h. Referenced by createUuid(), isNull(), operator<(), operator=(), operator==(), operator>(), QUuid(), and toString(). |
|
|
Definition at line 181 of file quuid.h. Referenced by isNull(), operator<(), operator=(), operator==(), operator>(), QUuid(), and toString(). |
|
|
Definition at line 182 of file quuid.h. Referenced by createUuid(), VcprojGenerator::getProjectUUID(), isNull(), operator<(), operator=(), operator==(), operator>(), QUuid(), toString(), and version(). |
|
|
Definition at line 183 of file quuid.h. Referenced by createUuid(), VcprojGenerator::getProjectUUID(), VcprojGenerator::increaseUUID(), isNull(), operator<(), operator=(), operator==(), operator>(), QUuid(), toString(), and variant(). |
1.4.2