• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

KBlog Client Library

  • KBlog
  • Blogger1
Signals | Public Member Functions | Protected Member Functions
KBlog::Blogger1 Class Reference

#include <blogger1.h>

Inheritance diagram for KBlog::Blogger1:
Inheritance graph
[legend]

List of all members.

Signals

void fetchedUserInfo (const QMap< QString, QString > &userInfo)
void listedBlogs (const QList< QMap< QString, QString > > &blogsList)

Public Member Functions

 Blogger1 (const KUrl &server, QObject *parent=0)
virtual ~Blogger1 ()
void createPost (KBlog::BlogPost *post)
void fetchPost (KBlog::BlogPost *post)
virtual void fetchUserInfo ()
QString interfaceName () const
virtual void listBlogs ()
void listRecentPosts (int number)
void modifyPost (KBlog::BlogPost *post)
void removePost (KBlog::BlogPost *post)
void setUrl (const KUrl &server)

Protected Member Functions

 Blogger1 (const KUrl &server, Blogger1Private &dd, QObject *parent=0)

Detailed Description

A class that can be used for access to Blogger 1.0 blogs.

Almost every blog server supports Blogger 1.0. Compared to MetaWeblog it is not as functional and is obsolete on blogspot.com compared to GData which uses Atom instead of Xml-Rpc.

   Blog* myblog = new Blogger1("http://example.com/xmlrpc/gateway.php");
   myblog->setUsername( "some_user_id" );
   myblog->setPassword( "YoUrFunnYPasSword" );
   myblog->setBlogId( "1" ); // can be caught by listBlogs()
   KBlog::BlogPost *post = new BlogPost();
   post->setTitle( "This is the title." );
   post->setContent( "Here is some the content..." );
   myblog->createPost( post );
Author:
Christian Weilbach <christian_weilbach@web.de>
Reinhold Kainhofer <reinhold@kainhofer.com>

Constructor & Destructor Documentation

Blogger1::Blogger1 ( const KUrl &  server,
QObject *  parent = 0 
) [explicit]

Create an object for Blogger 1.0.

Parameters:
serveris the url for the xmlrpc gateway.
parentthe parent object.

Definition at line 40 of file blogger1.cpp.

Blogger1::~Blogger1 ( ) [virtual]

Destroy the object.

Definition at line 54 of file blogger1.cpp.

Blogger1::Blogger1 ( const KUrl &  server,
Blogger1Private &  dd,
QObject *  parent = 0 
) [protected]

Constructor needed for private inheritance.

Definition at line 47 of file blogger1.cpp.


Member Function Documentation

void Blogger1::createPost ( KBlog::BlogPost *  post) [virtual]

Create a new post on server.

Parameters:
postis sent to the server.
See also:
createdPost( KBlog::BlogPost *post )

Implements KBlog::Blog.

Reimplemented in KBlog::MovableType, and KBlog::WordpressBuggy.

Definition at line 148 of file blogger1.cpp.

void KBlog::Blogger1::fetchedUserInfo ( const QMap< QString, QString > &  userInfo) [signal]

This signal is emitted when a fetchUserInfo() job fetches the blog information from the blogging server.

Parameters:
userInfoThe map with the keys: nickname, userid, url, email, lastname, firstname. Note: Not all keys are supported by all servers.
See also:
fetchUserInfo()
void Blogger1::fetchPost ( KBlog::BlogPost *  post) [virtual]

Fetch a post from the server.

Parameters:
postis the post. Note: Its id has to be set appropriately.
See also:
BlogPost::setPostId( const QString& )
fetchedPost( KBlog::BlogPost *post )

Implements KBlog::Blog.

Reimplemented in KBlog::MovableType.

Definition at line 108 of file blogger1.cpp.

void Blogger1::fetchUserInfo ( ) [virtual]

Get information about the user from the blog.

Note: This is not supported on the server side.

See also:
void fetchedUserInfo( const QMap<QString,QString>& )

Definition at line 73 of file blogger1.cpp.

QString Blogger1::interfaceName ( ) const [virtual]

Returns the of the inherited object.

Implements KBlog::Blog.

Reimplemented in KBlog::WordpressBuggy, KBlog::MetaWeblog, and KBlog::MovableType.

Definition at line 59 of file blogger1.cpp.

void Blogger1::listBlogs ( ) [virtual]

List the blogs available for this authentication on the server.

See also:
void listedBlogs( const QList<QMap<QString,QString> >& )

Definition at line 84 of file blogger1.cpp.

void KBlog::Blogger1::listedBlogs ( const QList< QMap< QString, QString > > &  blogsList) [signal]

This signal is emitted when a listBlogs() job fetches the blog information from the blogging server.

Parameters:
blogsListThe list of maps, in which each maps corresponds to a blog on the server. Each map has the keys id and name.
See also:
listBlogs()
void Blogger1::listRecentPosts ( int  number) [virtual]

List recent posts on the server.

The status of the posts will be Fetched.

Parameters:
numberThe number of posts to fetch. Latest first.
See also:
void listedRecentPosts( QList<KBlog::BlogPost> & )
void fetchPost( KBlog::BlogPost *post )
BlogPost::Status

Implements KBlog::Blog.

Reimplemented in KBlog::MovableType.

Definition at line 95 of file blogger1.cpp.

void Blogger1::modifyPost ( KBlog::BlogPost *  post) [virtual]

Modify a post on server.

Parameters:
postis used to send the modified post including the correct postId from it to the server.
See also:
void modifiedPost( KBlog::BlogPost *post )

Implements KBlog::Blog.

Reimplemented in KBlog::MovableType, and KBlog::WordpressBuggy.

Definition at line 127 of file blogger1.cpp.

void Blogger1::removePost ( KBlog::BlogPost *  post) [virtual]

Remove a post from the server.

Parameters:
postis the post. Note: Its id has to be set appropriately.
See also:
BlogPost::setPostId( const QString& )
removedPost( KBlog::BlogPost *post )

Implements KBlog::Blog.

Definition at line 169 of file blogger1.cpp.

void Blogger1::setUrl ( const KUrl &  server) [virtual]

Set the Url of the server.

Parameters:
serveris the server Url.

Reimplemented from KBlog::Blog.

Definition at line 64 of file blogger1.cpp.


The documentation for this class was generated from the following files:
  • blogger1.h
  • blogger1.cpp

KBlog Client Library

Skip menu "KBlog Client Library"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal