Akonadi
collectioncombobox.cpp
63 // Filter by access rights. TODO: maybe this functionality could be provided by CollectionFilterProxyModel, to save one proxy?
71 mParent->connect(mSelectionHandler, &AsyncSelectionHandler::collectionAvailable, mParent, [this](const auto &mi) {
95 Q_EMIT mParent->currentChanged(modelIndex.data(EntityTreeModel::CollectionRole).value<Collection>());
void setMimeTypeFilter(const QStringList &mimetypes)
Sets the content mimetypes the collections shall be filtered by.
Definition collectioncombobox.cpp:118
bool excludeVirtualCollections() const
Definition collectioncombobox.cpp:165
CollectionComboBox(QWidget *parent=nullptr)
Creates a new collection combobox.
Definition collectioncombobox.cpp:104
QStringList mimeTypeFilter() const
Returns the content mimetype the collections are filtered by.
Definition collectioncombobox.cpp:130
~CollectionComboBox() override
Destroys the collection combobox.
Collection::Rights accessRightsFilter() const
Returns the access rights the collections are filtered by.
Definition collectioncombobox.cpp:140
void setAccessRightsFilter(Collection::Rights rights)
Sets the access rights the collections shall be filtered by.
Definition collectioncombobox.cpp:135
Akonadi::Collection currentCollection() const
Returns the current selection.
Definition collectioncombobox.cpp:150
void setExcludeVirtualCollections(bool b)
Definition collectioncombobox.cpp:160
void currentChanged(const Akonadi::Collection &collection)
This signal is emitted whenever the current selection has been changed.
void setDefaultCollection(const Collection &collection)
Sets the collection that shall be selected by default.
Definition collectioncombobox.cpp:145
@ Display
Only retrieve collections for display, taking the local preference and enabled into account.
Definition collectionfetchscope.h:97
A proxy model that filters collections by mime type.
Definition collectionfilterproxymodel.h:44
A proxy model that filters entities by access rights.
Definition entityrightsfiltermodel.h:48
void setListFilter(Akonadi::CollectionFetchScope::ListFilter filter)
Sets the currently used listfilter.
Definition entitytreemodel.cpp:67
void setItemPopulationStrategy(ItemPopulationStrategy strategy)
Sets the item population strategy of the model.
Definition entitytreemodel.cpp:953
void setCollectionMonitored(const Collection &collection, bool monitored=true)
Sets whether the specified collection shall be monitored for changes.
Definition monitor.cpp:48
void fetchCollection(bool enable)
Enables automatic fetching of changed collections from the Akonadi storage.
Definition monitor.cpp:193
Helper integration between Akonadi and Qt.
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const=0
virtual void sort(int column, Qt::SortOrder order)
void setCurrentIndex(int index)
QAbstractItemModel * model() const const
modelColumn
virtual void setModel(QAbstractItemModel *model)
QVariant data(int role) const const
bool isValid() const const
int row() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void setObjectName(QAnyStringView name)
virtual void setSourceModel(QAbstractItemModel *sourceModel) override
T value() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.