akonadi
#include <specialcollections_p.h>
Public Member Functions | |
SpecialCollectionsPrivate (KCoreConfigSkeleton *settings, SpecialCollections *qq) | |
void | beginBatchRegister () |
void | collectionFetchJobFinished (KJob *) |
void | collectionRemoved (const Collection &collection) |
void | collectionStatisticsChanged (Akonadi::Collection::Id, const Akonadi::CollectionStatistics &) |
AgentInstance | defaultResource () const |
QString | defaultResourceId () const |
void | emitChanged (const QString &resourceId) |
void | endBatchRegister () |
void | forgetFoldersForResource (const QString &resourceId) |
Public Attributes | |
bool | mBatchMode |
QString | mDefaultResourceId |
QHash< QString, QHash< QByteArray, Collection > > | mFoldersForResource |
Monitor * | mMonitor |
KCoreConfigSkeleton * | mSettings |
QSet< QString > | mToEmitChangedFor |
SpecialCollections * | q |
Detailed Description
Definition at line 44 of file specialcollections_p.h.
Constructor & Destructor Documentation
◆ SpecialCollectionsPrivate()
SpecialCollectionsPrivate::SpecialCollectionsPrivate | ( | KCoreConfigSkeleton * | settings, |
SpecialCollections * | qq ) |
In order to know if items are added or deleted from one of our specialcollection folders, we have to watch all mail item add/move/delete notifications and check for the parent to see if it is one we care about
Definition at line 41 of file specialcollections.cpp.
◆ ~SpecialCollectionsPrivate()
SpecialCollectionsPrivate::~SpecialCollectionsPrivate | ( | ) |
Definition at line 59 of file specialcollections.cpp.
Member Function Documentation
◆ beginBatchRegister()
void SpecialCollectionsPrivate::beginBatchRegister | ( | ) |
Avoids emitting the foldersChanged() signal until endBatchRegister() is called.
This is used to avoid emitting repeated signals when multiple folders are registered in a row. This method is used by SpecialCollectionsRequestJob.
Definition at line 144 of file specialcollections.cpp.
◆ collectionFetchJobFinished()
void SpecialCollectionsPrivate::collectionFetchJobFinished | ( | KJob * | job | ) |
Definition at line 128 of file specialcollections.cpp.
◆ collectionRemoved()
void SpecialCollectionsPrivate::collectionRemoved | ( | const Collection & | collection | ) |
Definition at line 91 of file specialcollections.cpp.
◆ collectionStatisticsChanged()
void SpecialCollectionsPrivate::collectionStatisticsChanged | ( | Akonadi::Collection::Id | collectionId, |
const Akonadi::CollectionStatistics & | statistics ) |
Definition at line 117 of file specialcollections.cpp.
◆ defaultResource()
AgentInstance SpecialCollectionsPrivate::defaultResource | ( | ) | const |
Definition at line 177 of file specialcollections.cpp.
◆ defaultResourceId()
QString SpecialCollectionsPrivate::defaultResourceId | ( | ) | const |
Definition at line 63 of file specialcollections.cpp.
◆ emitChanged()
void SpecialCollectionsPrivate::emitChanged | ( | const QString & | resourceId | ) |
Definition at line 75 of file specialcollections.cpp.
◆ endBatchRegister()
void SpecialCollectionsPrivate::endBatchRegister | ( | ) |
- See also
- beginBatchRegister() This method is used by SpecialCollectionsRequestJob.
Definition at line 151 of file specialcollections.cpp.
◆ forgetFoldersForResource()
void SpecialCollectionsPrivate::forgetFoldersForResource | ( | const QString & | resourceId | ) |
Forgets all folders owned by the given resource.
This method is used by SpecialCollectionsRequestJob.
- Parameters
-
resourceId the identifier of the resource for which to forget folders
Definition at line 163 of file specialcollections.cpp.
Member Data Documentation
◆ mBatchMode
bool Akonadi::SpecialCollectionsPrivate::mBatchMode |
Definition at line 82 of file specialcollections_p.h.
◆ mDefaultResourceId
|
mutable |
Definition at line 86 of file specialcollections_p.h.
◆ mFoldersForResource
QHash<QString, QHash<QByteArray, Collection> > Akonadi::SpecialCollectionsPrivate::mFoldersForResource |
Definition at line 81 of file specialcollections_p.h.
◆ mMonitor
Monitor* Akonadi::SpecialCollectionsPrivate::mMonitor |
Definition at line 84 of file specialcollections_p.h.
◆ mSettings
KCoreConfigSkeleton* Akonadi::SpecialCollectionsPrivate::mSettings |
Definition at line 80 of file specialcollections_p.h.
◆ mToEmitChangedFor
QSet<QString> Akonadi::SpecialCollectionsPrivate::mToEmitChangedFor |
Definition at line 83 of file specialcollections_p.h.
◆ q
SpecialCollections* Akonadi::SpecialCollectionsPrivate::q |
Definition at line 79 of file specialcollections_p.h.
The documentation for this class was generated from the following files:
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.