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

Carrier-class for classified ad. More...

#include <ca.h>

Collaboration diagram for CA:
Collaboration graph
[legend]

Public Member Functions

 CA ()
 
 ~CA ()
 
QString displayName () const
 
QByteArray asJSon (const MController &aController) const
 
bool fromJSon (const QByteArray &aJSonBytes, const MController &aController)
 

Public Attributes

Hash iFingerPrint
 
QString iSenderName
 
Hash iSenderHash
 
quint32 iTimeOfPublish
 
QList< HashiAttachedFiles
 
QString iSubject
 
Hash iReplyTo
 
QString iGroup
 
QString iMessageText
 
QByteArray iProfileKey
 
int iAboutComboBoxIndex
 
int iConcernsComboBoxIndex
 
int iInComboBoxIndex
 
QString iAboutComboBoxText
 
QString iConcernsComboBoxText
 
QString iInComboBoxText
 

Detailed Description

Carrier-class for classified ad.

Instances of this class are stored and retrieved using ClassifiedAdsModel.

Constructor & Destructor Documentation

CA::CA ( )

constructor

CA::~CA ( )

destructor

Member Function Documentation

QByteArray CA::asJSon ( const MController aController) const

returns ad data as JSon stream

QString CA::displayName ( ) const

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

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

parses json into members

Member Data Documentation

int CA::iAboutComboBoxIndex
QString CA::iAboutComboBoxText
QList<Hash> CA::iAttachedFiles

file attachements ; they're published as normal binary blobs and then just listed here

int CA::iConcernsComboBoxIndex
QString CA::iConcernsComboBoxText
Hash CA::iFingerPrint

hash of the message text .. more specifically hash of the ad when it is serialized into json

QString CA::iGroup

about-concerning-where -string - a bit like usenet newsgroup

int CA::iInComboBoxIndex
QString CA::iInComboBoxText
QString CA::iMessageText

actual message here

QByteArray CA::iProfileKey

in case of private profile, include only key

Hash CA::iReplyTo

Possible reference to another post that this is reply to

Hash CA::iSenderHash

profile fingerprint of the sender

QString CA::iSenderName

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

QString CA::iSubject

Subject of the post

quint32 CA::iTimeOfPublish

seconds since 1-jan-1970


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