|
Classified ads
|
Carrier-class for a profile that is in contacts-list. More...
#include <contact.h>

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 |
Carrier-class for a profile that is in contacts-list.
Instances of this class are stored and retrieved by controller directly. Also note ContactsListingModel.
| Contact::Contact | ( | ) |
constructor
| Contact::~Contact | ( | ) |
destructor
| 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.
| bool Contact::fromJSon | ( | const QByteArray & | aJSonBytes, |
| const MController & | aController | ||
| ) |
parses json into members
|
static |
reverse of asQVariant()
| 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
1.8.11