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

KBlog Client Library

  • KBlog
  • MetaWeblog
Signals | Public Member Functions | Protected Member Functions | List of all members
KBlog::MetaWeblog Class Reference

#include <metaweblog.h>

Inheritance diagram for KBlog::MetaWeblog:
KBlog::Blogger1 KBlog::Blog KBlog::MovableType KBlog::WordpressBuggy

Signals

void createdMedia (KBlog::BlogMedia *media)
 
void listedCategories (const QList< QMap< QString, QString > > &categories)
 
- Signals inherited from KBlog::Blogger1
void fetchedUserInfo (const QMap< QString, QString > &userInfo)
 
void listedBlogs (const QList< QMap< QString, QString > > &blogsList)
 
- Signals inherited from KBlog::Blog
void createdPost (KBlog::BlogPost *post)
 
void error (KBlog::Blog::ErrorType type, const QString &errorMessage)
 
void errorComment (KBlog::Blog::ErrorType type, const QString &errorMessage, KBlog::BlogPost *post, KBlog::BlogComment *comment)
 
void errorMedia (KBlog::Blog::ErrorType type, const QString &errorMessage, KBlog::BlogMedia *media)
 
void errorPost (KBlog::Blog::ErrorType type, const QString &errorMessage, KBlog::BlogPost *post)
 
void fetchedPost (KBlog::BlogPost *post)
 
void listedRecentPosts (const QList< KBlog::BlogPost > &posts)
 
void modifiedPost (KBlog::BlogPost *post)
 
void removedPost (KBlog::BlogPost *post)
 

Public Member Functions

 MetaWeblog (const KUrl &server, QObject *parent=0)
 
virtual ~MetaWeblog ()
 
virtual void createMedia (KBlog::BlogMedia *media)
 
QString interfaceName () const
 
virtual void listCategories ()
 
- Public Member Functions inherited from KBlog::Blogger1
 Blogger1 (const KUrl &server, QObject *parent=0)
 
virtual ~Blogger1 ()
 
void createPost (KBlog::BlogPost *post)
 
void fetchPost (KBlog::BlogPost *post)
 
virtual void fetchUserInfo ()
 
QString interfaceName () const
 
virtual void listBlogs ()
 
void listRecentPosts (int number)
 
void modifyPost (KBlog::BlogPost *post)
 
void removePost (KBlog::BlogPost *post)
 
void setUrl (const KUrl &server)
 
- Public Member Functions inherited from KBlog::Blog
 Blog (const KUrl &server, QObject *parent=0, const QString &applicationName=QString(), const QString &applicationVersion=QString())
 
virtual ~Blog ()
 
QString blogId () const
 
virtual void createPost (KBlog::BlogPost *post)=0
 
virtual void fetchPost (KBlog::BlogPost *post)=0
 
virtual QString interfaceName () const =0
 
virtual void listRecentPosts (int number)=0
 
virtual void modifyPost (KBlog::BlogPost *post)=0
 
QString password () const
 
virtual void removePost (KBlog::BlogPost *post)=0
 
virtual void setBlogId (const QString &blogId)
 
virtual void setPassword (const QString &password)
 
virtual void setTimeZone (const KTimeZone &timeZone)
 
virtual void setUrl (const KUrl &url)
 
void setUserAgent (const QString &applicationName, const QString &applicationVersion)
 
virtual void setUsername (const QString &username)
 
KTimeZone timeZone ()
 
KUrl url () const
 
QString userAgent () const
 
QString username () const
 

Protected Member Functions

 MetaWeblog (const KUrl &server, MetaWeblogPrivate &dd, QObject *parent=0)
 
- Protected Member Functions inherited from KBlog::Blogger1
 Blogger1 (const KUrl &server, Blogger1Private &dd, QObject *parent=0)
 
- Protected Member Functions inherited from KBlog::Blog
 Blog (const KUrl &server, BlogPrivate &dd, QObject *parent=0, const QString &applicationName=QString(), const QString &applicationVersion=QString())
 

Additional Inherited Members

- Public Types inherited from KBlog::Blog
enum  ErrorType {
  XmlRpc , Atom , ParsingError , AuthenticationError ,
  NotSupported , Other
}
 
- Protected Attributes inherited from KBlog::Blog
BlogPrivate *const d_ptr
 

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 );
KBlog::BlogPost
A class that represents a blog post on the server.
Definition: blogpost.h:69
KBlog::BlogPost::setContent
void setContent(const QString &content)
Sets the content.
Definition: blogpost.cpp:169
KBlog::BlogPost::setTitle
void setTitle(const QString &title)
Sets the title.
Definition: blogpost.cpp:159
KBlog::Blog
A class that provides methods to call functions on a supported blog web application.
Definition: blog.h:72
KBlog::Blog::setUsername
virtual void setUsername(const QString &username)
Sets the username used in blog authentication.
Definition: blog.cpp:97
KBlog::Blog::setPassword
virtual void setPassword(const QString &password)
Sets the password used in blog authentication.
Definition: blog.cpp:79
KBlog::Blog::createPost
virtual void createPost(KBlog::BlogPost *post)=0
Create a new blog post on the server.
KBlog::Blog::setBlogId
virtual void setBlogId(const QString &blogId)
Sets the unique ID for the specific blog on the server.
Definition: blog.cpp:103
KBlog::MetaWeblog
A class that can be used for access to MetaWeblog blogs.
Definition: metaweblog.h:66
Author
Christian Weilbach <christian@whiletaker.homeip.net>
Reinhold Kainhofer <reinhold@kainhofer.com>

Definition at line 65 of file metaweblog.h.

Constructor & Destructor Documentation

◆ MetaWeblog() [1/2]

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::~MetaWeblog ( )
virtual

Destroy the object.

Definition at line 52 of file metaweblog.cpp.

◆ MetaWeblog() [2/2]

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

◆ createdMedia

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 )

◆ createMedia()

void MetaWeblog::createMedia ( KBlog::BlogMedia *  media)
virtual

Create a new media object, e.g.

picture, on server.

Parameters
mediaThe media to send.

Definition at line 73 of file metaweblog.cpp.

◆ interfaceName()

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.

◆ listCategories()

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.

◆ listedCategories

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-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.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.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • 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