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

KBlog Client Library

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

#include <movabletype.h>

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

List of all members.

Signals

void listedTrackBackPings (KBlog::BlogPost *post, const QList< QMap< QString, QString > > &pings)

Public Member Functions

 MovableType (const KUrl &server, QObject *parent=0)
virtual ~MovableType ()
void createPost (KBlog::BlogPost *post)
void fetchPost (KBlog::BlogPost *post)
QString interfaceName () const
void listRecentPosts (int number)
virtual void listTrackBackPings (KBlog::BlogPost *post)
void modifyPost (KBlog::BlogPost *post)

Protected Member Functions

 MovableType (const KUrl &server, MovableTypePrivate &dd, QObject *parent=0)

Detailed Description

A class that can be used for access to Movable Type blogs.

Almost every blog server supports Movable Type.

  Blog* myblog = new MovableType("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_weilbach@web.de>
Mike McQuaid <mike@mikemcquaid.com>

Constructor & Destructor Documentation

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

Create an object for Movable Type.

Parameters:
serveris the url for the xmlrpc gateway.
parentis the parent object.

Definition at line 39 of file movabletype.cpp.

MovableType::~MovableType ( ) [virtual]

Destroy the object.

Definition at line 52 of file movabletype.cpp.

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

Constructor needed for private inheritance.

Definition at line 45 of file movabletype.cpp.


Member Function Documentation

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

Create a new post on server.

Parameters:
postis sent to the server.
See also:
createdPost( KBlog::BlogPost *post )

Reimplemented from KBlog::Blogger1.

Reimplemented in KBlog::WordpressBuggy.

Definition at line 111 of file movabletype.cpp.

void MovableType::fetchPost ( KBlog::BlogPost *  post) [virtual]

Fetch a post from the server.

Parameters:
postis the post. Note: Its id has to be set appropriately.
See also:
BlogPost::setPostId( const QString& )
fetchedPost( KBlog::BlogPost *post )

Reimplemented from KBlog::Blogger1.

Definition at line 90 of file movabletype.cpp.

QString MovableType::interfaceName ( ) const [virtual]

Returns the of the inherited object.

Reimplemented from KBlog::MetaWeblog.

Reimplemented in KBlog::WordpressBuggy.

Definition at line 57 of file movabletype.cpp.

void KBlog::MovableType::listedTrackBackPings ( KBlog::BlogPost *  post,
const QList< QMap< QString, QString > > &  pings 
) [signal]

This signal is emitted when the trackback pings are fetched completely.

Parameters:
postThis is the post of the trackback ping list.
pingsThis is the list itself. The map contains the keys: id, url, ip.
See also:
listTrackBackPings()
void MovableType::listRecentPosts ( int  number) [virtual]

List recent posts on the server.

The status of the posts will be Fetched.

Parameters:
numberThe number of posts to fetch. Latest first.
See also:
void listedRecentPosts( const QList<KBlog::BlogPost>& )
BlogPost::Status

Reimplemented from KBlog::Blogger1.

Definition at line 62 of file movabletype.cpp.

void MovableType::listTrackBackPings ( KBlog::BlogPost *  post) [virtual]

Get the list of trackback pings from the server.

Parameters:
postThis is the post to get the trackback pings from. You need to set its id correctly.
See also:
BlogPost::setPostId( const QString& )
listedTrackBackPings( KBlog::BlogPost *, const QList<QMap<QString,QString> >& )

Definition at line 75 of file movabletype.cpp.

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

Modify a post on server.

Parameters:
postis used to send the modified post including the correct postId from it to the server.
See also:
void modifiedPost( KBlog::BlogPost *post )

Reimplemented from KBlog::Blogger1.

Reimplemented in KBlog::WordpressBuggy.

Definition at line 146 of file movabletype.cpp.


The documentation for this class was generated from the following files:
  • movabletype.h
  • movabletype.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:07:43 by doxygen 1.7.5 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.5 API Reference

Skip menu "kdepimlibs-4.8.5 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