Classified ads
profilereadersdialog.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 PROFILE_READERs_DIALOG_H
21 #define PROFILE_READERs_DIALOG_H
22 
23 #include <QDialog>
24 #include "../mcontroller.h"
25 #include "../ui_profileReadersDialog.h"
26 
27 class ProfileSearchModel ;
28 class QTimerEvent ;
30 class Profile ;
31 
36 class ProfileReadersDialog : public QDialog
37 {
38  Q_OBJECT
39 
40  public:
48  ProfileReadersDialog(QWidget *aParent,
49  MController* aController,
50  Profile& aProfile );
53 protected:
59  void timerEvent(QTimerEvent *event);
60 private slots:
61  void closeButtonClicked() ;
62  void addButtonClicked() ;
63  void removeButtonClicked() ;
64  void viewProfileSelected() ;
65 signals:
67  const QString& aExplanation) ;
68 private:
69  Ui_profileReadersDialog ui ;
72  int iTimerId ;
76  QAction *iViewProfileAction ;
77 };
78 
79 #endif
void timerEvent(QTimerEvent *event)
QAction * iViewProfileAction
Definition: profilereadersdialog.h:76
QString iPreviousSearchFieldContent
Definition: profilereadersdialog.h:73
CAErrorSituation
Definition: mcontroller.h:48
Model-class for helping display of readers of a profile.
Definition: profilereaderslistingmodel.h:32
ProfileReadersListingModel * iListingModel
Definition: profilereadersdialog.h:75
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:39
Profile & iProfile
Definition: profilereadersdialog.h:74
class for allowing edit of profile readers list
Definition: profilereadersdialog.h:36
MController * iController
Definition: profilereadersdialog.h:70
ProfileReadersDialog(QWidget *aParent, MController *aController, Profile &aProfile)
ProfileSearchModel * iSearchModel
Definition: profilereadersdialog.h:71
Ui_profileReadersDialog ui
Definition: profilereadersdialog.h:69
int iTimerId
Definition: profilereadersdialog.h:72
void error(MController::CAErrorSituation aError, const QString &aExplanation)
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