KBlog Client Library
blog.h
Go to the documentation of this file.
A class that represents a blog comment on the blog post.
Definition blogcomment.h:51
virtual QString interfaceName() const =0
Returns the name of the blogging API this object implements.
virtual void setUsername(const QString &username)
Sets the username used in blog authentication.
Definition blog.cpp:97
Blog(const KUrl &server, QObject *parent=0, const QString &applicationName=QString(), const QString &applicationVersion=QString())
Constructor used by the remote interface implementations.
Definition blog.cpp:34
@ NotSupported
An error where the method called is not supported by this object.
Definition blog.h:107
virtual void setPassword(const QString &password)
Sets the password used in blog authentication.
Definition blog.cpp:79
virtual void modifyPost(KBlog::BlogPost *post)=0
Modify an existing blog post on the server.
void createdPost(KBlog::BlogPost *post)
This signal is emitted when a createPost() job creates a new blog post on the blogging server.
void removedPost(KBlog::BlogPost *post)
This signal is emitted when a removePost() job removes a post from the blogging server.
virtual void setUrl(const KUrl &url)
Sets the URL for the blog's XML-RPC interface.
Definition blog.cpp:115
virtual void listRecentPosts(int number)=0
List a number of recent posts from the server.
void errorMedia(KBlog::Blog::ErrorType type, const QString &errorMessage, KBlog::BlogMedia *media)
This signal is emitted when an error occurs with XML parsing or a structural problem in an operation ...
virtual void fetchPost(KBlog::BlogPost *post)=0
Fetch a blog post from the server with a specific ID.
void errorPost(KBlog::Blog::ErrorType type, const QString &errorMessage, KBlog::BlogPost *post)
This signal is emitted when an error occurs with XML parsing or a structural problem in an operation ...
virtual void removePost(KBlog::BlogPost *post)=0
Remove an existing blog post from the server.
QString blogId() const
Returns the unique ID for the specific blog on the server.
Definition blog.cpp:109
virtual void createPost(KBlog::BlogPost *post)=0
Create a new blog post on the server.
void fetchedPost(KBlog::BlogPost *post)
This signal is emitted when a fetchPost() job fetches a post from the blogging server.
void errorComment(KBlog::Blog::ErrorType type, const QString &errorMessage, KBlog::BlogPost *post, KBlog::BlogComment *comment)
This signal is emitted when an error occurs with XML parsing or a structural problem in an operation ...
void error(KBlog::Blog::ErrorType type, const QString &errorMessage)
This signal is emitted when an error occurs with XML parsing or a structural problem.
virtual void setBlogId(const QString &blogId)
Sets the unique ID for the specific blog on the server.
Definition blog.cpp:103
virtual void setTimeZone(const KTimeZone &timeZone)
Sets the time zone of the blog's server.
Definition blog.cpp:127
void listedRecentPosts(const QList< KBlog::BlogPost > &posts)
This signal is emitted when a listRecentPosts() job fetches a post from the blogging server.
void modifiedPost(KBlog::BlogPost *post)
This signal is emitted when a modifyPost() job modifies a post on the blogging server.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.