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