#include <contactid.h>
Definition at line 28 of file contactid.h.
◆ ~ContactId()
ContactId::~ContactId |
( |
| ) |
|
|
virtualdefault |
◆ ContactId() [1/4]
◆ ContactId() [2/4]
◆ ContactId() [3/4]
The default constructor. Creates an empty id.
Definition at line 29 of file contactid.cpp.
◆ ContactId() [4/4]
ContactId::ContactId |
( |
const QByteArray & |
rawId | ) |
|
|
explicitprotected |
◆ getByteArray()
QByteArray ContactId::getByteArray |
( |
| ) |
const |
Get a copy of the id.
- Returns
- Copied id bytes
Definition at line 101 of file contactid.cpp.
◆ getData()
const uint8_t * ContactId::getData |
( |
| ) |
const |
Returns a pointer to the raw id data.
- Returns
- Pointer to the raw id data, which is exactly
ContactId::getPkSize()
bytes long. Returns a nullptr if the ContactId is empty.
Definition at line 88 of file contactid.cpp.
◆ getSize()
virtual int ContactId::getSize |
( |
| ) |
const |
|
pure virtual |
◆ isEmpty()
bool ContactId::isEmpty |
( |
| ) |
const |
Checks if the ContactId contains a id.
- Returns
- True if there is a id, False otherwise.
Definition at line 110 of file contactid.cpp.
◆ operator!=()
bool ContactId::operator!= |
( |
const ContactId & |
other | ) |
const |
Compares the inequality of the ContactId.
- Parameters
-
- Returns
- True if both ContactIds are not equal, false otherwise.
Definition at line 59 of file contactid.cpp.
◆ operator<()
bool ContactId::operator< |
( |
const ContactId & |
other | ) |
const |
Compares two ContactIds.
- Parameters
-
- Returns
- True if this ContactIds is less than the other ContactId, false otherwise.
Definition at line 69 of file contactid.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator==()
bool ContactId::operator== |
( |
const ContactId & |
other | ) |
const |
◆ toString()
QString ContactId::toString |
( |
| ) |
const |
Converts the ContactId to a uppercase hex string.
- Returns
- QString containing the hex representation of the id
Definition at line 78 of file contactid.cpp.
◆ id
The documentation for this class was generated from the following files: