Classified ads
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Contact Class Reference

Carrier-class for a profile that is in contacts-list. More...

#include <contact.h>

Collaboration diagram for Contact:
Collaboration graph
[legend]

Public Member Functions

 Contact ()
 
 ~Contact ()
 
QString displayName () const
 
QByteArray asJSon (const MController &aController) const
 
bool fromJSon (const QByteArray &aJSonBytes, const MController &aController)
 
QVariant asQVariant () const
 

Static Public Member Functions

static Contact fromQVariant (const QVariantMap &aJSonAsQVariant)
 

Public Attributes

Hash iFingerPrint
 
QString iNickName
 
bool iIsTrusted
 

Detailed Description

Carrier-class for a profile that is in contacts-list.

Instances of this class are stored and retrieved by controller directly. Also note ContactsListingModel.

Constructor & Destructor Documentation

◆ Contact()

Contact::Contact ( )

constructor

◆ ~Contact()

Contact::~Contact ( )

destructor

Member Function Documentation

◆ asJSon()

QByteArray Contact::asJSon ( const MController aController) const

returns msg data as JSon stream

◆ asQVariant()

QVariant Contact::asQVariant ( ) const

Method for getting contact as JSon / QVariant

◆ displayName()

QString Contact::displayName ( ) const

method for string that is shown to user about the message.

Returns
string to display to user

◆ fromJSon()

bool Contact::fromJSon ( const QByteArray &  aJSonBytes,
const MController aController 
)

parses json into members

◆ fromQVariant()

static Contact Contact::fromQVariant ( const QVariantMap &  aJSonAsQVariant)
static

reverse of asQVariant()

Returns
node or NULL if

Member Data Documentation

◆ iFingerPrint

Hash Contact::iFingerPrint

hash of the profile that is presented here

◆ iIsTrusted

bool Contact::iIsTrusted

In addition to being in contacts-list, this user is also trusted

◆ iNickName

QString Contact::iNickName

nickname/display-name of contact ; may empty if private profile


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