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

#include <aboutfriend.h>

Inheritance diagram for AboutFriend:
Inheritance graph
Collaboration diagram for AboutFriend:
Collaboration graph

Public Member Functions

 AboutFriend (const Friend *f, IFriendSettings *const settings)
 
QString getName () const override
 
QString getStatusMessage () const override
 
ToxPk getPublicKey () const override
 
QPixmap getAvatar () const override
 
QString getNote () const override
 
void setNote (const QString &note) override
 
QString getAutoAcceptDir () const override
 
void setAutoAcceptDir (const QString &path) override
 
IFriendSettings::AutoAcceptCallFlags getAutoAcceptCall () const override
 
void setAutoAcceptCall (IFriendSettings::AutoAcceptCallFlags flag) override
 
bool getAutoGroupInvite () const override
 
void setAutoGroupInvite (bool enabled) override
 
bool clearHistory () override
 
bool isHistoryExistence () override
 
- Public Member Functions inherited from IAboutFriend
 IAboutFriend ()=default
 
virtual ~IAboutFriend ()
 
 IAboutFriend (const IAboutFriend &)=default
 
IAboutFriendoperator= (const IAboutFriend &)=default
 
 IAboutFriend (IAboutFriend &&)=default
 
IAboutFriendoperator= (IAboutFriend &&)=default
 
 DECLARE_SIGNAL (nameChanged, const QString &)
 
 DECLARE_SIGNAL (statusChanged, const QString &)
 
 DECLARE_SIGNAL (publicKeyChanged, const QString &)
 
 DECLARE_SIGNAL (avatarChanged, const QPixmap &)
 
 DECLARE_SIGNAL (noteChanged, const QString &)
 
 DECLARE_SIGNAL (autoAcceptDirChanged, const QString &)
 
 DECLARE_SIGNAL (autoAcceptCallChanged, IFriendSettings::AutoAcceptCallFlags)
 
 DECLARE_SIGNAL (autoGroupInviteChanged, bool)
 

Private Attributes

const Friend *const f
 
IFriendSettings *const settings
 

Detailed Description

Definition at line 31 of file aboutfriend.h.

Constructor & Destructor Documentation

◆ AboutFriend()

AboutFriend::AboutFriend ( const Friend f,
IFriendSettings *const  settings 
)

Definition at line 27 of file aboutfriend.cpp.

Member Function Documentation

◆ clearHistory()

bool AboutFriend::clearHistory ( )
overridevirtual

Implements IAboutFriend.

Definition at line 121 of file aboutfriend.cpp.

Here is the call graph for this function:

◆ getAutoAcceptCall()

IFriendSettings::AutoAcceptCallFlags AboutFriend::getAutoAcceptCall ( ) const
overridevirtual

Implements IAboutFriend.

Definition at line 95 of file aboutfriend.cpp.

Here is the call graph for this function:

◆ getAutoAcceptDir()

QString AboutFriend::getAutoAcceptDir ( ) const
overridevirtual

Implements IAboutFriend.

Definition at line 82 of file aboutfriend.cpp.

Here is the call graph for this function:

◆ getAutoGroupInvite()

bool AboutFriend::getAutoGroupInvite ( ) const
overridevirtual

Implements IAboutFriend.

Definition at line 108 of file aboutfriend.cpp.

Here is the call graph for this function:

◆ getAvatar()

QPixmap AboutFriend::getAvatar ( ) const
overridevirtual

Implements IAboutFriend.

Definition at line 61 of file aboutfriend.cpp.

Here is the call graph for this function:

◆ getName()

QString AboutFriend::getName ( ) const
overridevirtual

Implements IAboutFriend.

Definition at line 46 of file aboutfriend.cpp.

Here is the call graph for this function:

◆ getNote()

QString AboutFriend::getNote ( ) const
overridevirtual

Implements IAboutFriend.

Definition at line 69 of file aboutfriend.cpp.

Here is the call graph for this function:

◆ getPublicKey()

ToxPk AboutFriend::getPublicKey ( ) const
overridevirtual

Implements IAboutFriend.

Definition at line 56 of file aboutfriend.cpp.

Here is the call graph for this function:

◆ getStatusMessage()

QString AboutFriend::getStatusMessage ( ) const
overridevirtual

Implements IAboutFriend.

Definition at line 51 of file aboutfriend.cpp.

Here is the call graph for this function:

◆ isHistoryExistence()

bool AboutFriend::isHistoryExistence ( )
overridevirtual

Implements IAboutFriend.

Definition at line 133 of file aboutfriend.cpp.

Here is the call graph for this function:

◆ setAutoAcceptCall()

void AboutFriend::setAutoAcceptCall ( IFriendSettings::AutoAcceptCallFlags  flag)
overridevirtual

Implements IAboutFriend.

Definition at line 101 of file aboutfriend.cpp.

Here is the call graph for this function:

◆ setAutoAcceptDir()

void AboutFriend::setAutoAcceptDir ( const QString &  path)
overridevirtual

Implements IAboutFriend.

Definition at line 88 of file aboutfriend.cpp.

Here is the call graph for this function:

◆ setAutoGroupInvite()

void AboutFriend::setAutoGroupInvite ( bool  enabled)
overridevirtual

Implements IAboutFriend.

Definition at line 114 of file aboutfriend.cpp.

Here is the call graph for this function:

◆ setNote()

void AboutFriend::setNote ( const QString &  note)
overridevirtual

Implements IAboutFriend.

Definition at line 75 of file aboutfriend.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ f

const Friend* const AboutFriend::f
private

Definition at line 71 of file aboutfriend.h.

◆ settings

IFriendSettings* const AboutFriend::settings
private

Definition at line 72 of file aboutfriend.h.


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