#include <friend.h>
Definition at line 31 of file friend.h.
◆ Friend() [1/2]
Friend::Friend |
( |
uint32_t |
friendId, |
|
|
const ToxPk & |
friendPk, |
|
|
const QString & |
userAlias = {} , |
|
|
const QString & |
userName = {} |
|
) |
| |
◆ Friend() [2/2]
Friend::Friend |
( |
const Friend & |
other | ) |
|
|
delete |
◆ aliasChanged
void Friend::aliasChanged |
( |
const ToxPk & |
friendId, |
|
|
QString |
alias |
|
) |
| |
|
signal |
◆ extensionSupportChanged
void Friend::extensionSupportChanged |
( |
ExtensionSet |
extensions | ) |
|
|
signal |
◆ finishNegotiation()
void Friend::finishNegotiation |
( |
| ) |
|
◆ getDisplayedName()
QString Friend::getDisplayedName |
( |
| ) |
const |
|
overridevirtual |
Friend::getDisplayedName Gets the name that should be displayed for a user.
- Returns
- a QString containing either alias, username or public key
- Note
- This function and corresponding signal should be preferred over getting the name or alias directly.
Implements Contact.
Definition at line 112 of file friend.cpp.
◆ getEventFlag()
bool Friend::getEventFlag |
( |
| ) |
const |
|
overridevirtual |
◆ getId()
uint32_t Friend::getId |
( |
| ) |
const |
|
overridevirtual |
◆ getPersistentId()
const ContactId & Friend::getPersistentId |
( |
| ) |
const |
|
overridevirtual |
◆ getPublicKey()
const ToxPk & Friend::getPublicKey |
( |
| ) |
const |
◆ getStatus()
◆ getStatusMessage()
QString Friend::getStatusMessage |
( |
| ) |
const |
◆ getSupportedExtensions()
◆ getUserName()
QString Friend::getUserName |
( |
| ) |
const |
◆ hasAlias()
bool Friend::hasAlias |
( |
| ) |
const |
◆ loadChatHistory
void Friend::loadChatHistory |
( |
| ) |
|
|
signal |
◆ nameChanged
void Friend::nameChanged |
( |
const ToxPk & |
friendId, |
|
|
const QString & |
name |
|
) |
| |
|
signal |
◆ onlineOfflineChanged
void Friend::onlineOfflineChanged |
( |
const ToxPk & |
friendId, |
|
|
bool |
isOnline |
|
) |
| |
|
signal |
◆ onNegotiationComplete
void Friend::onNegotiationComplete |
( |
| ) |
|
|
slot |
◆ operator=()
◆ setAlias()
void Friend::setAlias |
( |
const QString & |
alias | ) |
|
Friend::setAlias sets the alias for the friend.
- Parameters
-
alias | new alias, removes it if set to an empty string |
Definition at line 76 of file friend.cpp.
◆ setEventFlag()
void Friend::setEventFlag |
( |
bool |
f | ) |
|
|
overridevirtual |
◆ setExtendedMessageSupport()
void Friend::setExtendedMessageSupport |
( |
bool |
supported | ) |
|
◆ setName()
void Friend::setName |
( |
const QString & |
_name | ) |
|
|
overridevirtual |
Friend::setName sets a new username for the friend.
- Parameters
-
_name | new username, sets the public key if _name is empty |
Implements Contact.
Definition at line 47 of file friend.cpp.
◆ setStatus()
◆ setStatusMessage()
void Friend::setStatusMessage |
( |
const QString & |
message | ) |
|
◆ statusChanged
◆ statusMessageChanged
void Friend::statusMessageChanged |
( |
const ToxPk & |
friendId, |
|
|
const QString & |
message |
|
) |
| |
|
signal |
◆ friendId
uint32_t Friend::friendId |
|
private |
◆ friendPk
◆ friendStatus
◆ hasNewEvents
bool Friend::hasNewEvents |
|
private |
◆ isNegotiating
bool Friend::isNegotiating |
|
private |
◆ statusMessage
QString Friend::statusMessage |
|
private |
◆ supportedExtensions
◆ userAlias
QString Friend::userAlias |
|
private |
◆ userName
The documentation for this class was generated from the following files: