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
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 PROFILECOMMENTDISPLAY_DIALOG_H
22 #define PROFILECOMMENTDISPLAY_DIALOG_H
23 
24 #include <QDialog>
25 #include "../mcontroller.h"
26 #include "../ui_profileCommentDisplay.h"
27 #include "dialogbase.h"
28 
30 class ProfileCommentModel ;
31 class ProfileComment ;
32 class QPushButton ;
34 class Profile ;
35 
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  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:38
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:38
Hash is class that carries 160-bit digest.
Definition: hash.h:38
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:39
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:43
class for displaying single profile comment in a list view
Definition: profilecommentitemdelegate.h:31
ProfileCommentDisplay(QWidget *aParent, MController *aController, ProfileCommentListingModel *aListingModel, ProfileCommentModel &aCommentModel, const Hash &aFirstCommentToDisplay, const Hash &aViewedProfile, Profile &aSelectedProfile)
void currentItemChanged(const QModelIndex &current, const QModelIndex &previous)
ProfileCommentModel & iCommentModel
Definition: profilecommentdisplay.h:74
Carrier-class for user-profile data.
Definition: profile.h:37
base-class for content-posting dialogs of classified ads
Definition: dialogbase.h:32
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:36