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 ( )

constructor

Contact::~Contact ( )

destructor

Member Function Documentation

QByteArray Contact::asJSon ( const MController aController) const

returns msg data as JSon stream

QVariant Contact::asQVariant ( ) const

Method for getting contact as JSon / QVariant

QString Contact::displayName ( ) const

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

Returns
string to display to user
bool Contact::fromJSon ( const QByteArray &  aJSonBytes,
const MController aController 
)

parses json into members

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

reverse of asQVariant()

Returns
node or NULL if

Member Data Documentation

Hash Contact::iFingerPrint

hash of the profile that is presented here

bool Contact::iIsTrusted

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

QString Contact::iNickName

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


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