• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.8.3 API Reference
  • KDE Home
  • Contact Us
 

KBlog Client Library

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

#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:
serveris the url for the xmlrpc gateway.
parentis 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:
mediaThe 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.

 @param 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::WordpressBuggy, and KBlog::MovableType.

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:
categoriesThis 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 22:16:53 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KBlog Client Library

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

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • 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
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