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

class for display of single classified ad More...

#include <profilecommentdisplay.h>

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

Public Member Functions

 ProfileCommentDisplay (QWidget *aParent, MController *aController, ProfileCommentListingModel *aListingModel, ProfileCommentModel &aCommentModel, const Hash &aFirstCommentToDisplay, const Hash &aViewedProfile, Profile &aSelectedProfile)
 
 ~ProfileCommentDisplay ()
 

Private Slots

void closeButtonClicked ()
 
void newCommentButtonClicked ()
 
void exportSharedFile ()
 
void currentItemChanged (const QModelIndex &current, const QModelIndex &previous)
 

Private Attributes

Ui_profileCommentDisplay ui
 
ProfileCommentListingModeliListingModel
 
ProfileCommentModeliCommentModel
 
Hash iCommentToDisplay
 
ProfileCommentItemDelegateiItemDelegate
 
Hash iViewedProfile
 
QAction * iExportSharedFileAction
 
Hash iFingerPrintOfCommentOnFocus
 

Additional Inherited Members

- Signals inherited from DialogBase
void error (MController::CAErrorSituation aError, const QString &aExplanation)
 
- Protected Slots inherited from DialogBase
void attachButtonClicked ()
 
- 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 DialogBase
MControlleriController
 
ProfileiSelectedProfile
 
QList< MetadataQueryDialog::MetadataResultSetiFilesAboutToBeAttached
 
QLabel * iAttachmentListLabel
 

Detailed Description

class for display of single classified ad

Constructor & Destructor Documentation

◆ ProfileCommentDisplay()

ProfileCommentDisplay::ProfileCommentDisplay ( QWidget *  aParent,
MController aController,
ProfileCommentListingModel aListingModel,
ProfileCommentModel aCommentModel,
const Hash aFirstCommentToDisplay,
const Hash aViewedProfile,
Profile aSelectedProfile 
)

Constructor.

Parameters
aParentis owner-window of this dialog
aControllerapplication controller reference
aListingModelwhere the content comes from
aCommentModelneeded when posting new comments
aFirstCommentToDisplaywhere dialog should scroll initialy
aViewedProfileprofile whose comments are displayed

◆ ~ProfileCommentDisplay()

ProfileCommentDisplay::~ProfileCommentDisplay ( )

destructor

Member Function Documentation

◆ closeButtonClicked

void ProfileCommentDisplay::closeButtonClicked ( )
privateslot

◆ currentItemChanged

void ProfileCommentDisplay::currentItemChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
privateslot

◆ exportSharedFile

void ProfileCommentDisplay::exportSharedFile ( )
privateslot

◆ newCommentButtonClicked

void ProfileCommentDisplay::newCommentButtonClicked ( )
privateslot

method for handling "add comment"-button

Member Data Documentation

◆ iCommentModel

ProfileCommentModel& ProfileCommentDisplay::iCommentModel
private

◆ iCommentToDisplay

Hash ProfileCommentDisplay::iCommentToDisplay
private

◆ iExportSharedFileAction

QAction* ProfileCommentDisplay::iExportSharedFileAction
private

context-menu action for saving to filesystem a shared file

◆ iFingerPrintOfCommentOnFocus

Hash ProfileCommentDisplay::iFingerPrintOfCommentOnFocus
private

◆ iItemDelegate

ProfileCommentItemDelegate* ProfileCommentDisplay::iItemDelegate
private

◆ iListingModel

ProfileCommentListingModel* ProfileCommentDisplay::iListingModel
private

◆ iViewedProfile

Hash ProfileCommentDisplay::iViewedProfile
private

◆ ui

Ui_profileCommentDisplay ProfileCommentDisplay::ui
private

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