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

KBlog Client Library

KBlog::WordpressBuggy

KBlog::WordpressBuggy Class Reference

#include <wordpressbuggy.h>

Inheritance diagram for KBlog::WordpressBuggy:

Inheritance graph
[legend]

List of all members.


Detailed Description

A class that can be used for access to blogs (Wordpress < 2.4, Drupal <= 5.5 and most likely many more) which simply use the yyyyMMddThh:mm:ss dateTime.iso8601 format stated on http://www.xmlrpc.com.

This is only an example for an ISO-8601 compatible format, but many blogs seem to assume exactly this format. This class is needed because KXmlRpc::Client only has support for the extended format yyyy-MM-ddThh:mm:ss which is also standard conform and makes more sense than the mixture above. This class reimplements createPost and modifyPost from scratch to send the dateTime in a compatible format (yyyyMMddThh:mm:ss).

The rest of the code is inherited from MovableType, as it does not use the dateTime format. The name is because this problem was first discovered with Wordpress.

  Blog* myblog = new WordpressBuggy("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 );

Author:
Christian Weilbach <christian_weilbach@web.de>

Definition at line 67 of file wordpressbuggy.h.


Public Member Functions

 WordpressBuggy (const KUrl &server, QObject *parent=0)
virtual ~WordpressBuggy ()
void createPost (KBlog::BlogPost *post)
void modifyPost (KBlog::BlogPost *post)
QString interfaceName () const

Protected Member Functions

 WordpressBuggy (const KUrl &server, WordpressBuggyPrivate &dd, QObject *parent=0)

Constructor & Destructor Documentation

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

Create an object for WordpressBuggy.

Parameters:
server is the url for the xmlrpc gateway.
parent is the parent object.

Definition at line 38 of file wordpressbuggy.cpp.

WordpressBuggy::~WordpressBuggy (  )  [virtual]

Destroy the object.

Definition at line 51 of file wordpressbuggy.cpp.

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

Constructor needed for private inheritance.

Definition at line 44 of file wordpressbuggy.cpp.


Member Function Documentation

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

Create a new post on server.

Parameters:
post is send to the server.

Reimplemented from KBlog::Blogger1.

Definition at line 56 of file wordpressbuggy.cpp.

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

Modify a post on server.

Parameters:
post The post to be modified on the server. You need to set its id correctly.
See also:
BlogPost::setPostId( const QString& )

modifiedPost( KBlog::BlogPost* )

Reimplemented from KBlog::Blogger1.

Definition at line 146 of file wordpressbuggy.cpp.

QString WordpressBuggy::interfaceName (  )  const [virtual]

Returns the of the inherited object.

Reimplemented from KBlog::MovableType.

Definition at line 242 of file wordpressbuggy.cpp.


The documentation for this class was generated from the following files:
  • wordpressbuggy.h
  • wordpressbuggy.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"
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.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