Akonadi::TagCache Class
class Akonadi::TagCacheClient-side cache of all exist tags. More...
| Header: | #include <Akonadi/TagCache> |
| CMake: | find_package(KPim6 REQUIRED COMPONENTS AkonadiCore)target_link_libraries(mytarget PRIVATE KPim6::AkonadiCore) |
| Inherits: | QObject |
Public Functions
| void | setTagColor(const QString &tagName, const QColor &color) |
| Akonadi::Tag | tagByGid(const QByteArray &gid) const |
| Akonadi::Tag | tagByName(const QString &name) const |
| QColor | tagColor(const QString &tagName) const |
Static Public Members
| Akonadi::TagCache * | instance() |
Detailed Description
This can be instantiated explicitly or used as a singleton for process-wide sharing.
Member Function Documentation
[static] Akonadi::TagCache *TagCache::instance()
Returns the singleton instance.
void TagCache::setTagColor(const QString &tagName, const QColor &color)
Sets the (background) color of the tag named tagName to color.
See also tagColor().
Akonadi::Tag TagCache::tagByGid(const QByteArray &gid) const
Returns the tag with the GID gid, if available.
Akonadi::Tag TagCache::tagByName(const QString &name) const
Returns the tag with the name name, if available.
QColor TagCache::tagColor(const QString &tagName) const
Returns the (background) color of the tag named tagName. If there is no such tag, or the tag has no color associated, an invalid QColor value is returned.
See also setTagColor().