Akonadi Mime
standardmailactionmanager.h
67 explicit StandardMailActionManager(KActionCollection *actionCollection, QWidget *parent = nullptr);
196 void markItemsAs(const QByteArray &typeStr, const Akonadi::Item::List &items, bool checkIntercept = true);
197 void markAllItemsAs(const QByteArray &typeStr, const Akonadi::Collection::List &collections, bool checkIntercept = true);
QList< Collection > List
QList< Item > List
Manages emails specific actions for collection and item views.
Definition standardmailactionmanager.h:36
void setFavoriteCollectionsModel(FavoriteCollectionsModel *favoritesModel)
Sets the favorite collections model based on which the collection relatedactions should operate.
Definition standardmailactionmanager.cpp:959
StandardMailActionManager(KActionCollection *actionCollection, QWidget *parent=nullptr)
Creates a new standard mail action manager.
Definition standardmailactionmanager.cpp:639
~StandardMailActionManager() override
Destroys the standard mail action manager.
void setActionText(StandardActionManager::Type type, const KLocalizedString &text)
Sets the label of the action type to text, which is used during updating the action state and substit...
Definition standardmailactionmanager.cpp:930
void setItemSelectionModel(QItemSelectionModel *selectionModel)
Sets the item selection model based on which the item related actions should operate.
Definition standardmailactionmanager.cpp:668
QAction * createAction(Type type)
Creates the action of the given type and adds it to the action collection specified in the constructo...
Definition standardmailactionmanager.cpp:683
void setFavoriteSelectionModel(QItemSelectionModel *selectionModel)
Sets the favorite collection selection model based on which the favorite collection related actions s...
Definition standardmailactionmanager.cpp:964
void createAllActions()
Convenience method to create all standard actions.
Definition standardmailactionmanager.cpp:897
Akonadi::Item::List selectedItems() const
Returns the list of items that are currently selected.
Definition standardmailactionmanager.cpp:954
@ MoveToTrash
Move all selected messages and folders to trash.
Definition standardmailactionmanager.h:53
@ EmptyTrash
Empties the trash folder, if a trash folder was selected.
Definition standardmailactionmanager.h:57
@ MarkAllMailAsReadRecursive
Marks all mails in a folder and its subfolders as read.
Definition standardmailactionmanager.h:49
@ MarkAllMailAsActionItem
Marks all mails in a folder as action item.
Definition standardmailactionmanager.h:52
@ MoveAllToTrash
Move all messages of the current folder to trash.
Definition standardmailactionmanager.h:54
@ MarkAllMailAsImportant
Marks all mails in a folder as important.
Definition standardmailactionmanager.h:51
@ MarkAllMailAsUnread
Marks all mails in a folder as unread.
Definition standardmailactionmanager.h:50
Akonadi::Collection::List selectedCollections() const
Returns the list of collections that are currently selected.
Definition standardmailactionmanager.cpp:949
void interceptAction(Type type, bool intercept=true)
Sets whether the default implementation for the given action type shall be executed when the action i...
Definition standardmailactionmanager.cpp:935
void actionStateUpdated()
This signal is emitted whenever the action state has been updated.
void setCollectionSelectionModel(QItemSelectionModel *selectionModel)
Sets the collection selection model based on which the collection related actions should operate.
Definition standardmailactionmanager.cpp:647
QAction * action(Type type) const
Returns the action of the given type, 0 if it has not been created (yet).
Definition standardmailactionmanager.cpp:920
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:08:39 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:08:39 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.