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

akonadi

  • Akonadi
  • ActionStateManager
Public Member Functions | Protected Member Functions | List of all members
Akonadi::ActionStateManager Class Reference

#include <actionstatemanager_p.h>

Public Member Functions

 ActionStateManager ()
 
virtual ~ActionStateManager ()
 
void setReceiver (QObject *receiver)
 
void updateState (const Collection::List &collections, const Item::List &items)
 

Protected Member Functions

virtual bool collectionCanHaveItems (const Collection &collection) const
 
virtual void enableAction (int action, bool state)
 
virtual bool hasResourceCapability (const Collection &collection, const QString &capability) const
 
virtual bool isFavoriteCollection (const Collection &collection) const
 
virtual bool isFolderCollection (const Collection &collection) const
 
virtual bool isResourceCollection (const Collection &collection) const
 
virtual bool isRootCollection (const Collection &collection) const
 
virtual bool isSpecialCollection (const Collection &collection) const
 
virtual void updateAlternatingAction (int action)
 
virtual void updatePluralLabel (int action, int count)
 

Detailed Description

A helper class to manage action states.

Author
Tobias Koenig tokoe.nosp@m.@kde.nosp@m..org

Definition at line 35 of file actionstatemanager_p.h.

Constructor & Destructor Documentation

ActionStateManager::ActionStateManager ( )

Creates a new action state manager.

Definition at line 64 of file actionstatemanager.cpp.

ActionStateManager::~ActionStateManager ( )
virtual

Destroys the action state manager.

Definition at line 69 of file actionstatemanager.cpp.

Member Function Documentation

void ActionStateManager::setReceiver ( QObject *  receiver)

Sets the receiver object that will actually update the states.

The object must provide the following three slots:

  • void enableAction( int, bool )
  • void updatePluralLabel( int, int )
  • bool isFavoriteCollection( const Akonadi::Collection& )
    Parameters
    receiverobject that will actually update the states.

Definition at line 73 of file actionstatemanager.cpp.

void ActionStateManager::updateState ( const Collection::List &  collections,
const Item::List &  items 
)

Updates the states according to the selected collections and items.

Definition at line 78 of file actionstatemanager.cpp.


The documentation for this class was generated from the following files:
  • actionstatemanager_p.h
  • actionstatemanager.cpp
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

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

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