qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Types | Public Member Functions | List of all members
IProfileInfo Class Referenceabstract

#include <iprofileinfo.h>

Inheritance diagram for IProfileInfo:
Inheritance graph
Collaboration diagram for IProfileInfo:
Collaboration graph

Public Types

enum  RenameResult { RenameResult::OK, RenameResult::EmptyName, RenameResult::ProfileAlreadyExists, RenameResult::Error }
 
enum  SaveResult { SaveResult::OK, SaveResult::EmptyPath, SaveResult::NoWritePermission, SaveResult::Error }
 
enum  SetAvatarResult {
  SetAvatarResult::OK, SetAvatarResult::EmptyPath, SetAvatarResult::CanNotOpen, SetAvatarResult::CanNotRead,
  SetAvatarResult::TooLarge
}
 

Public Member Functions

 IProfileInfo ()=default
 
virtual ~IProfileInfo ()
 
 IProfileInfo (const IProfileInfo &)=default
 
IProfileInfooperator= (const IProfileInfo &)=default
 
 IProfileInfo (IProfileInfo &&)=default
 
IProfileInfooperator= (IProfileInfo &&)=default
 
virtual bool setPassword (const QString &password)=0
 
virtual bool deletePassword ()=0
 
virtual bool isEncrypted () const =0
 
virtual void copyId () const =0
 
virtual void setUsername (const QString &name)=0
 
virtual void setStatusMessage (const QString &status)=0
 
virtual QString getProfileName () const =0
 
virtual RenameResult renameProfile (const QString &name)=0
 
virtual SaveResult exportProfile (const QString &path) const =0
 
virtual QStringList removeProfile ()=0
 
virtual void logout ()=0
 
virtual void copyQr (const QImage &image) const =0
 
virtual SaveResult saveQr (const QImage &image, const QString &path) const =0
 
virtual SetAvatarResult setAvatar (const QString &path)=0
 
virtual void removeAvatar ()=0
 
 DECLARE_SIGNAL (idChanged, const ToxId &)
 
 DECLARE_SIGNAL (usernameChanged, const QString &)
 
 DECLARE_SIGNAL (statusMessageChanged, const QString &)
 

Detailed Description

Definition at line 28 of file iprofileinfo.h.

Member Enumeration Documentation

◆ RenameResult

Enumerator
OK 
EmptyName 
ProfileAlreadyExists 
Error 

Definition at line 31 of file iprofileinfo.h.

◆ SaveResult

Enumerator
OK 
EmptyPath 
NoWritePermission 
Error 

Definition at line 35 of file iprofileinfo.h.

◆ SetAvatarResult

Enumerator
OK 
EmptyPath 
CanNotOpen 
CanNotRead 
TooLarge 

Definition at line 39 of file iprofileinfo.h.

Constructor & Destructor Documentation

◆ IProfileInfo() [1/3]

IProfileInfo::IProfileInfo ( )
default

◆ ~IProfileInfo()

IProfileInfo::~IProfileInfo ( )
virtualdefault

◆ IProfileInfo() [2/3]

IProfileInfo::IProfileInfo ( const IProfileInfo )
default

◆ IProfileInfo() [3/3]

IProfileInfo::IProfileInfo ( IProfileInfo &&  )
default

Member Function Documentation

◆ copyId()

virtual void IProfileInfo::copyId ( ) const
pure virtual

Implemented in ProfileInfo.

Here is the caller graph for this function:

◆ copyQr()

virtual void IProfileInfo::copyQr ( const QImage &  image) const
pure virtual

Implemented in ProfileInfo.

Here is the caller graph for this function:

◆ DECLARE_SIGNAL() [1/3]

IProfileInfo::DECLARE_SIGNAL ( idChanged  ,
const ToxId  
)

◆ DECLARE_SIGNAL() [2/3]

IProfileInfo::DECLARE_SIGNAL ( statusMessageChanged  ,
const QString &   
)

◆ DECLARE_SIGNAL() [3/3]

IProfileInfo::DECLARE_SIGNAL ( usernameChanged  ,
const QString &   
)

◆ deletePassword()

virtual bool IProfileInfo::deletePassword ( )
pure virtual

Implemented in ProfileInfo.

Here is the caller graph for this function:

◆ exportProfile()

virtual SaveResult IProfileInfo::exportProfile ( const QString &  path) const
pure virtual

Implemented in ProfileInfo.

Here is the caller graph for this function:

◆ getProfileName()

virtual QString IProfileInfo::getProfileName ( ) const
pure virtual

Implemented in ProfileInfo.

Here is the caller graph for this function:

◆ isEncrypted()

virtual bool IProfileInfo::isEncrypted ( ) const
pure virtual

Implemented in ProfileInfo.

Here is the caller graph for this function:

◆ logout()

virtual void IProfileInfo::logout ( )
pure virtual

Implemented in ProfileInfo.

Here is the caller graph for this function:

◆ operator=() [1/2]

IProfileInfo& IProfileInfo::operator= ( const IProfileInfo )
default

◆ operator=() [2/2]

IProfileInfo& IProfileInfo::operator= ( IProfileInfo &&  )
default

◆ removeAvatar()

virtual void IProfileInfo::removeAvatar ( )
pure virtual

Implemented in ProfileInfo.

Here is the caller graph for this function:

◆ removeProfile()

virtual QStringList IProfileInfo::removeProfile ( )
pure virtual

Implemented in ProfileInfo.

Here is the caller graph for this function:

◆ renameProfile()

virtual RenameResult IProfileInfo::renameProfile ( const QString &  name)
pure virtual

Implemented in ProfileInfo.

Here is the caller graph for this function:

◆ saveQr()

virtual SaveResult IProfileInfo::saveQr ( const QImage &  image,
const QString &  path 
) const
pure virtual

Implemented in ProfileInfo.

Here is the caller graph for this function:

◆ setAvatar()

virtual SetAvatarResult IProfileInfo::setAvatar ( const QString &  path)
pure virtual

Implemented in ProfileInfo.

Here is the caller graph for this function:

◆ setPassword()

virtual bool IProfileInfo::setPassword ( const QString &  password)
pure virtual

Implemented in ProfileInfo.

Here is the caller graph for this function:

◆ setStatusMessage()

virtual void IProfileInfo::setStatusMessage ( const QString &  status)
pure virtual

Implemented in ProfileInfo.

Here is the caller graph for this function:

◆ setUsername()

virtual void IProfileInfo::setUsername ( const QString &  name)
pure virtual

Implemented in ProfileInfo.

Here is the caller graph for this function:

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