Classified ads
ca.h
Go to the documentation of this file.
1 /* -*-C++-*- -*-coding: utf-8-unix;-*-
2  Classified Ads is Copyright (c) Antti Järvinen 2013.
3 
4  This file is part of Classified Ads.
5 
6  Classified Ads is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Classified Ads is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with Classified Ads. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #ifndef CLASSIFIED_AD_H
21 #define CLASSIFIED_AD_H
22 #include <QString>
23 #include "../util/hash.h" // for class Hash
24 
25 class MController ;
26 class Profile ;
27 
34 class CA {
35 public:
36  CA() ;
37  ~CA() ;
43  QString displayName() const ;
44  QByteArray asJSon(const MController& aController) const ;
45  bool fromJSon(const QByteArray &aJSonBytes,
46  const MController& aController ) ;
50  QString iSenderName ;
52  quint32 iTimeOfPublish ;
57  QList<Hash> iAttachedFiles ;
58  QString iSubject ;
60  QString iGroup ;
61  QString iMessageText ;
62  QByteArray iProfileKey ;
68  QString iInComboBoxText ;
69 } ;
70 #endif
int iConcernsComboBoxIndex
Definition: ca.h:64
Hash is class that carries 160-bit digest.
Definition: hash.h:37
int iInComboBoxIndex
Definition: ca.h:65
~CA()
Hash iFingerPrint
Definition: ca.h:49
quint32 iTimeOfPublish
Definition: ca.h:52
QString iSubject
Definition: ca.h:58
CA()
int iAboutComboBoxIndex
Definition: ca.h:63
QString iSenderName
Definition: ca.h:50
Carrier-class for classified ad.
Definition: ca.h:34
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:39
QByteArray iProfileKey
Definition: ca.h:62
QString displayName() const
QList< Hash > iAttachedFiles
Definition: ca.h:57
QString iMessageText
Definition: ca.h:61
QString iGroup
Definition: ca.h:60
QString iConcernsComboBoxText
Definition: ca.h:67
Hash iSenderHash
Definition: ca.h:51
QString iInComboBoxText
Definition: ca.h:68
QByteArray asJSon(const MController &aController) const
QString iAboutComboBoxText
Definition: ca.h:66
Carrier-class for user-profile data.
Definition: profile.h:36
Hash iReplyTo
Definition: ca.h:59
bool fromJSon(const QByteArray &aJSonBytes, const MController &aController)