akonadi
standardmailactionmanager.cpp
59 Private(KActionCollection *actionCollection, QWidget *parentWidget, StandardMailActionManager *parent)
300 mGenericManager->action(Akonadi::StandardActionManager::SynchronizeCollectionsRecursive)->setWhatsThis(
302 mGenericManager->action(Akonadi::StandardActionManager::SynchronizeCollectionsRecursive)->setHelpText(
432 isSystemFolder = (collection == SpecialMailCollections::self()->defaultCollection(SpecialMailCollections::Inbox) ||
433 collection == SpecialMailCollections::self()->defaultCollection(SpecialMailCollections::Outbox) ||
434 collection == SpecialMailCollections::self()->defaultCollection(SpecialMailCollections::SentMail) ||
435 collection == SpecialMailCollections::self()->defaultCollection(SpecialMailCollections::Trash) ||
436 collection == SpecialMailCollections::self()->defaultCollection(SpecialMailCollections::Drafts) ||
437 collection == SpecialMailCollections::self()->defaultCollection(SpecialMailCollections::Templates));
453 mActions.value(Akonadi::StandardMailActionManager::MoveToTrash)->setEnabled(itemIsSelected && canDeleteItem);
456 mActions.value(Akonadi::StandardMailActionManager::RemoveDuplicates)->setEnabled(canDeleteItem);
584 MoveToTrashCommand *command = new MoveToTrashCommand(mCollectionSelectionModel->model(), items, mParent);
603 MoveToTrashCommand *command = new MoveToTrashCommand(mCollectionSelectionModel->model(), collections, mParent);
635 EmptyTrashCommand *command = new EmptyTrashCommand(const_cast<QAbstractItemModel *>(mCollectionSelectionModel->model()), mParent);
668 StandardMailActionManager::StandardMailActionManager(KActionCollection *actionCollection, QWidget *parent)
679 void StandardMailActionManager::setCollectionSelectionModel(QItemSelectionModel *selectionModel)
812 d->mActionCollection->addAction(QString::fromLatin1("akonadi_mark_all_as_action_item"), action);
919 void StandardMailActionManager::setActionText(StandardActionManager::Type type, const KLocalizedString &text)
933 void StandardMailActionManager::interceptAction(StandardActionManager::Type type, bool intercept)
948 void StandardMailActionManager::setFavoriteCollectionsModel(FavoriteCollectionsModel *favoritesModel)
void setText(const QString &text)
Moves the selected items to trash and marks them as deleted, needs EntityDeletedAttribute.
Definition: standardactionmanager.h:163
Marks a mail as action item.
Definition: standardmailactionmanager.h:59
void createAllActions()
Convenience method to create all standard actions.
Definition: standardmailactionmanager.cpp:883
qint64 count() const
Returns the number of items in this collection or -1 if this information is not available.
Definition: collectionstatistics.cpp:67
QByteArray toByteArray() const
Helper type for MoveToTrashRestoreItem, do not create directly. Use this to override texts of the res...
Definition: standardactionmanager.h:169
Menu allowing to move item into a collection.
Definition: standardactionmanager.h:148
Creates an collection.
Definition: standardactionmanager.h:134
Moves the selected collection to trash and marks it as deleted, needs EntityDeletedAttribute.
Definition: standardactionmanager.h:162
The window title of an error message.
Definition: standardactionmanager.h:183
Copies the selected items.
Definition: standardactionmanager.h:139
Marks a mail as read.
Definition: standardmailactionmanager.h:56
Marks a mail as important.
Definition: standardmailactionmanager.h:58
Manages generic actions for collection and item views.
Definition: standardactionmanager.h:126
Provides statistics information of a Collection.
Definition: collectionstatistics.h:69
The templates collection.
Definition: specialmailcollections.h:86
void setChecked(bool)
QVariant data() const
Copy a collection into another collection, select the target in a dialog.
Definition: standardactionmanager.h:157
Akonadi::Item::List selectedItems() const
Returns the list of items that are currently selected.
Definition: standardmailactionmanager.cpp:943
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:924
Provides the resource properties.
Definition: standardactionmanager.h:154
Cuts the selected items.
Definition: standardactionmanager.h:150
bool startsWith(const QByteArray &ba) const
Marks all mails in a folder as unread.
Definition: standardmailactionmanager.h:61
Move all selected messages and folders to trash.
Definition: standardmailactionmanager.h:64
void actionStateUpdated()
This signal is emitted whenever the action state has been updated.
Restores the selected items from trash, needs EntityDeletedAttribute.
Definition: standardactionmanager.h:165
Toggles the work offline state of all resources.
Definition: standardactionmanager.h:156
Restores the selected collection from trash, needs EntityDeletedAttribute.
Definition: standardactionmanager.h:164
Helper type for MoveToTrashRestoreCollection, do not create directly. Use this to override texts of t...
Definition: standardactionmanager.h:167
Paste collections or items.
Definition: standardactionmanager.h:140
KAction * createAction(Type type)
Creates the action of the given type and adds it to the action collection specified in the constructo...
Definition: standardmailactionmanager.cpp:709
int count(const T &value) const
void setStatusFromFlags(const QSet< QByteArray > &flags)
Set the status as a whole e.g.
Definition: messagestatus.cpp:638
void setItemSelectionModel(QItemSelectionModel *selectionModel)
Sets the item selection model based on which the item related actions should operate.
Definition: standardmailactionmanager.cpp:694
The outbox collection.
Definition: specialmailcollections.h:82
Provides collection properties.
Definition: standardactionmanager.h:138
The sent-mail collection.
Definition: specialmailcollections.h:83
Remove the collection from the favorite collections model.
Definition: standardactionmanager.h:144
QByteArray & prepend(char ch)
Copy an item into a collection, select the target in a dialog.
Definition: standardactionmanager.h:159
Add the collection to the favorite collections model.
Definition: standardactionmanager.h:143
bool isEmpty() const
The window title of a message box.
Definition: standardactionmanager.h:180
void setFavoriteCollectionsModel(FavoriteCollectionsModel *favoritesModel)
Sets the favorite collections model based on which the collection relatedactions should operate...
Definition: standardmailactionmanager.cpp:948
Synchronizes collections in a recursive way.
Definition: standardactionmanager.h:161
Akonadi::Collection::List selectedCollections() const
Returns the list of collections that are currently selected.
Definition: standardmailactionmanager.cpp:938
Menu allowing to quickly copy a collection into another collection.
Definition: standardactionmanager.h:146
Definition: itemfetchscope.h:29
T & first()
QByteArray mid(int pos, int len) const
Rights rights() const
Returns the rights the user has on the collection.
Definition: collection.cpp:99
static SpecialMailCollections * self()
Returns the global SpecialMailCollections instance.
Definition: specialmailcollections.cpp:97
void setData(const QVariant &userData)
Empties the trash folder, if a trash folder was selected.
Definition: standardmailactionmanager.h:68
Cuts the selected collections.
Definition: standardactionmanager.h:151
KAction * action(Type type) const
Returns the action of the given type, 0 if it has not been created (yet).
Definition: standardmailactionmanager.cpp:905
void setCheckable(bool)
The window title of a dialog.
Definition: standardactionmanager.h:178
Marks all mails in a folder as important.
Definition: standardmailactionmanager.h:62
Menu allowing to quickly copy an item into a collection.
Definition: standardactionmanager.h:147
StandardMailActionManager(KActionCollection *actionCollection, QWidget *parent=0)
Creates a new standard mail action manager.
Definition: standardmailactionmanager.cpp:668
Synchronizes the selected resources.
Definition: standardactionmanager.h:155
Deletes the selected resources.
Definition: standardactionmanager.h:153
Copies the selected collections.
Definition: standardactionmanager.h:135
Manages emails specific actions for collection and item views.
Definition: standardmailactionmanager.h:47
Marks all mails in a folder as action item.
Definition: standardmailactionmanager.h:63
Job that finds and removes duplicate messages in given collection.
Definition: removeduplicatesjob.h:41
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:919
The drafts collection.
Definition: specialmailcollections.h:85
qint64 unreadCount() const
Returns the number of unread items in this collection or -1 if this information is not available...
Definition: collectionstatistics.cpp:77
~StandardMailActionManager()
Destroys the standard mail action manager.
Definition: standardmailactionmanager.cpp:674
QString fromLatin1(const char *str, int size)
Empties trash folders on all accounts.
Definition: standardmailactionmanager.h:67
The text of a message box.
Definition: standardactionmanager.h:181
Move Item to Trash or Restore it from Trash, needs EntityDeletedAttribute.
Definition: standardactionmanager.h:168
Creates a new resource.
Definition: standardactionmanager.h:152
Move an item into a collection, select the target in a dialog.
Definition: standardactionmanager.h:160
Akonadi::Collection defaultCollection(Type type) const
Returns the special mail collection of given type in the default resource, or an invalid collection i...
Definition: specialmailcollections.cpp:131
void setFavoriteSelectionModel(QItemSelectionModel *selectionModel)
Sets the favorite collection selection model based on which the favorite collection related actions s...
Definition: standardmailactionmanager.cpp:953
Move a collection into another collection, select the target in a dialog.
Definition: standardactionmanager.h:158
Synchronizes collections.
Definition: standardactionmanager.h:137
void setStatusFromStr(const QString &aStr)
Set the status based on a string representation.
Definition: messagestatus.cpp:522
Removes all duplicated messages.
Definition: standardmailactionmanager.h:66
Move all messages of the current folder to trash.
Definition: standardmailactionmanager.h:65
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
Move Collection to Trash or Restore it from Trash, needs EntityDeletedAttribute.
Definition: standardactionmanager.h:166
Manages local subscriptions.
Definition: standardactionmanager.h:142
Marks all mails in a folder as read.
Definition: standardmailactionmanager.h:60
CollectionStatistics statistics() const
Returns the collection statistics of the collection.
Definition: collection.cpp:238
const QAbstractItemModel * model() const
The text of an error message.
Definition: standardactionmanager.h:184
Deletes the selected items.
Definition: standardactionmanager.h:141
Deletes the selected collections.
Definition: standardactionmanager.h:136
void setEnabled(bool)
void setCollectionSelectionModel(QItemSelectionModel *selectionModel)
Sets the collection selection model based on which the collection related actions should operate...
Definition: standardmailactionmanager.cpp:679
Menu allowing to move a collection into another collection.
Definition: standardactionmanager.h:149
Marks a mail as unread.
Definition: standardmailactionmanager.h:57
A model that lists a set of favorite collections.
Definition: favoritecollectionsmodel.h:66
Rename the collection of the favorite collections model.
Definition: standardactionmanager.h:145
Synchronize favorite collections.
Definition: standardactionmanager.h:170
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.