Classified ads
newclassifiedaddialog.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 NEW_CLASSIFIED_AD_DIALOG_H
21 #define NEW_CLASSIFIED_AD_DIALOG_H
22 
23 #include <QDialog>
24 #include "../mcontroller.h"
25 #include "../ui_newClassifiedAd.h"
26 #include "../textedit/textedit.h"
27 
28 class ProfileSearchModel ;
30 class Profile ;
31 class CAListingModel ;
39 {
40  Q_OBJECT
41 
42 public:
61  NewClassifiedAdDialog(QWidget *aParent,
62  MController* aController,
63  int aAboutComboxIndex ,
64  int aRegardingComboxIndex ,
65  int aWhereComboxIndex ,
66  const QString& aAboutComboText,
67  const QString& aRegardingComboText,
68  const QString& aWhereComboxText,
69  const Profile& aSelectedProfile,
70  CAListingModel& aCaListingModel,
71  const Hash* aReferences = NULL,
72  const QString* aSubject = NULL );
75 
76 private slots:
77  void okButtonClicked() ;
78  void cancelButtonClicked() ;
79 signals:
81  const QString& aExplanation) ;
82 private:
83  Ui_newCaDialog ui ;
86 };
87 
88 #endif
class for allowing posting of new classified ad
Definition: newclassifiedaddialog.h:38
Ui_newCaDialog ui
Definition: newclassifiedaddialog.h:83
CAListingModel & iCAListingModel
Definition: newclassifiedaddialog.h:85
Hash is class that carries 160-bit digest.
Definition: hash.h:37
CAErrorSituation
Definition: mcontroller.h:48
Model-class for helping display of classified ads.
Definition: calistingmodel.h:34
Model-class for helping display of readers of a profile.
Definition: profilereaderslistingmodel.h:32
void error(MController::CAErrorSituation aError, const QString &aExplanation)
NewClassifiedAdDialog(QWidget *aParent, MController *aController, int aAboutComboxIndex, int aRegardingComboxIndex, int aWhereComboxIndex, const QString &aAboutComboText, const QString &aRegardingComboText, const QString &aWhereComboxText, const Profile &aSelectedProfile, CAListingModel &aCaListingModel, const Hash *aReferences=NULL, const QString *aSubject=NULL)
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:39
Hash iReferences
Definition: newclassifiedaddialog.h:84
Carrier-class for user-profile data.
Definition: profile.h:36
Model-class for performing a name-based search of profiles. This is supposed to act as an underlying ...
Definition: profilesearchmodel.h:33
text editor class.
Definition: textedit.h:70