qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Member Functions | List of all members
GroupId Class Reference

This class represents a long term persistent group identifier. More...

#include <groupid.h>

Inheritance diagram for GroupId:
Inheritance graph
Collaboration diagram for GroupId:
Collaboration graph

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...
 
- Public Member Functions inherited from ContactId
virtual ~ContactId ()
 
 ContactId (const ContactId &)=default
 
ContactIdoperator= (const ContactId &)=default
 
 ContactId (ContactId &&)=default
 
ContactIdoperator= (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

- Protected Member Functions inherited from ContactId
 ContactId ()
 The default constructor. Creates an empty id. More...
 
 ContactId (const QByteArray &rawId)
 Constructs a ContactId from bytes. More...
 
- Protected Attributes inherited from ContactId
QByteArray id
 

Detailed Description

This class represents a long term persistent group identifier.

Definition at line 26 of file groupid.h.

Constructor & Destructor Documentation

◆ GroupId() [1/4]

GroupId::GroupId ( )

The default constructor. Creates an empty Tox group ID.

Definition at line 36 of file groupid.cpp.

◆ GroupId() [2/4]

GroupId::GroupId ( const GroupId other)

The copy constructor.

Parameters
otherGroupId to copy

Definition at line 45 of file groupid.cpp.

◆ GroupId() [3/4]

GroupId::GroupId ( const QByteArray &  rawId)
explicit

Constructs a GroupId from bytes.

Parameters
rawIdThe 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.

◆ GroupId() [4/4]

GroupId::GroupId ( const uint8_t *  rawId)
explicit

Constructs a GroupId from bytes.

Parameters
rawIdThe 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.

Member Function Documentation

◆ getSize()

int GroupId::getSize ( ) const
overridevirtual

Get size of public id in bytes.

Returns
Size of public id in bytes.

Implements ContactId.

Definition at line 76 of file groupid.cpp.


The documentation for this class was generated from the following files: