#include <actionstatemanager_p.h>
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.
◆ ActionStateManager()
ActionStateManager::ActionStateManager |
( |
| ) |
|
◆ ~ActionStateManager()
ActionStateManager::~ActionStateManager |
( |
| ) |
|
|
virtual |
◆ collectionCanHaveItems()
bool ActionStateManager::collectionCanHaveItems |
( |
const Collection & | collection | ) |
const |
|
protectedvirtual |
◆ enableAction()
void ActionStateManager::enableAction |
( |
int | action, |
|
|
bool | state ) |
|
protectedvirtual |
◆ hasResourceCapability()
bool ActionStateManager::hasResourceCapability |
( |
const Collection & | collection, |
|
|
const QString & | capability ) const |
|
protectedvirtual |
◆ isFavoriteCollection()
bool ActionStateManager::isFavoriteCollection |
( |
const Collection & | collection | ) |
const |
|
protectedvirtual |
◆ isFolderCollection()
bool ActionStateManager::isFolderCollection |
( |
const Collection & | collection | ) |
const |
|
protectedvirtual |
◆ isResourceCollection()
bool ActionStateManager::isResourceCollection |
( |
const Collection & | collection | ) |
const |
|
protectedvirtual |
◆ isRootCollection()
bool ActionStateManager::isRootCollection |
( |
const Collection & | collection | ) |
const |
|
protectedvirtual |
◆ isSpecialCollection()
bool ActionStateManager::isSpecialCollection |
( |
const Collection & | collection | ) |
const |
|
protectedvirtual |
◆ 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
-
receiver | object that will actually update the states. |
Definition at line 73 of file actionstatemanager.cpp.
◆ updateAlternatingAction()
void ActionStateManager::updateAlternatingAction |
( |
int | action | ) |
|
|
protectedvirtual |
◆ updatePluralLabel()
void ActionStateManager::updatePluralLabel |
( |
int | action, |
|
|
int | count ) |
|
protectedvirtual |
◆ 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:
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.