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
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 PROFILE_READERs_DIALOG_H
22 #define PROFILE_READERs_DIALOG_H
23 
24 #include <QDialog>
25 #include "../mcontroller.h"
26 #include "../ui_profileReadersDialog.h"
27 
28 class ProfileSearchModel ;
29 class QTimerEvent ;
31 class Profile ;
32 
37 class ProfileReadersDialog : public QDialog {
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:52
Model-class for helping display of readers of a profile.
Definition: profilereaderslistingmodel.h:33
ProfileReadersListingModel * iListingModel
Definition: profilereadersdialog.h:75
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:43
Profile & iProfile
Definition: profilereadersdialog.h:74
class for allowing edit of profile readers list
Definition: profilereadersdialog.h:37
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:37
Model-class for performing a name-based search of profiles. This is supposed to act as an underlying ...
Definition: profilesearchmodel.h:34