Classified ads
Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
NewProfileCommentDialog Class Reference

class for allowing posting of a comment about user profile More...

#include <newprofilecommentdialog.h>

Inheritance diagram for NewProfileCommentDialog:
Inheritance graph
[legend]
Collaboration diagram for NewProfileCommentDialog:
Collaboration graph
[legend]

Signals

void error (MController::CAErrorSituation aError, const QString &aExplanation)
 
- Signals inherited from DialogBase
void error (MController::CAErrorSituation aError, const QString &aExplanation)
 

Public Member Functions

 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 ()
 
- Public Member Functions inherited from TextEdit
 TextEdit (QWidget *aParent, MController *aController, Profile &aSelectedProfile)
 
 ~TextEdit ()
 
void initializeTextEditor (QTextEdit *aTextEdit, QLayout *aLayOutForMenu, QLayout *aWidgetForActionsUpper, QLayout *aWidgetForActionsLower)
 

Private Slots

void okButtonClicked ()
 
void cancelButtonClicked ()
 

Private Member Functions

Hash tryFindRecipientNode (const Hash &aRecipientFingerPrint)
 

Private Attributes

Ui_newProfileCommentDialog ui
 
Hash iReferencesMsg
 
Hash iReferencesCa
 
Hash iRecipientsNode
 
ProfileCommentListingModeliCommentListingModel
 

Additional Inherited Members

- Public Slots inherited from TextEdit
virtual void linkReady (const QString &aLinkAddress, const QString &aLinkLabel)
 
- Protected Slots inherited from DialogBase
void attachButtonClicked ()
 
- Protected Member Functions inherited from TextEdit
virtual void closeEvent (QCloseEvent *e)
 
- Protected Member Functions inherited from DialogBase
 DialogBase (QWidget *aParent, MController *aController, Profile &aSelectedProfile)
 
Hash publishBinaryAttachment (const MetadataQueryDialog::MetadataResultSet &aFileMetadata, bool aForceNoEncryption=false, const QList< Hash > *aBinaryRecipientList=NULL)
 
- Protected Attributes inherited from TextEdit
QTextEdit * textEdit
 
- Protected Attributes inherited from DialogBase
MControlleriController
 
ProfileiSelectedProfile
 
QList< MetadataQueryDialog::MetadataResultSetiFilesAboutToBeAttached
 
QLabel * iAttachmentListLabel
 

Detailed Description

class for allowing posting of a comment about user profile

Constructor & Destructor Documentation

◆ 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 
)

Constructor.

Parameters
aParentis owner-window of this dialog
aControllerapplication controller reference
aCommentedProfileis fingerprint of the profile that is about to be commented. If KNullHash, then dialog will open with empty recipient
aSubjectif comment is reply to another comment, this is subject of the original posting
aSelectedProfileprofile doing the sending
aReferencesMsgif msg is reply to another msg, this is article referenced. NULL if article is start of a new thread.

◆ ~NewProfileCommentDialog()

NewProfileCommentDialog::~NewProfileCommentDialog ( )

destructor

Member Function Documentation

◆ cancelButtonClicked

void NewProfileCommentDialog::cancelButtonClicked ( )
privateslot

◆ error

void NewProfileCommentDialog::error ( MController::CAErrorSituation  aError,
const QString &  aExplanation 
)
signal

◆ okButtonClicked

void NewProfileCommentDialog::okButtonClicked ( )
privateslot

◆ tryFindRecipientNode()

Hash NewProfileCommentDialog::tryFindRecipientNode ( const Hash aRecipientFingerPrint)
private

Member Data Documentation

◆ iCommentListingModel

ProfileCommentListingModel& NewProfileCommentDialog::iCommentListingModel
private

◆ iRecipientsNode

Hash NewProfileCommentDialog::iRecipientsNode
private

◆ iReferencesCa

Hash NewProfileCommentDialog::iReferencesCa
private

if we're referencing ca, this is the FP

◆ iReferencesMsg

Hash NewProfileCommentDialog::iReferencesMsg
private

if we're referencing another msg, this is the FP

◆ ui

Ui_newProfileCommentDialog NewProfileCommentDialog::ui
private

The documentation for this class was generated from the following file: