qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
Go to the documentation of this file.
34 explicit ToxId(
const QString&
id);
35 explicit ToxId(
const QByteArray& rawId);
36 explicit ToxId(
const uint8_t* rawId,
int len);
47 static bool isToxId(
const QString&
id);
bool operator!=(const ToxId &other) const
Compares the inequality of the Public Key.
QString toString() const
Returns the Tox ID converted to QString. Is equal to getPublicKey() if the Tox ID was constructed fro...
QByteArray getToxId() const
QString getNoSpamString() const
Returns the NoSpam value converted to QString.
ToxId & operator=(const ToxId &other)=default
void constructToxId(const QByteArray &rawId)
void clear()
Clears all elements of the Tox ID.
static const QRegularExpression ToxIdRegEx
bool isValid() const
Check it it's a valid Tox ID by verifying the checksum.
const uint8_t * getBytes() const
Gets the ToxID as bytes, convenience function for toxcore interface.
ToxId()
The default constructor. Creates an empty Tox ID.
static bool isToxId(const QString &id)
Check, that id is probably a valid Tox ID.
ToxPk getPublicKey() const
Gets the Public Key part of the ToxID.
This class represents a Tox Public Key, which is a part of Tox ID.
This class represents a Tox ID.
bool operator==(const ToxId &other) const
Compares the equality of the Public Key.
static bool isValidToxId(const QString &id)
Check, that id is a valid Tox ID.