Classified ads
dialogbase.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 #ifndef CA_DIALOG_BASE_H
20 #define CA_DIALOG_BASE_H
21 #include <QString>
22 #include <QDialog>
23 #include "../mcontroller.h"
24 
25 class Profile ;
26 class QLabel ;
27 
31 class DialogBase : public QDialog {
32  Q_OBJECT
33 
34 
35 protected: // methods
37  DialogBase(QWidget* aParent,
38  MController* aController,
39  const Profile& aSelectedProfile) ;
50  Hash publishBinaryAttachment(const QString& aFileName,
51  bool aForceNoEncryption = false,
52  const QList<Hash>* aBinaryRecipientList = NULL) ;
53 
54 signals:
56  const QString& aExplanation) ;
57 protected slots:
58  void attachButtonClicked() ;
59 protected: // variables
62  QList<QString> iFilesAboutToBeAttached ;
66 } ;
67 
68 #endif
Hash is class that carries 160-bit digest.
Definition: hash.h:37
CAErrorSituation
Definition: mcontroller.h:48
void attachButtonClicked()
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:39
MController * iController
Definition: dialogbase.h:60
void error(MController::CAErrorSituation aError, const QString &aExplanation)
const Profile & iSelectedProfile
Definition: dialogbase.h:61
QList< QString > iFilesAboutToBeAttached
Definition: dialogbase.h:62
QLabel * iAttachmentListLabel
Definition: dialogbase.h:65
DialogBase(QWidget *aParent, MController *aController, const Profile &aSelectedProfile)
Carrier-class for user-profile data.
Definition: profile.h:36
Hash publishBinaryAttachment(const QString &aFileName, bool aForceNoEncryption=false, const QList< Hash > *aBinaryRecipientList=NULL)
base-class for content-posting dialogs of classified ads
Definition: dialogbase.h:31