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, const 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, const Profile &aSelectedProfile)
 
Hash publishBinaryAttachment (const QString &aFileName, bool aForceNoEncryption=false, const QList< Hash > *aBinaryRecipientList=NULL)
 
- Protected Attributes inherited from DialogBase
MControlleriController
 
const ProfileiSelectedProfile
 
QList< QString > iFilesAboutToBeAttached
 
QLabel * iAttachmentListLabel
 

Detailed Description

class for display of single classified ad

Constructor & Destructor Documentation

ProfileCommentDisplay::ProfileCommentDisplay ( QWidget *  aParent,
MController aController,
ProfileCommentListingModel aListingModel,
ProfileCommentModel aCommentModel,
const Hash aFirstCommentToDisplay,
const Hash aViewedProfile,
const 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 ( )

destructor

Member Function Documentation

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

method for handling "add comment"-button

Member Data Documentation

ProfileCommentModel& ProfileCommentDisplay::iCommentModel
private
Hash ProfileCommentDisplay::iCommentToDisplay
private
QAction* ProfileCommentDisplay::iExportSharedFileAction
private

context-menu action for saving to filesystem a shared file

Hash ProfileCommentDisplay::iFingerPrintOfCommentOnFocus
private
ProfileCommentItemDelegate* ProfileCommentDisplay::iItemDelegate
private
ProfileCommentListingModel* ProfileCommentDisplay::iListingModel
private
Hash ProfileCommentDisplay::iViewedProfile
private
Ui_profileCommentDisplay ProfileCommentDisplay::ui
private

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