akonadi
collectionpropertiesdialog.cpp
42 Private( CollectionPropertiesDialog *parent, const Akonadi::Collection &collection, const QStringList &pageNames );
51 CollectionPropertiesPage *page = static_cast<CollectionPropertiesPage*>( mTabWidget->widget( i ) );
91 CollectionPropertiesDialog::Private::Private( CollectionPropertiesDialog *qq, const Akonadi::Collection &collection, const QStringList &pageNames )
140 if ( page->canHandle( mCollection ) && mPageNames.contains( pageName ) && !pages.contains( pageName ) ) {
169 CollectionPropertiesDialog::CollectionPropertiesDialog( const Collection &collection, QWidget *parent )
176 CollectionPropertiesDialog::CollectionPropertiesDialog( const Collection &collection, const QStringList &pages, QWidget *parent )
Job that modifies a collection in the Akonadi storage.
Definition: collectionmodifyjob.h:82
A factory class for collection properties dialog pages.
Definition: collectionpropertiespage.h:168
virtual void save(Collection &collection)=0
Saves page content to the given collection.
static QString defaultPageObjectName(DefaultPage page)
Returns the object name of one of the dialog's registered default pages.
Definition: collectionpropertiesdialog.cpp:203
A single page in a collection properties dialog.
Definition: collectionpropertiespage.h:99
virtual void load(const Collection &collection)=0
Loads the page content from the given collection.
~CollectionPropertiesDialog()
Destroys the collection properties dialog.
Definition: collectionpropertiesdialog.cpp:183
static void registerPage(CollectionPropertiesPageFactory *factory)
Register custom pages for the collection properties dialog.
Definition: collectionpropertiesdialog.cpp:190
void setCurrentPage(const QString &name)
Sets the page to be shown in the tab widget.
Definition: collectionpropertiesdialog.cpp:215
General properties page.
Definition: collectionpropertiesdialog.h:64
virtual bool canHandle(const Collection &collection) const
Checks if this page can actually handle the given collection.
static void useDefaultPage(bool use)
Sets whether to use default page or not.
Definition: collectionpropertiesdialog.cpp:198
DefaultPage
Enumerates the registered default pages which can be displayed.
Definition: collectionpropertiesdialog.h:63
virtual CollectionPropertiesPage * createWidget(QWidget *parent=0) const =0
Returns the actual page widget.
Cache properties page.
Definition: collectionpropertiesdialog.h:65
CollectionPropertiesDialog(const Collection &collection, QWidget *parent=0)
Creates a new collection properties dialog.
Definition: collectionpropertiesdialog.cpp:169
A generic and extensible dialog for collection properties.
Definition: collectionpropertiesdialog.h:54
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.