akonadi
20 #ifndef AKONADI_STANDARDACTIONMANAGER_H
21 #define AKONADI_STANDARDACTIONMANAGER_H
23 #include "akonadi_export.h"
25 #include <QtCore/QObject>
27 #include <akonadi/collection.h>
28 #include <akonadi/item.h>
31 class KActionCollection;
32 class KLocalizedString;
33 class QItemSelectionModel;
39 class FavoriteCollectionsModel;
207 void setCollectionSelectionModel(QItemSelectionModel *selectionModel);
215 void setItemSelectionModel(QItemSelectionModel *selectionModel);
235 void setFavoriteSelectionModel(QItemSelectionModel *selectionModel);
244 KAction *createAction(Type type);
250 void createAllActions();
256 KAction *action(Type type)
const;
271 void setActionText(Type type,
const KLocalizedString &text);
283 void interceptAction(Type type,
bool intercept =
true);
299 Akonadi::Item::List selectedItems()
const;
309 void setContextText(Type type, TextContext context,
const QString &text);
319 void setContextText(Type type, TextContext context,
const KLocalizedString &text);
327 void setMimeTypeFilter(
const QStringList &mimeTypes);
335 void setCapabilityFilter(
const QStringList &capabilities);
344 void setCollectionPropertiesPageNames(
const QStringList &names);
353 void createActionFolderMenu(QMenu *menu, Type type);
361 void actionStateUpdated();
368 Q_PRIVATE_SLOT( d,
void updateActions() )
369 #ifndef QT_NO_CLIPBOARD
370 Q_PRIVATE_SLOT( d,
void clipboardChanged(QClipboard::Mode) )
372 Q_PRIVATE_SLOT( d,
void collectionSelectionChanged() )
373 Q_PRIVATE_SLOT( d,
void favoriteSelectionChanged() )
375 Q_PRIVATE_SLOT( d,
void slotCreateCollection() )
376 Q_PRIVATE_SLOT( d,
void slotCopyCollections() )
377 Q_PRIVATE_SLOT( d,
void slotCutCollections() )
378 Q_PRIVATE_SLOT( d,
void slotDeleteCollection() )
379 Q_PRIVATE_SLOT( d,
void slotMoveCollectionToTrash() )
380 Q_PRIVATE_SLOT( d,
void slotMoveItemToTrash() )
381 Q_PRIVATE_SLOT( d,
void slotRestoreCollectionFromTrash() )
382 Q_PRIVATE_SLOT( d,
void slotRestoreItemFromTrash() )
383 Q_PRIVATE_SLOT( d,
void slotTrashRestoreCollection() )
384 Q_PRIVATE_SLOT( d,
void slotTrashRestoreItem() )
385 Q_PRIVATE_SLOT( d,
void slotSynchronizeCollection() )
386 Q_PRIVATE_SLOT( d,
void slotSynchronizeCollectionRecursive() )
387 Q_PRIVATE_SLOT( d,
void slotSynchronizeFavoriteCollections() )
388 Q_PRIVATE_SLOT( d,
void slotCollectionProperties() )
389 Q_PRIVATE_SLOT( d,
void slotCopyItems() )
390 Q_PRIVATE_SLOT( d,
void slotCutItems() )
391 Q_PRIVATE_SLOT( d,
void slotPaste() )
392 Q_PRIVATE_SLOT( d,
void slotDeleteItems() )
393 Q_PRIVATE_SLOT( d,
void slotDeleteItemsDeferred(const
Akonadi::Item::List &) )
394 Q_PRIVATE_SLOT( d,
void slotLocalSubscription() )
395 Q_PRIVATE_SLOT( d,
void slotAddToFavorites() )
396 Q_PRIVATE_SLOT( d,
void slotRemoveFromFavorites() )
397 Q_PRIVATE_SLOT( d,
void slotRenameFavorite() )
398 Q_PRIVATE_SLOT( d,
void slotCopyCollectionTo() )
399 Q_PRIVATE_SLOT( d,
void slotMoveCollectionTo() )
400 Q_PRIVATE_SLOT( d,
void slotCopyItemTo() )
401 Q_PRIVATE_SLOT( d,
void slotMoveItemTo() )
402 Q_PRIVATE_SLOT( d,
void slotCopyCollectionTo(QAction*) )
403 Q_PRIVATE_SLOT( d,
void slotMoveCollectionTo(QAction*) )
404 Q_PRIVATE_SLOT( d,
void slotCopyItemTo(QAction*) )
405 Q_PRIVATE_SLOT( d,
void slotMoveItemTo(QAction*) )
406 Q_PRIVATE_SLOT( d,
void slotCreateResource() )
407 Q_PRIVATE_SLOT( d,
void slotDeleteResource() )
408 Q_PRIVATE_SLOT( d,
void slotResourceProperties() )
409 Q_PRIVATE_SLOT( d,
void slotSynchronizeResource() )
410 Q_PRIVATE_SLOT( d,
void slotToggleWorkOffline(
bool) )
412 Q_PRIVATE_SLOT( d,
void collectionCreationResult(KJob*) )
413 Q_PRIVATE_SLOT( d,
void collectionDeletionResult(KJob*) )
414 Q_PRIVATE_SLOT( d,
void moveCollectionToTrashResult(KJob*) )
415 Q_PRIVATE_SLOT( d,
void moveItemToTrashResult(KJob*) )
416 Q_PRIVATE_SLOT( d,
void itemDeletionResult(KJob*) )
417 Q_PRIVATE_SLOT( d,
void resourceCreationResult(KJob*) )
418 Q_PRIVATE_SLOT( d,
void pasteResult(KJob*) )
420 Q_PRIVATE_SLOT( d,
void enableAction(
int,
bool) )
421 Q_PRIVATE_SLOT( d,
void updatePluralLabel(
int,
int) )
422 Q_PRIVATE_SLOT( d,
void updateAlternatingAction(
int) )
425 Q_PRIVATE_SLOT( d,
void aboutToShowMenu() )
@ CopyItems
Copies the selected items.
@ CutItems
Cuts the selected items.
@ SynchronizeFavoriteCollections
Synchronize favorite collections.
Manages generic actions for collection and item views.
@ ErrorMessageTitle
The window title of an error message.
Represents a collection of PIM items.
@ MoveToTrashRestoreCollectionAlternative
Helper type for MoveToTrashRestoreCollection, do not create directly. Use this to override texts of t...
@ Paste
Paste collections or items.
@ ToggleWorkOffline
Toggles the work offline state of all resources.
@ CopyCollectionToDialog
Copy a collection into another collection, select the target in a dialog.
@ CollectionProperties
Provides collection properties.
@ RemoveFromFavoriteCollections
Remove the collection from the favorite collections model.
@ ResourceProperties
Provides the resource properties.
@ RestoreCollectionsFromTrash
Restores the selected collection from trash, needs EntityDeletedAttribute.
@ SynchronizeCollectionsRecursive
Synchronizes collections in a recursive way.
@ RestoreItemsFromTrash
Restores the selected items from trash, needs EntityDeletedAttribute.
@ AddToFavoriteCollections
Add the collection to the favorite collections model.
@ CopyItemToDialog
Copy an item into a collection, select the target in a dialog.
@ SynchronizeResources
Synchronizes the selected resources.
@ CopyCollections
Copies the selected collections.
@ DeleteResources
Deletes the selected resources.
@ MessageBoxTitle
The window title of a message box.
@ CopyCollectionToMenu
Menu allowing to quickly copy a collection into another collection.
@ MessageBoxText
The text of a message box.
@ DialogTitle
The window title of a dialog.
A model that lists a set of favorite collections.
@ CutCollections
Cuts the selected collections.
@ CreateResource
Creates a new resource.
@ ManageLocalSubscriptions
Manages local subscriptions.
@ MoveItemToDialog
Move an item into a collection, select the target in a dialog.
TextContext
Describes the text context that can be customized.
Type
Describes the supported actions.
@ DeleteCollections
Deletes the selected collections.
@ MoveToTrashRestoreCollection
Move Collection to Trash or Restore it from Trash, needs EntityDeletedAttribute.
@ CopyItemToMenu
Menu allowing to quickly copy an item into a collection.
@ MoveCollectionToMenu
Menu allowing to move a collection into another collection.
@ DeleteItems
Deletes the selected items.
@ MoveToTrashRestoreItemAlternative
Helper type for MoveToTrashRestoreItem, do not create directly. Use this to override texts of the res...
@ MoveToTrashRestoreItem
Move Item to Trash or Restore it from Trash, needs EntityDeletedAttribute.
@ CreateCollection
Creates an collection.
@ RenameFavoriteCollection
Rename the collection of the favorite collections model.
@ MessageBoxAlternativeText
An alternative text of a message box.
@ MoveCollectionsToTrash
Moves the selected collection to trash and marks it as deleted, needs EntityDeletedAttribute.
@ MoveItemsToTrash
Moves the selected items to trash and marks them as deleted, needs EntityDeletedAttribute.
@ MoveCollectionToDialog
Move a collection into another collection, select the target in a dialog.
@ SynchronizeCollections
Synchronizes collections.
@ DialogText
The text of a dialog.
@ MoveItemToMenu
Menu allowing to move item into a collection.
FreeBusyManager::Singleton.
QList< Collection > List
Describes a list of collections.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Jan 29 2020 00:00:00 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.