• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

blogilo

Signals | Public Member Functions | Protected Slots | List of all members
Backend Class Reference

#include <backend.h>

Inheritance diagram for Backend:
Inheritance graph
[legend]

Signals

void sigCategoryListFetched (int blog_id)
 
void sigEntriesListFetched (int blog_id)
 
void sigError (const QString &errorMessage)
 
void sigMediaError (const QString &errorMessage, BilboMedia *media)
 
void sigMediaUploaded (BilboMedia *media)
 
void sigPostFetched (BilboPost *post)
 
void sigPostPublished (int blog_id, BilboPost *post)
 
void sigPostRemoved (int blog_id, const BilboPost &post)
 

Public Member Functions

 Backend (int blog_id, QObject *parent=0)
 
 ~Backend ()
 
void fetchPost (BilboPost *post)
 
void getCategoryListFromServer ()
 
void getEntriesListFromServer (int count)
 
void modifyPost (BilboPost *post)
 
void publishPost (BilboPost *post)
 
void removePost (BilboPost *post)
 
void uploadMedia (BilboMedia *media)
 

Protected Slots

void categoriesListed (const QList< QMap< QString, QString > > &categories)
 
void entriesListed (const QList< KBlog::BlogPost > &posts)
 
void error (KBlog::Blog::ErrorType type, const QString &errorMessage)
 
void mediaUploaded (KBlog::BlogMedia *media)
 
void postPublished (KBlog::BlogPost *post)
 
void savePostInDbAndEmitResult (KBlog::BlogPost *post)
 
void slotMediaError (KBlog::Blog::ErrorType type, const QString &errorMessage, KBlog::BlogMedia *media)
 
void slotPostFetched (KBlog::BlogPost *post)
 
void slotPostRemoved (KBlog::BlogPost *post)
 

Detailed Description

Engine of application.

this is heart and brain of app. ;)

Author
Mehrdad Momeny mehrd.nosp@m.ad.m.nosp@m.omeny.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Golnaz Nilieh g382n.nosp@m.ilie.nosp@m.h@gma.nosp@m.il.c.nosp@m.om

Definition at line 45 of file backend.h.

Constructor & Destructor Documentation

Backend::Backend ( int  blog_id,
QObject *  parent = 0 
)
explicit

Definition at line 62 of file backend.cpp.

Backend::~Backend ( )

Definition at line 80 of file backend.cpp.

Member Function Documentation

void Backend::categoriesListed ( const QList< QMap< QString, QString > > &  categories)
protectedslot

Definition at line 101 of file backend.cpp.

void Backend::entriesListed ( const QList< KBlog::BlogPost > &  posts)
protectedslot

Definition at line 135 of file backend.cpp.

void Backend::error ( KBlog::Blog::ErrorType  type,
const QString &  errorMessage 
)
protectedslot

Definition at line 346 of file backend.cpp.

void Backend::fetchPost ( BilboPost *  post)

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
posta 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
blog_idId of blog in DB!

Definition at line 86 of file backend.cpp.

void Backend::getEntriesListFromServer ( int  count)

retrieve latest posts from server

Parameters
countnumber of post to retrieve.

Definition at line 127 of file backend.cpp.

void Backend::mediaUploaded ( KBlog::BlogMedia *  media)
protectedslot

Definition at line 263 of file backend.cpp.

void Backend::modifyPost ( BilboPost *  post)

Modify an existing post.

Note: posiId must sets correctly.

Parameters
postpost to modify.

Definition at line 300 of file backend.cpp.

void Backend::postPublished ( KBlog::BlogPost *  post)
protectedslot

Definition at line 168 of file backend.cpp.

void Backend::publishPost ( BilboPost *  post)

Use this to publish a post to server.

Parameters
postPost to publish.

Definition at line 153 of file backend.cpp.

void Backend::removePost ( BilboPost *  post)

Remove an existing post from server.

Parameters
postpost to remove.

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_idid of Blog owner of categories.
void Backend::sigEntriesListFetched ( int  blog_id)
signal

emit when a entriesListed() Done and Entries added to DB

Parameters
blog_idid of Blog owner of Entries.
void Backend::sigError ( const QString &  errorMessage)
signal

this signal emitted when an error occurred on current transaction.

Parameters
typetype of error
errorMessageerror 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
mediaUploaded 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_idblog id.
postThe 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

Definition at line 356 of file backend.cpp.

void Backend::slotPostFetched ( KBlog::BlogPost *  post)
protectedslot

Definition at line 340 of file backend.cpp.

void Backend::slotPostRemoved ( KBlog::BlogPost *  post)
protectedslot

Definition at line 320 of file backend.cpp.

void Backend::uploadMedia ( BilboMedia *  media)

Upload a new Media object e.g.

image to server.

Parameters
mediaMedia Object to upload.

Definition at line 190 of file backend.cpp.


The documentation for this class was generated from the following files:
  • backend.h
  • backend.cpp
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.

blogilo

Skip menu "blogilo"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal