Blokkal::BlogModel Class Reference
Wraps the account/blog structure for a view. More...
#include <blokkalblogmodel.h>

Public Member Functions | |
BlogModel (QObject *parent=0) | |
Protected Slots | |
virtual void | addAccount (Blokkal::Account *account) |
virtual void | addBlog (Blokkal::Blog *blog) |
void | emitDataChanged (Blokkal::Account *account) |
virtual void | removeAccount (Blokkal::Account *account) |
virtual void | removeBlog (Blokkal::Blog *blog) |
Protected Member Functions | |
TreeItemNode * | findAccountNode (Blokkal::Account *account) |
TreeItemNode * | findBlogNode (Blokkal::Blog *blog) |
Detailed Description
Wraps the account/blog structure for a view.This class is supposed to be used together with a BlogDelegate. It wraps the pointers to the accounts and blogs into a QVariant. The delegate will then handle the screen representation.
Definition at line 38 of file blokkalblogmodel.h.
Constructor & Destructor Documentation
Blokkal::BlogModel::BlogModel | ( | QObject * | parent = 0 |
) |
Constructor parent parent object
Definition at line 35 of file blokkalblogmodel.cpp.
Member Function Documentation
void Blokkal::BlogModel::addAccount | ( | Blokkal::Account * | account | ) | [protected, virtual, slot] |
This slot is called when a new account has been created.
- Parameters:
-
account the new account
Definition at line 93 of file blokkalblogmodel.cpp.
void Blokkal::BlogModel::addBlog | ( | Blokkal::Blog * | blog | ) | [protected, virtual, slot] |
This slot is called when a new blog has been created.
- Parameters:
-
blog the new blog
Reimplemented in Blokkal::BlogCategoryModel.
Definition at line 119 of file blokkalblogmodel.cpp.
void Blokkal::BlogModel::emitDataChanged | ( | Blokkal::Account * | account | ) | [protected, slot] |
This slot can be used to notify the view that an account has changed in a way that requires an update of the screen representation
Definition at line 196 of file blokkalblogmodel.cpp.
void Blokkal::BlogModel::removeAccount | ( | Blokkal::Account * | account | ) | [protected, virtual, slot] |
This slot is called when an account is about to be deleted.
- Parameters:
-
account the account to remove
Definition at line 138 of file blokkalblogmodel.cpp.
void Blokkal::BlogModel::removeBlog | ( | Blokkal::Blog * | blog | ) | [protected, virtual, slot] |
This slot is called when a blog is about to be deleted.
- Parameters:
-
blog the blog to remove
Reimplemented in Blokkal::BlogCategoryModel.
Definition at line 174 of file blokkalblogmodel.cpp.
The documentation for this class was generated from the following files: