Classified ads
profilecommentdisplay.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 PROFILECOMMENTDISPLAY_DIALOG_H
21 #define PROFILECOMMENTDISPLAY_DIALOG_H
22 
23 #include <QDialog>
24 #include "../mcontroller.h"
25 #include "../ui_profileCommentDisplay.h"
26 #include "dialogbase.h"
27 
29 class ProfileCommentModel ;
30 class ProfileComment ;
31 class QPushButton ;
33 class Profile ;
34 
39 {
40  Q_OBJECT
41 
42 public:
53  ProfileCommentDisplay(QWidget *aParent,
54  MController* aController,
55  ProfileCommentListingModel* aListingModel,
56  ProfileCommentModel& aCommentModel,
57  const Hash& aFirstCommentToDisplay,
58  const Hash& aViewedProfile ,
59  const Profile& aSelectedProfile);
62 
63 private slots:
64  void closeButtonClicked() ;
69  void exportSharedFile() ;
70  void currentItemChanged(const QModelIndex & current, const QModelIndex & previous ) ;
71 private:
72  Ui_profileCommentDisplay ui ;
80 };
81 
82 #endif
Carrier-class for comments of a profile.
Definition: profilecomment.h:37
ProfileCommentListingModel * iListingModel
Definition: profilecommentdisplay.h:73
Ui_profileCommentDisplay ui
Definition: profilecommentdisplay.h:72
This is is part of datamodel for storing comments of user profiles.
Definition: profilecommentmodel.h:37
ProfileCommentDisplay(QWidget *aParent, MController *aController, ProfileCommentListingModel *aListingModel, ProfileCommentModel &aCommentModel, const Hash &aFirstCommentToDisplay, const Hash &aViewedProfile, const Profile &aSelectedProfile)
Hash is class that carries 160-bit digest.
Definition: hash.h:37
Hash iCommentToDisplay
Definition: profilecommentdisplay.h:75
ProfileCommentItemDelegate * iItemDelegate
Definition: profilecommentdisplay.h:76
Hash iFingerPrintOfCommentOnFocus
Definition: profilecommentdisplay.h:79
Hash iViewedProfile
Definition: profilecommentdisplay.h:77
class for display of single classified ad
Definition: profilecommentdisplay.h:38
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:39
class for displaying single profile comment in a list view
Definition: profilecommentitemdelegate.h:30
void currentItemChanged(const QModelIndex &current, const QModelIndex &previous)
ProfileCommentModel & iCommentModel
Definition: profilecommentdisplay.h:74
Carrier-class for user-profile data.
Definition: profile.h:36
base-class for content-posting dialogs of classified ads
Definition: dialogbase.h:31
QAction * iExportSharedFileAction
Definition: profilecommentdisplay.h:78
Model-class for performing search on comments about a profile. This is supposed to act as an underlyi...
Definition: profilecommentlistingmodel.h:35