Blokkal
an Extendable KDE Blogging Client
SourceForge.net Logo

Blokkal::Ui::BrowseEntryDialog Class Reference

Base class for dalogs used to browse old entries. More...

#include <browseentryviewfactory.h>

Inheritance diagram for Blokkal::Ui::BrowseEntryDialog:

List of all members.


Public Member Functions

 BrowseEntryDialog (QWidget *parent=0, Qt::WFlags flags=0)
virtual KUrl entryUrl (void) const =0
Blokkal::Io::BlogBrowsingDriver::BrowseMode mode (void) const
void setMode (Blokkal::Io::BlogBrowsingDriver::BrowseMode mode)
virtual ~BrowseEntryDialog (void)

Protected Member Functions

virtual void applyViewMode (void)

Detailed Description

Base class for dalogs used to browse old entries.

Dialogs can be used in different modes to access old entries in a blog. BrowseEntryDialog are not supposed to be destroyed after they have been closed. Blokkal::Blog keeps track of the dialogs and attempts to reuse instances in order to minimise network traffic.

Definition at line 72 of file browseentryviewfactory.h.


Constructor & Destructor Documentation

Blokkal::Ui::BrowseEntryDialog::BrowseEntryDialog ( QWidget *  parent = 0,
Qt::WFlags  flags = 0 
)

Constructor.

Parameters:
parent parent widget
flags window flags

Definition at line 40 of file browseentryviewfactory.cpp.

Blokkal::Ui::BrowseEntryDialog::~BrowseEntryDialog ( void   )  [virtual]

Destructor

Definition at line 46 of file browseentryviewfactory.cpp.


Member Function Documentation

void Blokkal::Ui::BrowseEntryDialog::applyViewMode ( void   )  [protected, virtual]

This method is called when the mode has been changed by setMode() Reimplement this method to update the view as appropriate for the current mode. The default implementation does nothing.

Definition at line 62 of file browseentryviewfactory.cpp.

virtual KUrl Blokkal::Ui::BrowseEntryDialog::entryUrl ( void   )  const [pure virtual]

This method is primarily intended to be used together with exec() after the dialog has been closed, but it should always reflect the correct selection mode.

Returns:
the url of the currently selected entry or KUrl() if no entry has been selected

Blokkal::Io::BlogBrowsingDriver::BrowseMode Blokkal::Ui::BrowseEntryDialog::mode ( void   )  const

Returns:
the current mode

Definition at line 57 of file browseentryviewfactory.cpp.

void Blokkal::Ui::BrowseEntryDialog::setMode ( Blokkal::Io::BlogBrowsingDriver::BrowseMode  mode  ) 

Sets the mode of this view to mode

Parameters:
mode the new mode

Definition at line 51 of file browseentryviewfactory.cpp.


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