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
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (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 GNU
14  Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public
17  License along with Classified Ads; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20 
21 #ifndef CLASSIFIED_AD_H
22 #define CLASSIFIED_AD_H
23 #include <QString>
24 #include "../util/hash.h" // for class Hash
25 
26 class MController ;
27 class Profile ;
28 
35 class CA {
36 public:
37  CA() ;
38  ~CA() ;
44  QString displayName() const ;
45  QByteArray asJSon(const MController& aController) const ;
46  bool fromJSon(const QByteArray &aJSonBytes,
47  const MController& aController ) ;
51  QString iSenderName ;
53  quint32 iTimeOfPublish ;
58  QList<Hash> iAttachedFiles ;
59  QString iSubject ;
61  QString iGroup ;
62  QString iMessageText ;
63  QByteArray iProfileKey ;
69  QString iInComboBoxText ;
70 } ;
71 #endif
int iConcernsComboBoxIndex
Definition: ca.h:65
Hash is class that carries 160-bit digest.
Definition: hash.h:38
int iInComboBoxIndex
Definition: ca.h:66
~CA()
Hash iFingerPrint
Definition: ca.h:50
quint32 iTimeOfPublish
Definition: ca.h:53
QString iSubject
Definition: ca.h:59
CA()
int iAboutComboBoxIndex
Definition: ca.h:64
QString iSenderName
Definition: ca.h:51
Carrier-class for classified ad.
Definition: ca.h:35
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:43
QByteArray iProfileKey
Definition: ca.h:63
QString displayName() const
QList< Hash > iAttachedFiles
Definition: ca.h:58
QString iMessageText
Definition: ca.h:62
QString iGroup
Definition: ca.h:61
QString iConcernsComboBoxText
Definition: ca.h:68
Hash iSenderHash
Definition: ca.h:52
QString iInComboBoxText
Definition: ca.h:69
QByteArray asJSon(const MController &aController) const
QString iAboutComboBoxText
Definition: ca.h:67
Carrier-class for user-profile data.
Definition: profile.h:37
Hash iReplyTo
Definition: ca.h:60
bool fromJSon(const QByteArray &aJSonBytes, const MController &aController)