kmail
#include <tagactionmanager.h>
Signals | |
void | tagActionTriggered (const QString &tagLabel) |
void | tagMoreActionClicked () |
Public Member Functions | |
TagActionManager (QObject *parent, KActionCollection *actionCollection, MessageActions *messageActions, KXMLGUIClient *guiClient) | |
~TagActionManager () | |
void | clearActions () |
void | createActions () |
void | updateActionStates (int numberOfSelectedMessages, const Akonadi::Item &selectedItem) |
Detailed Description
Creates actions related to the existing Nepomuk tags and plugs them into the GUI.
The tag manager reads all tags from Nepomuk and adds each to the action collection and to the message status menu. For tags that should be in the toolbar, it plugs the action list toolbar_messagetag_actions.
The actions are automatically updated when a Nepomuk tag changes.
Definition at line 66 of file tagactionmanager.h.
Constructor & Destructor Documentation
TagActionManager::TagActionManager | ( | QObject * | parent, |
KActionCollection * | actionCollection, | ||
MessageActions * | messageActions, | ||
KXMLGUIClient * | guiClient | ||
) |
Does not take ownership of the action collection, the GUI client or the message actions.
Does not yet create the actions.
- Parameters
-
actionCollection Each tag action is added here messageActions Each action is added to the message status menu guiClient The action list with the toolbar action is plugged here
Definition at line 52 of file tagactionmanager.cpp.
TagActionManager::~TagActionManager | ( | ) |
Definition at line 86 of file tagactionmanager.cpp.
Member Function Documentation
void TagActionManager::clearActions | ( | ) |
Removes all actions from the GUI again.
Definition at line 90 of file tagactionmanager.cpp.
void TagActionManager::createActions | ( | ) |
Creates and plugs all tag actions.
Definition at line 160 of file tagactionmanager.cpp.
|
signal |
Emitted when one of the tagging actions was triggered.
The user of this class should connect to this signal and change the tags of the messages
|
signal |
Emitted when we want to select more action.
void TagActionManager::updateActionStates | ( | int | numberOfSelectedMessages, |
const Akonadi::Item & | selectedItem | ||
) |
Updates the state of the toggle actions of all tags.
The state of the action depends on the number of selected messages, for example all actions are disabled when no message is selected.
This function is async
- Parameters
-
selectedItem if exactly one item is selected, it should be passed here
Definition at line 266 of file tagactionmanager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.