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

class for allowing posting of new classified ad More...

#include <newclassifiedaddialog.h>

Inheritance diagram for NewClassifiedAdDialog:
Inheritance graph
[legend]
Collaboration diagram for NewClassifiedAdDialog:
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

 NewClassifiedAdDialog (QWidget *aParent, MController *aController, int aAboutComboxIndex, int aRegardingComboxIndex, int aWhereComboxIndex, const QString &aAboutComboText, const QString &aRegardingComboText, const QString &aWhereComboxText, Profile &aSelectedProfile, CAListingModel &aCaListingModel, const Hash *aReferences=NULL, const QString *aSubject=NULL)
 
 ~NewClassifiedAdDialog ()
 
- 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 Attributes

Ui_newCaDialog ui
 
Hash iReferences
 
CAListingModeliCAListingModel
 

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 new classified ad

Inherits DialogBase via TextEdit where most editing functionality comes from.

Constructor & Destructor Documentation

◆ NewClassifiedAdDialog()

NewClassifiedAdDialog::NewClassifiedAdDialog ( QWidget *  aParent,
MController aController,
int  aAboutComboxIndex,
int  aRegardingComboxIndex,
int  aWhereComboxIndex,
const QString &  aAboutComboText,
const QString &  aRegardingComboText,
const QString &  aWhereComboxText,
Profile aSelectedProfile,
CAListingModel aCaListingModel,
const Hash aReferences = NULL,
const QString *  aSubject = NULL 
)

Constructor.

Parameters
aParentis owner-window of this dialog
aControllerapplication controller reference
aAboutComboxIndexindex of combobox of "about" in classification-selection
aRegardingComboxIndexindex of combobox of "regarding" in classification-selection
aWhereComboxIndexindex of combobox of "in" in classification-selection
aAboutComboTexttext of combobox in of "about" in classification-selection ; this may be text typed by user, in which case the index (aAboutComboxIndex) is ignored
aRegardingComboTexttext of combobox in of "regarding" in classification-selection
aWhereComboxTexttext of combobox in of "where" in classification-selection
aSelectedProfileprofile doing the sending
aReferencesif CA is reply to another CA, this is article referenced. NULL if article is start of a new thread.
aSubjectif CA is reply to another CA, this is subject of the original posting

◆ ~NewClassifiedAdDialog()

NewClassifiedAdDialog::~NewClassifiedAdDialog ( )

destructor

Member Function Documentation

◆ cancelButtonClicked

void NewClassifiedAdDialog::cancelButtonClicked ( )
privateslot

◆ error

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

◆ okButtonClicked

void NewClassifiedAdDialog::okButtonClicked ( )
privateslot

Member Data Documentation

◆ iCAListingModel

CAListingModel& NewClassifiedAdDialog::iCAListingModel
private

◆ iReferences

Hash NewClassifiedAdDialog::iReferences
private

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

◆ ui

Ui_newCaDialog NewClassifiedAdDialog::ui
private

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