akonadi
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.
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.
|
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
-
receiver object 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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.