• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 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::ActionStateManager ( )

Creates a new action state manager.

Definition at line 64 of file actionstatemanager.cpp.

◆ ~ActionStateManager()

ActionStateManager::~ActionStateManager ( )
virtual

Destroys the action state manager.

Definition at line 69 of file actionstatemanager.cpp.

Member Function Documentation

◆ collectionCanHaveItems()

bool ActionStateManager::collectionCanHaveItems ( const Collection & collection) const
protectedvirtual

Definition at line 391 of file actionstatemanager.cpp.

◆ enableAction()

void ActionStateManager::enableAction ( int action,
bool state )
protectedvirtual

Definition at line 397 of file actionstatemanager.cpp.

◆ hasResourceCapability()

bool ActionStateManager::hasResourceCapability ( const Collection & collection,
const QString & capability ) const
protectedvirtual

Definition at line 384 of file actionstatemanager.cpp.

◆ isFavoriteCollection()

bool ActionStateManager::isFavoriteCollection ( const Collection & collection) const
protectedvirtual

Definition at line 371 of file actionstatemanager.cpp.

◆ isFolderCollection()

bool ActionStateManager::isFolderCollection ( const Collection & collection) const
protectedvirtual

Definition at line 359 of file actionstatemanager.cpp.

◆ isResourceCollection()

bool ActionStateManager::isResourceCollection ( const Collection & collection) const
protectedvirtual

Definition at line 354 of file actionstatemanager.cpp.

◆ isRootCollection()

bool ActionStateManager::isRootCollection ( const Collection & collection) const
protectedvirtual

Definition at line 349 of file actionstatemanager.cpp.

◆ isSpecialCollection()

bool ActionStateManager::isSpecialCollection ( const Collection & collection) const
protectedvirtual

Definition at line 366 of file actionstatemanager.cpp.

◆ setReceiver()

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.

◆ updateAlternatingAction()

void ActionStateManager::updateAlternatingAction ( int action)
protectedvirtual

Definition at line 415 of file actionstatemanager.cpp.

◆ updatePluralLabel()

void ActionStateManager::updatePluralLabel ( int action,
int count )
protectedvirtual

Definition at line 406 of file actionstatemanager.cpp.

◆ updateState()

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-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 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
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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