• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kmail

  • KMail
  • TagActionManager
Signals | Public Member Functions | List of all members
KMail::TagActionManager Class Reference

#include <tagactionmanager.h>

Inheritance diagram for KMail::TagActionManager:
Inheritance graph
[legend]

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
actionCollectionEach tag action is added here
messageActionsEach action is added to the message status menu
guiClientThe 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.

void KMail::TagActionManager::tagActionTriggered ( const QString &  tagLabel)
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

void KMail::TagActionManager::tagMoreActionClicked ( )
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
selectedItemif 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:
  • tagactionmanager.h
  • tagactionmanager.cpp
This file is part of the KDE documentation.
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.

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal