blogilo
#include <backend.h>
Backend::Backend |
( |
int |
blog_id, |
|
|
QObject * |
parent = 0 |
|
) |
| |
|
explicit |
void Backend::categoriesListed |
( |
const QList< QMap< QString, QString > > & |
categories | ) |
|
|
protectedslot |
void Backend::entriesListed |
( |
const QList< KBlog::BlogPost > & |
posts | ) |
|
|
protectedslot |
void Backend::error |
( |
KBlog::Blog::ErrorType |
type, |
|
|
const QString & |
errorMessage |
|
) |
| |
|
protectedslot |
Fetch a blog post from the server with a specific ID.
The ID of the existing post must be retrieved using getRecentPosts and then be modified and provided to this method or a new BlogPost created with the existing ID.
- Parameters
-
post | a blog post with the ID identifying the blog post to fetch. |
- See also
- sigPostFetched()
Definition at line 332 of file backend.cpp.
void Backend::getCategoryListFromServer |
( |
| ) |
|
Request to Fetch categories list from server.
and after it's fetched, categoriesListed() SLOT will insert them to database, and update list in database and emit categoriesFetched() SIGNAL.
- Parameters
-
Definition at line 86 of file backend.cpp.
void Backend::getEntriesListFromServer |
( |
int |
count | ) |
|
retrieve latest posts from server
- Parameters
-
count | number of post to retrieve. |
Definition at line 127 of file backend.cpp.
void Backend::mediaUploaded |
( |
KBlog::BlogMedia * |
media | ) |
|
|
protectedslot |
Modify an existing post.
Note: posiId must sets correctly.
- Parameters
-
Definition at line 300 of file backend.cpp.
void Backend::postPublished |
( |
KBlog::BlogPost * |
post | ) |
|
|
protectedslot |
void Backend::publishPost |
( |
BilboPost * |
post | ) |
|
Use this to publish a post to server.
- Parameters
-
Definition at line 153 of file backend.cpp.
Remove an existing post from server.
- Parameters
-
Definition at line 310 of file backend.cpp.
void Backend::savePostInDbAndEmitResult |
( |
KBlog::BlogPost * |
post | ) |
|
|
protectedslot |
This function is called after a post published fine, to insert it to DB and emit sigPostPublished.
Definition at line 393 of file backend.cpp.
void Backend::sigCategoryListFetched |
( |
int |
blog_id | ) |
|
|
signal |
emit when a categoriesListed() Done and Categories added to DB
- Parameters
-
blog_id | id of Blog owner of categories. |
void Backend::sigEntriesListFetched |
( |
int |
blog_id | ) |
|
|
signal |
emit when a entriesListed() Done and Entries added to DB
- Parameters
-
blog_id | id of Blog owner of Entries. |
void Backend::sigError |
( |
const QString & |
errorMessage | ) |
|
|
signal |
this signal emitted when an error occurred on current transaction.
- Parameters
-
type | type of error |
errorMessage | error message. |
void Backend::sigMediaError |
( |
const QString & |
errorMessage, |
|
|
BilboMedia * |
media |
|
) |
| |
|
signal |
void Backend::sigMediaUploaded |
( |
BilboMedia * |
media | ) |
|
|
signal |
This signal is emitted when a media has been uploaded to the server.
- Parameters
-
media | Uploaded media Object. |
void Backend::sigPostFetched |
( |
BilboPost * |
post | ) |
|
|
signal |
void Backend::sigPostPublished |
( |
int |
blog_id, |
|
|
BilboPost * |
post |
|
) |
| |
|
signal |
This signal is emitted when a post published/modified and added/edited to Database.
- Parameters
-
blog_id | blog id. |
post | The post has been saved. |
void Backend::sigPostRemoved |
( |
int |
blog_id, |
|
|
const BilboPost & |
post |
|
) |
| |
|
signal |
this signal is emitted when a post removed successfully.
void Backend::slotMediaError |
( |
KBlog::Blog::ErrorType |
type, |
|
|
const QString & |
errorMessage, |
|
|
KBlog::BlogMedia * |
media |
|
) |
| |
|
protectedslot |
void Backend::slotPostFetched |
( |
KBlog::BlogPost * |
post | ) |
|
|
protectedslot |
void Backend::slotPostRemoved |
( |
KBlog::BlogPost * |
post | ) |
|
|
protectedslot |
Upload a new Media object e.g.
image to server.
- Parameters
-
media | Media Object to upload. |
Definition at line 190 of file backend.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:44 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.