an Extendable KDE Blogging Client Logo

Blokkal::Io::CategoryManager Class Reference

Manages categories. More...

#include <categorymanager.h>

Inheritance diagram for Blokkal::Io::CategoryManager:

List of all members.


void categoryAdded (const QString &blogId, Blokkal::Io::Category *category, Blokkal::Io::CategoryManager *manager=0)
void categoryRemoved (const QString &blogId, Blokkal::Io::Category *category, Blokkal::Io::CategoryManager *manager=0)

Public Member Functions

Blokkal::Accountaccount (void) const
Blokkal::Io::CategoryList categories (const QString &blogId) const
Blokkal::Io::Categorycategory (const QString &blogId, const QString &categoryId)
 CategoryManager (Blokkal::Account *account)
void setValidCategories (const QString &blogId, QStringList categories)
 ~CategoryManager (void)


class Category

Detailed Description

Manages categories.

Manages categories.

Martin Mueller <>

Definition at line 44 of file categorymanager.h.

Constructor & Destructor Documentation

Blokkal::Io::CategoryManager::CategoryManager ( Blokkal::Account account  ) 

Creates a new CategoryManager for account

account parent account

Definition at line 95 of file categorymanager.cpp.

Blokkal::Io::CategoryManager::~CategoryManager ( void   ) 


Definition at line 142 of file categorymanager.cpp.

Member Function Documentation

Blokkal::Account * Blokkal::Io::CategoryManager::account ( void   )  const

Returns the account this manager belongs to.

the account this manager belongs to

Definition at line 276 of file categorymanager.cpp.

Blokkal::Io::CategoryList Blokkal::Io::CategoryManager::categories ( const QString &  blogId  )  const

Returns the categories for blogId. If the id is invalid the returned list is empty

blogId get categories for this blog
the categories for blogId

Definition at line 177 of file categorymanager.cpp.

Blokkal::Io::Category * Blokkal::Io::CategoryManager::category ( const QString &  blogId,
const QString &  categoryId 

Returns the category with categoryId in the blog with blogId If no category with that id exists a new category object is inserted into the list and then returned. If additionally no blog with the given id exists, a new list for that blog is created first.

blogId id of the blog the category belongs to
categoryId id of the category

Definition at line 187 of file categorymanager.cpp.

void Blokkal::Io::CategoryManager::categoryAdded ( const QString &  blogId,
Blokkal::Io::Category category,
Blokkal::Io::CategoryManager manager = 0 
) [signal]

This signal is emitted when a new category for blogId has been added.

void Blokkal::Io::CategoryManager::categoryRemoved ( const QString &  blogId,
Blokkal::Io::Category category,
Blokkal::Io::CategoryManager manager = 0 
) [signal]

This signal is emitted when a category of blogId has been destroyed.

void Blokkal::Io::CategoryManager::setValidCategories ( const QString &  blogId,
QStringList  categories 

Removes all categories that not occur in categories

categories the new category list
blogId id of the blog the categories are valid for

Definition at line 158 of file categorymanager.cpp.

The documentation for this class was generated from the following files: