akonadi
standardmailactionmanager.cpp
59 Private( KActionCollection *actionCollection, QWidget *parentWidget, StandardMailActionManager *parent )
185 mGenericManager->action( Akonadi::StandardActionManager::SynchronizeCollections )->setWhatsThis(
296 mGenericManager->setActionText( Akonadi::StandardActionManager::SynchronizeCollectionsRecursive,
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 )
678 void StandardMailActionManager::setCollectionSelectionModel( QItemSelectionModel *selectionModel )
763 d->mActionCollection->addAction( QString::fromLatin1( "akonadi_mark_as_action_item" ), action );
799 d->mActionCollection->addAction( QString::fromLatin1( "akonadi_mark_all_as_important" ), action );
811 d->mActionCollection->addAction( QString::fromLatin1( "akonadi_mark_all_as_action_item" ), action );
917 void StandardMailActionManager::setActionText( StandardActionManager::Type type, const KLocalizedString &text )
931 void StandardMailActionManager::interceptAction( StandardActionManager::Type type, bool intercept )
946 void StandardMailActionManager::setFavoriteCollectionsModel( FavoriteCollectionsModel *favoritesModel )
951 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:881
qint64 count() const
Returns the number of items in this collection or -1 if this information is not available.
Definition: collectionstatistics.cpp:67
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:941
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:922
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:708
void setStatusFromFlags(const QSet< QByteArray > &flags)
Set the status as a whole e.g.
Definition: messagestatus.cpp:619
void setItemSelectionModel(QItemSelectionModel *selectionModel)
Sets the item selection model based on which the item related actions should operate.
Definition: standardmailactionmanager.cpp:693
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:946
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:936
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:903
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:917
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:77
~StandardMailActionManager()
Destroys the standard mail action manager.
Definition: standardmailactionmanager.cpp:673
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:951
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:520
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:678
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.