Classified ads
ui
newprofilecommentdialog.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_PROFILE_COMMENT_DIALOG_H
22
#define NEW_PROFILE_COMMENT_DIALOG_H
23
24
#include <QDialog>
25
#include "../mcontroller.h"
26
#include "../ui_newProfileComment.h"
27
#include "../datamodel/profile.h"
28
#include "../textedit/textedit.h"
29
30
class
ProfileCommentListingModel
;
31
36
class
NewProfileCommentDialog
:
public
TextEdit
{
37
Q_OBJECT
38
39
public
:
54
NewProfileCommentDialog
(QWidget *aParent,
55
MController
* aController,
56
const
QString& aCommentedProfile,
57
const
QString& aSubject,
58
Profile
& aSelectedProfile,
59
ProfileCommentListingModel
& aCommentListingModel,
60
const
Hash
& aReferencesMsg =
KNullHash
,
61
const
Hash
& aReferencesCa =
KNullHash
,
62
const
Hash
& aRecipientsNode =
KNullHash
);
64
~NewProfileCommentDialog
();
65
66
private
slots:
67
void
okButtonClicked
() ;
68
void
cancelButtonClicked
() ;
69
signals:
70
void
error
(
MController::CAErrorSituation
aError,
71
const
QString& aExplanation) ;
72
private
:
// methods
73
// if recipients node is not known, here try finding out one
74
Hash
tryFindRecipientNode
(
const
Hash
& aRecipientFingerPrint) ;
75
private
:
76
Ui_newProfileCommentDialog
ui
;
77
Hash
iReferencesMsg
;
78
Hash
iReferencesCa
;
79
Hash
iRecipientsNode
;
80
ProfileCommentListingModel
&
iCommentListingModel
;
81
};
82
83
#endif
NewProfileCommentDialog
class for allowing posting of a comment about user profile
Definition:
newprofilecommentdialog.h:36
NewProfileCommentDialog::iCommentListingModel
ProfileCommentListingModel & iCommentListingModel
Definition:
newprofilecommentdialog.h:80
NewProfileCommentDialog::iReferencesCa
Hash iReferencesCa
Definition:
newprofilecommentdialog.h:78
Ui_newProfileCommentDialog
Definition:
ui_newProfileComment.h:29
NewProfileCommentDialog::tryFindRecipientNode
Hash tryFindRecipientNode(const Hash &aRecipientFingerPrint)
Hash
Hash is class that carries 160-bit digest.
Definition:
hash.h:38
MController::CAErrorSituation
CAErrorSituation
Definition:
mcontroller.h:57
NewProfileCommentDialog::cancelButtonClicked
void cancelButtonClicked()
NewProfileCommentDialog::iReferencesMsg
Hash iReferencesMsg
Definition:
newprofilecommentdialog.h:77
MController
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition:
mcontroller.h:48
KNullHash
Hash KNullHash
NewProfileCommentDialog::error
void error(MController::CAErrorSituation aError, const QString &aExplanation)
NewProfileCommentDialog::NewProfileCommentDialog
NewProfileCommentDialog(QWidget *aParent, MController *aController, const QString &aCommentedProfile, const QString &aSubject, Profile &aSelectedProfile, ProfileCommentListingModel &aCommentListingModel, const Hash &aReferencesMsg=KNullHash, const Hash &aReferencesCa=KNullHash, const Hash &aRecipientsNode=KNullHash)
NewProfileCommentDialog::okButtonClicked
void okButtonClicked()
NewProfileCommentDialog::ui
Ui_newProfileCommentDialog ui
Definition:
newprofilecommentdialog.h:76
NewProfileCommentDialog::iRecipientsNode
Hash iRecipientsNode
Definition:
newprofilecommentdialog.h:79
Profile
Carrier-class for user-profile data.
Definition:
profile.h:37
NewProfileCommentDialog::~NewProfileCommentDialog
~NewProfileCommentDialog()
TextEdit
text editor class.
Definition:
textedit.h:70
ProfileCommentListingModel
Model-class for performing search on comments about a profile. This is supposed to act as an underlyi...
Definition:
profilecommentlistingmodel.h:36
Generated by
1.8.13