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
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 NEW_CLASSIFIED_AD_DIALOG_H
22 #define NEW_CLASSIFIED_AD_DIALOG_H
23 
24 #include <QDialog>
25 #include "../mcontroller.h"
26 #include "../ui_newClassifiedAd.h"
27 #include "../textedit/textedit.h"
28 
29 class ProfileSearchModel ;
31 class Profile ;
32 class CAListingModel ;
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  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:39
Ui_newCaDialog ui
Definition: newclassifiedaddialog.h:83
CAListingModel & iCAListingModel
Definition: newclassifiedaddialog.h:85
Hash is class that carries 160-bit digest.
Definition: hash.h:38
CAErrorSituation
Definition: mcontroller.h:52
Model-class for helping display of classified ads.
Definition: calistingmodel.h:35
Model-class for helping display of readers of a profile.
Definition: profilereaderslistingmodel.h:33
void error(MController::CAErrorSituation aError, const QString &aExplanation)
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:43
Hash iReferences
Definition: newclassifiedaddialog.h:84
Carrier-class for user-profile data.
Definition: profile.h:37
NewClassifiedAdDialog(QWidget *aParent, MController *aController, int aAboutComboxIndex, int aRegardingComboxIndex, int aWhereComboxIndex, const QString &aAboutComboText, const QString &aRegardingComboText, const QString &aWhereComboxText, Profile &aSelectedProfile, CAListingModel &aCaListingModel, const Hash *aReferences=NULL, const QString *aSubject=NULL)
Model-class for performing a name-based search of profiles. This is supposed to act as an underlying ...
Definition: profilesearchmodel.h:34
text editor class.
Definition: textedit.h:70