• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KBlog Client Library

KBlog::MetaWeblog

KBlog::MetaWeblog Class Reference

A class that can be used for access to MetaWeblog blogs. More...

#include <metaweblog.h>

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

List of all members.

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 ()
virtual void createMedia (KBlog::BlogMedia *media)
QString interfaceName () const
virtual void listCategories ()

Protected Member Functions

 MetaWeblog (const KUrl &server, MetaWeblogPrivate &dd, QObject *parent=0)

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" );
  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@whiletaker.homeip.net>
Reinhold Kainhofer <reinhold@kainhofer.com>

Definition at line 65 of file metaweblog.h.


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 40 of file metaweblog.cpp.

MetaWeblog::~MetaWeblog (  )  [virtual]

Destroy the object.

Definition at line 52 of file metaweblog.cpp.

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

Constructor needed for private inheritance.

Definition at line 46 of file metaweblog.cpp.


Member Function Documentation

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.
See also:
createMedia( KBlog::BlogMedia *media )
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 73 of file metaweblog.cpp.

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 57 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 62 of file metaweblog.cpp.

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:
  • metaweblog.h
  • metaweblog.cpp

KBlog Client Library

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.1
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