qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
This class represents a long term persistent group identifier. More...
#include <groupid.h>
Public Member Functions | |
GroupId () | |
The default constructor. Creates an empty Tox group ID. More... | |
GroupId (const GroupId &other) | |
The copy constructor. More... | |
GroupId (const QByteArray &rawId) | |
Constructs a GroupId from bytes. More... | |
GroupId (const uint8_t *rawId) | |
Constructs a GroupId from bytes. More... | |
int | getSize () const override |
Get size of public id in bytes. More... | |
![]() | |
virtual | ~ContactId () |
ContactId (const ContactId &)=default | |
ContactId & | operator= (const ContactId &)=default |
ContactId (ContactId &&)=default | |
ContactId & | operator= (ContactId &&)=default |
bool | operator== (const ContactId &other) const |
Compares the equality of the ContactId. More... | |
bool | operator!= (const ContactId &other) const |
Compares the inequality of the ContactId. More... | |
bool | operator< (const ContactId &other) const |
Compares two ContactIds. More... | |
QString | toString () const |
Converts the ContactId to a uppercase hex string. More... | |
QByteArray | getByteArray () const |
Get a copy of the id. More... | |
const uint8_t * | getData () const |
Returns a pointer to the raw id data. More... | |
bool | isEmpty () const |
Checks if the ContactId contains a id. More... | |
Additional Inherited Members | |
![]() | |
ContactId () | |
The default constructor. Creates an empty id. More... | |
ContactId (const QByteArray &rawId) | |
Constructs a ContactId from bytes. More... | |
![]() | |
QByteArray | id |
This class represents a long term persistent group identifier.
GroupId::GroupId | ( | ) |
The default constructor. Creates an empty Tox group ID.
Definition at line 36 of file groupid.cpp.
GroupId::GroupId | ( | const GroupId & | other | ) |
|
explicit |
Constructs a GroupId from bytes.
rawId | The bytes to construct the GroupId from. The lenght must be exactly TOX_CONFERENCE_UID_SIZE, else the GroupId will be empty. |
Definition at line 55 of file groupid.cpp.
|
explicit |
Constructs a GroupId from bytes.
rawId | The bytes to construct the GroupId from, will read exactly TOX_CONFERENCE_UID_SIZE from the specified buffer. |
Definition at line 67 of file groupid.cpp.
|
overridevirtual |
Get size of public id in bytes.
Implements ContactId.
Definition at line 76 of file groupid.cpp.