KBlog Client Library
KBlog::Blogger1 Class Reference
#include <blogger1.h>

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 );
Definition at line 65 of file blogger1.h.
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) | |
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) |
virtual | ~Blogger1 () |
Protected Member Functions | |
Blogger1 (const KUrl &server, Blogger1Private &dd, QObject *parent=0) |
Constructor & Destructor Documentation
Blogger1::Blogger1 | ( | const KUrl & | server, | |
QObject * | parent = 0 | |||
) | [explicit] |
Create an object for Blogger 1.0.
- Parameters:
-
server is the url for the xmlrpc gateway. parent the parent object.
Definition at line 40 of file blogger1.cpp.
Blogger1::~Blogger1 | ( | ) | [virtual] |
Blogger1::Blogger1 | ( | const KUrl & | server, | |
Blogger1Private & | dd, | |||
QObject * | parent = 0 | |||
) | [protected] |
Member Function Documentation
void Blogger1::createPost | ( | KBlog::BlogPost * | post | ) | [virtual] |
Create a new post on server.
- Parameters:
-
post is sent to the server.
- See also:
- createdPost( KBlog::BlogPost *post )
Implements KBlog::Blog.
Reimplemented in KBlog::WordpressBuggy.
Definition at line 148 of file blogger1.cpp.
This signal is emitted when a fetchUserInfo() job fetches the blog information from the blogging server.
- Parameters:
-
userInfo The 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:
-
post is the post. Note: Its id has to be set appropriately.
Implements KBlog::Blog.
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::MetaWeblog, KBlog::MovableType, and KBlog::WordpressBuggy.
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.
This signal is emitted when a listBlogs() job fetches the blog information from the blogging server.
- Parameters:
-
blogsList The 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:
-
number The number of posts to fetch. Latest first.
- See also:
- void listedRecentPosts( QList<KBlog::BlogPost> & )
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:
-
post is 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::WordpressBuggy.
Definition at line 127 of file blogger1.cpp.
void Blogger1::removePost | ( | KBlog::BlogPost * | post | ) | [virtual] |
Remove a post from the server.
- Parameters:
-
post is the post. Note: Its id has to be set appropriately.
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:
-
server is 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: