KBlog Client Library
KBlog::MetaWeblog Class Reference
#include <metaweblog.h>

Detailed Description
A class that can be used for access to MetaWeblog blogs.Almost every blog server supports MetaWeblog. Compared to Blogger 1.0 it is a superset of functions added to the its definition. MetaWeblog is much more functional, but has some drawbacks, e.g. security when compared to GData which is based on Atom API and is quite new.
Blog* myblog = new MetaWeblog("http://example.com/xmlrpc/gateway.php"); myblog->setUsername( "some_user_id" ); myblog->setPassword( "YouRFuNNYPasSwoRD" ); KBlog::BlogPost *post = new BlogPost(); post->setTitle( "This is the title." ); post->setContent( "Here is some the content..." ); myblog->createPost( post );
Definition at line 64 of file metaweblog.h.
Signals | |
void | createdMedia (KBlog::BlogMedia *media) |
void | listedCategories (const QList< QMap< QString, QString > > &categories) |
Public Member Functions | |
MetaWeblog (const KUrl &server, QObject *parent=0) | |
virtual | ~MetaWeblog () |
QString | interfaceName () const |
virtual void | listCategories () |
virtual void | createMedia (KBlog::BlogMedia *media) |
Protected Member Functions | |
MetaWeblog (const KUrl &server, MetaWeblogPrivate &dd, QObject *parent=0) |
Constructor & Destructor Documentation
MetaWeblog::MetaWeblog | ( | const KUrl & | server, | |
QObject * | parent = 0 | |||
) | [explicit] |
Create an object for MetaWeblog.
- Parameters:
-
server is the url for the xmlrpc gateway. parent is the parent object.
Definition at line 36 of file metaweblog.cpp.
MetaWeblog::~MetaWeblog | ( | ) | [virtual] |
MetaWeblog::MetaWeblog | ( | const KUrl & | server, | |
MetaWeblogPrivate & | dd, | |||
QObject * | parent = 0 | |||
) | [protected] |
Member Function Documentation
QString MetaWeblog::interfaceName | ( | ) | const [virtual] |
Returns the of the inherited object.
Reimplemented from KBlog::Blogger1.
Reimplemented in KBlog::MovableType, and KBlog::WordpressBuggy.
Definition at line 53 of file metaweblog.cpp.
void MetaWeblog::listCategories | ( | ) | [virtual] |
List the categories of the blog.
- See also:
- listedCategories( const QList<QMap<QString,QString> >& )
Definition at line 58 of file metaweblog.cpp.
void MetaWeblog::createMedia | ( | KBlog::BlogMedia * | media | ) | [virtual] |
Create a new media object, e.g.
picture, on server.
- Parameters:
-
media The media to send.
Definition at line 69 of file metaweblog.cpp.
void KBlog::MetaWeblog::createdMedia | ( | KBlog::BlogMedia * | media | ) | [signal] |
This signal is emitted when a media has been created on the server.
- Parameters:
-
media The created media.
void KBlog::MetaWeblog::listedCategories | ( | const QList< QMap< QString, QString > > & | categories | ) | [signal] |
This signal is emitted when the last category of the listCategories() job has been fetched.
- Parameters:
-
categories This list contains the categories. Each map has the keys: name, description, htmlUrl, rssUrl.
- See also:
- listCategories()
The documentation for this class was generated from the following files: