akonadi
standardmailactionmanager.cpp
59 Private( KActionCollection *actionCollection, QWidget *parentWidget, StandardMailActionManager *parent )
186 mGenericManager->action( Akonadi::StandardActionManager::SynchronizeCollections )->setWhatsThis(
297 mGenericManager->setActionText( Akonadi::StandardActionManager::SynchronizeCollectionsRecursive,
301 mGenericManager->action( Akonadi::StandardActionManager::SynchronizeCollectionsRecursive )->setWhatsThis(
303 mGenericManager->action( Akonadi::StandardActionManager::SynchronizeCollectionsRecursive )->setHelpText(
427 isSystemFolder = ( collection == SpecialMailCollections::self()->defaultCollection( SpecialMailCollections::Inbox ) ||
428 collection == SpecialMailCollections::self()->defaultCollection( SpecialMailCollections::Outbox ) ||
429 collection == SpecialMailCollections::self()->defaultCollection( SpecialMailCollections::SentMail ) ||
430 collection == SpecialMailCollections::self()->defaultCollection( SpecialMailCollections::Trash ) ||
431 collection == SpecialMailCollections::self()->defaultCollection( SpecialMailCollections::Drafts ) ||
432 collection == SpecialMailCollections::self()->defaultCollection( SpecialMailCollections::Templates ) );
448 mActions.value( Akonadi::StandardMailActionManager::MoveToTrash )->setEnabled( itemIsSelected && canDeleteItem );
451 mActions.value( Akonadi::StandardMailActionManager::RemoveDuplicates )->setEnabled( canDeleteItem );
579 MoveToTrashCommand *command = new MoveToTrashCommand( mCollectionSelectionModel->model(), items, mParent );
598 MoveToTrashCommand *command = new MoveToTrashCommand( mCollectionSelectionModel->model(), collections, mParent );
630 EmptyTrashCommand *command = new EmptyTrashCommand( const_cast<QAbstractItemModel*>( mCollectionSelectionModel->model() ), mParent );
664 StandardMailActionManager::StandardMailActionManager( KActionCollection *actionCollection, QWidget *parent )
674 void StandardMailActionManager::setCollectionSelectionModel( QItemSelectionModel *selectionModel )
759 d->mActionCollection->addAction( QString::fromLatin1( "akonadi_mark_as_action_item" ), action );
795 d->mActionCollection->addAction( QString::fromLatin1( "akonadi_mark_all_as_important" ), action );
807 d->mActionCollection->addAction( QString::fromLatin1( "akonadi_mark_all_as_action_item" ), action );
913 void StandardMailActionManager::setActionText( StandardActionManager::Type type, const KLocalizedString &text )
927 void StandardMailActionManager::interceptAction( StandardActionManager::Type type, bool intercept )
942 void StandardMailActionManager::setFavoriteCollectionsModel( FavoriteCollectionsModel *favoritesModel )
947 void StandardMailActionManager::setFavoriteSelectionModel( QItemSelectionModel *selectionModel )
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:877
qint64 count() const
Returns the number of items in this collection or -1 if this information is not available.
Definition: collectionstatistics.cpp:68
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:87
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:937
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:918
Provides the resource properties.
Definition: standardactionmanager.h:154
Cuts the selected items.
Definition: standardactionmanager.h:150
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:704
void setStatusFromFlags(const QSet< QByteArray > &flags)
Set the status as a whole e.g.
Definition: messagestatus.cpp:621
void setItemSelectionModel(QItemSelectionModel *selectionModel)
Sets the item selection model based on which the item related actions should operate.
Definition: standardmailactionmanager.cpp:689
The outbox collection.
Definition: specialmailcollections.h:83
Provides collection properties.
Definition: standardactionmanager.h:138
The sent-mail collection.
Definition: specialmailcollections.h:84
Remove the collection from the favorite collections model.
Definition: standardactionmanager.h:144
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
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:942
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:932
Menu allowing to quickly copy a collection into another collection.
Definition: standardactionmanager.h:146
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
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:899
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:664
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:913
The drafts collection.
Definition: specialmailcollections.h:86
qint64 unreadCount() const
Returns the number of unread items in this collection or -1 if this information is not available...
Definition: collectionstatistics.cpp:78
~StandardMailActionManager()
Destroys the standard mail action manager.
Definition: standardmailactionmanager.cpp:669
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:122
void setFavoriteSelectionModel(QItemSelectionModel *selectionModel)
Sets the favorite collection selection model based on which the favorite collection related actions s...
Definition: standardmailactionmanager.cpp:947
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
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
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 setCollectionSelectionModel(QItemSelectionModel *selectionModel)
Sets the collection selection model based on which the collection related actions should operate...
Definition: standardmailactionmanager.cpp:674
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:65
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-2013 The KDE developers.
Generated on Tue Nov 26 2013 09:03:19 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Nov 26 2013 09:03:19 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.