akonadi/kmime
22#ifndef AKONADI_STANDARDMAILACTIONMANAGER_H
23#define AKONADI_STANDARDMAILACTIONMANAGER_H
25#include "akonadi-kmime_export.h"
27#include <akonadi/standardactionmanager.h>
29#include <QtCore/QObject>
32class KActionCollection;
34class QItemSelectionModel;
56 MarkMailAsRead = StandardActionManager::LastType + 1,
92 void setCollectionSelectionModel(QItemSelectionModel *selectionModel);
100 void setItemSelectionModel(QItemSelectionModel *selectionModel);
109 KAction *createAction(Type type);
117 KAction *createAction(StandardActionManager::Type type);
123 void createAllActions();
129 KAction *action(Type type)
const;
135 KAction *action(StandardActionManager::Type type)
const;
152 void setActionText(StandardActionManager::Type type,
const KLocalizedString &text);
161 void interceptAction(Type type,
bool intercept =
true);
171 void interceptAction(StandardActionManager::Type type,
bool intercept =
true);
177 Akonadi::Collection::List selectedCollections()
const;
183 Akonadi::Item::List selectedItems()
const;
192 void setFavoriteCollectionsModel(FavoriteCollectionsModel *favoritesModel);
201 void setFavoriteSelectionModel(QItemSelectionModel *selectionModel);
203 void setCollectionPropertiesPageNames(
const QStringList &names);
205 Akonadi::StandardActionManager *standardActionManager()
const;
219 Q_PRIVATE_SLOT(d,
void updateActions())
220 Q_PRIVATE_SLOT(d,
void slotMarkAs())
221 Q_PRIVATE_SLOT(d,
void slotMarkAllAs())
222 Q_PRIVATE_SLOT(d,
void slotMoveToTrash())
223 Q_PRIVATE_SLOT(d,
void slotMoveAllToTrash())
224 Q_PRIVATE_SLOT(d,
void slotRemoveDuplicates())
225 Q_PRIVATE_SLOT(d,
void slotEmptyAllTrash())
226 Q_PRIVATE_SLOT(d,
void slotEmptyTrash())
227 Q_PRIVATE_SLOT(d,
void slotJobFinished(KJob *))
Manages emails specific actions for collection and item views.
Type
Describes the supported actions.
@ RemoveDuplicates
Removes all duplicated messages.
@ MoveToTrash
Move all selected messages and folders to trash.
@ EmptyTrash
Empties the trash folder, if a trash folder was selected.
@ MarkMailAsActionItem
Marks a mail as action item.
@ MarkAllMailAsActionItem
Marks all mails in a folder as action item.
@ MarkMailAsUnread
Marks a mail as unread.
@ EmptyAllTrash
Empties trash folders on all accounts.
@ MoveAllToTrash
Move all messages of the current folder to trash.
@ MarkAllMailAsImportant
Marks all mails in a folder as important.
@ MarkAllMailAsRead
Marks all mails in a folder as read.
@ MarkMailAsImportant
Marks a mail as important.
@ MarkAllMailAsUnread
Marks all mails in a folder as unread.
void actionStateUpdated()
This signal is emitted whenever the action state has been updated.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.