Akonadi
collectionpropertiesdialog.cpp
31 CollectionPropertiesDialogPrivate(CollectionPropertiesDialog *parent, const Akonadi::Collection &collection, const QStringList &pageNames);
45 // We use WA_DeleteOnClose => Don't use dialog as parent otherwise we can't save modified collection.
84 CollectionPropertiesPageFactoryList &operator=(const CollectionPropertiesPageFactoryList &) = delete;
91 Q_GLOBAL_STATIC(CollectionPropertiesPageFactoryList, s_pages) // NOLINT(readability-redundant-member-init)
95 CollectionPropertiesDialogPrivate::CollectionPropertiesDialogPrivate(CollectionPropertiesDialog *qq,
153 if (page->canHandle(mCollection) && mPageNames.contains(pageName) && !pages.contains(pageName)) {
172 q->connect(buttonBox->button(QDialogButtonBox::Cancel), &QAbstractButton::clicked, q, &QObject::deleteLater);
183 CollectionPropertiesDialog::CollectionPropertiesDialog(const Collection &collection, QWidget *parent)
190 CollectionPropertiesDialog::CollectionPropertiesDialog(const Collection &collection, const QStringList &pages, QWidget *parent)
void writeEntry(const char *key, const char *value, WriteConfigFlags pFlags=Normal)
const T value(const Key &key) const const
static void registerPage(CollectionPropertiesPageFactory *factory)
Register custom pages for the collection properties dialog.
Definition: collectionpropertiesdialog.cpp:203
virtual void save(Collection &collection)=0
Saves page content to the given collection.
bool isValid() const const
Job that modifies a collection in the Akonadi storage.
Definition: collectionmodifyjob.h:67
virtual void reject()
void setShortcut(const QKeySequence &key)
void result(KJob *job)
A generic and extensible dialog for collection properties.
Definition: collectionpropertiesdialog.h:42
QCA_EXPORT void init()
static QString defaultPageObjectName(DefaultPage page)
Returns the object name of one of the dialog's registered default pages.
Definition: collectionpropertiesdialog.cpp:216
void clicked(bool checked)
virtual void load(const Collection &collection)=0
Loads the page content from the given collection.
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QHash::iterator insert(const Key &key, const T &value)
Q_GLOBAL_STATIC(Internal::StaticControl, s_instance) class ControlPrivate
Definition: control.cpp:28
void deleteLater()
~CollectionPropertiesDialog() override
Destroys the collection properties dialog.
Definition: collectionpropertiesdialog.cpp:197
void accepted()
DefaultPage
Enumerates the registered default pages which can be displayed.
Definition: collectionpropertiesdialog.h:51
virtual void accept()
CollectionPropertiesDialog(const Collection &collection, QWidget *parent=nullptr)
Creates a new collection properties dialog.
Definition: collectionpropertiesdialog.cpp:183
Key_Return
static void useDefaultPage(bool use)
Sets whether to use default page or not.
Definition: collectionpropertiesdialog.cpp:211
void setCurrentPage(const QString &name)
Sets the page to be shown in the tab widget.
Definition: collectionpropertiesdialog.cpp:228
void rejected()
objectName
const QList< QKeySequence > & save()
CTRL
void setDefault(bool)
virtual QString errorString() const
int error() const
bool contains(const Key &key) const const
A single page in a collection properties dialog.
Definition: collectionpropertiespage.h:88
A factory class for collection properties dialog pages.
Definition: collectionpropertiespage.h:156
size
WA_DeleteOnClose
Helper integration between Akonadi and Qt.
virtual bool canHandle(const Collection &collection) const
Checks if this page can actually handle the given collection.
Definition: collectionpropertiespage.cpp:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jun 25 2022 06:00:31 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jun 25 2022 06:00:31 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.