<class name="QUuid" doc="/** <p>The <a href="QUuid.html#QUuid(int, char, char, byte, byte, byte, byte, byte, byte, byte, byte)"><tt>QUuid</tt></a> class stores a Universally Unique Identifier (UUID).</p> <p>For objects or declarations that must be uniquely identified, UUIDs (also known as GUIDs) are widely used in order to assign a fixed and easy to compare value to the object or declaration. The 128-bit value of a UUID is generated by an algorithm that guarantees that the value is unique.</p> <p>In Qt, UUIDs are wrapped by the <a href="QUuid.html#QUuid(int, char, char, byte, byte, byte, byte, byte, byte, byte, byte)"><tt>QUuid</tt></a> struct which provides convenience functions for handling UUIDs. Most platforms provide a tool to generate new UUIDs, for example, <tt>uuidgen</tt> and <tt>guidgen</tt>.</p> <p>UUIDs generated by <a href="QUuid.html#QUuid(int, char, char, byte, byte, byte, byte, byte, byte, byte, byte)"><tt>QUuid</tt></a>, are based on the <tt>Random</tt> version of the <tt>DCE</tt> (Distributed Computing Environment) standard.</p> <p>UUIDs can be constructed from numeric values or from strings, or using the static <a href="QUuid.html#createUuid()"><tt>createUuid</tt></a> function. They can be converted to a string with <a href="QUuid.html#toString()"><tt>toString</tt></a>. UUIDs have a <a href="QUuid.html#variant()"><tt>variant</tt></a> and a <a href="QUuid.html#version()"><tt>version</tt></a>, and null UUIDs return true from <a href="QUuid.html#isNull()"><tt>isNull</tt></a>.</p> */"> <method name="public QUuid(java.lang.String arg__1)" doc="/** <p>Creates a <a href="QUuid.html#QUuid(int, char, char, byte, byte, byte, byte, byte, byte, byte, byte)"><tt>QUuid</tt></a> object from the string <tt>arg__1</tt>. The function can only convert a string in the format {HHHHHHHH-HHHH-HHHH-HHHH-HHHHHHHHHHHH} (where 'H' stands for a hex digit). If the conversion fails a null UUID is created.</p> */"/> <method name="public QUuid()" doc="/** <p>Creates the null UUID {00000000-0000-0000-0000-000000000000}.</p> */"/> <method name="public QUuid(int l, char w1, char w2, byte b1, byte b2, byte b3, byte b4, byte b5, byte b6, byte b7, byte b8)" doc="/** <p>Creates a UUID with the value specified by the parameters, <tt>l</tt>, <tt>w1</tt>, <tt>w2</tt>, <tt>b1</tt>, <tt>b2</tt>, <tt>b3</tt>, <tt>b4</tt>, <tt>b5</tt>, <tt>b6</tt>, <tt>b7</tt>, <tt>b8</tt>.</p> <p>Example:</p> <pre><span class="comment"> // {67C8770B-44F1-410A-AB9A-F9B5446F13EE}</span> QUuid IID_MyInterface(0x67c8770b, 0x44f1, 0x410a, 0xab, 0x9a, 0xf9, 0xb5, 0x44, 0x6f, 0x13, 0xee)</pre> */"/> <method name="public final boolean isNull()" doc="/** <p>Returns true if this is the null UUID {00000000-0000-0000-0000-000000000000}; otherwise returns false.</p> */"/> <method name="public final void writeTo(com.trolltech.qt.core.QDataStream arg__1)"/> <method name="public final void readFrom(com.trolltech.qt.core.QDataStream arg__1)"/> <method name="public final java.lang.String toString()" doc="/** <p>Returns the string representation of the uuid.</p> */"/> <method name="public final com.trolltech.qt.core.QUuid.Variant variant()" doc="/** <p>Returns the variant of the UUID. The null UUID is considered to be of an unknown variant.</p> @see <a href="QUuid.html#version()"><tt>version</tt></a> */"/> <method name="public final com.trolltech.qt.core.QUuid.Version version()" doc="/** <p>Returns the version of the UUID, if the UUID is of the DCE variant; otherwise returns <a href="QUuid.html#Version-enum"><tt>VerUnknown</tt></a>.</p> @see <a href="QUuid.html#variant()"><tt>variant</tt></a> */"/> <method name="public native static com.trolltech.qt.core.QUuid createUuid()" doc="/** <p>Returns a new UUID of <tt>DCE</tt> variant, and <tt>Random</tt> type. The UUIDs generated are based on the platform specific pseudo-random generator, which is usually not a cryptographic-quality random number generator. Therefore, a UUID is not guaranteed to be unique cross application instances.</p> <p>On Windows, the new UUID is extremely likely to be unique on the same or any other system, networked or not.</p> @see <a href="QUuid.html#variant()"><tt>variant</tt></a> @see <a href="QUuid.html#version()"><tt>version</tt></a> */"/> <enum name="Variant" doc="/** <p>This enum defines the variant of the UUID, which is the scheme which defines the layout of the 128-bits value.</p> */"> <enum-value name="VarUnknown" doc="/** <p>Variant is unknown</p> */"/> <enum-value name="NCS" doc="/** <p>Reserved for NCS (Network Computing System) backward compatibility</p> */"/> <enum-value name="DCE" doc="/** <p>Distributed Computing Environment, the scheme used by <a href="QUuid.html#QUuid(int, char, char, byte, byte, byte, byte, byte, byte, byte, byte)"><tt>QUuid</tt></a></p> */"/> <enum-value name="Microsoft" doc="/** <p>Reserved for Microsoft backward compatibility (GUID)</p> */"/> <enum-value name="Reserved" doc="/** <p>Reserved for future definition</p> */"/> </enum> <enum name="Version" doc="/** <p>This enum defines the version of the UUID.</p> */"> <enum-value name="VerUnknown" doc="/** <p>Version is unknown</p> */"/> <enum-value name="Time" doc="/** <p>Time-based, by using timestamp, clock sequence, and MAC network card address (if available) for the node sections</p> */"/> <enum-value name="EmbeddedPOSIX" doc="/** <p>DCE Security version, with embedded POSIX UUIDs</p> */"/> <enum-value name="Name" doc="/** <p>Name-based, by using values from a name for all sections</p> */"/> <enum-value name="Random" doc="/** <p>Random-based, by using random numbers for all sections</p> */"/> </enum> <method name="public final int data1()"/> <method name="public final void setData1(int data1)"/> <method name="public final char data2()"/> <method name="public final void setData2(char data2)"/> <method name="public final char data3()"/> <method name="public final void setData3(char data3)"/> <method name="public final byte[] data4()"/> <method name="public final void setData4(byte[] data4)"/> </class>