KBlog Client Library
23#ifndef KBLOG_BLOGPOSTING_H
24#define KBLOG_BLOGPOSTING_H
26#include <kblog/kblog_export.h>
30#include <QtCore/QtAlgorithms>
43 class BlogPostPrivate;
82 explicit BlogPost(
const QString &postId = QString() );
87 explicit BlogPost(
const KCal::Journal &journal );
99 KCal::Journal *journal(
const Blog &blog )
const;
105 QString journalId()
const;
113 bool isPrivate()
const;
122 void setPrivate(
bool privatePost );
130 QString postId()
const;
138 void setPostId(
const QString &postId );
146 QString title()
const;
154 void setTitle(
const QString &title );
162 QString content()
const;
170 void setContent(
const QString &content );
181 QString additionalContent()
const;
189 void setAdditionalContent(
const QString &additionalContent );
198 QString slug()
const;
207 void setSlug(
const QString &slug );
222 void setLink(
const KUrl &link )
const;
230 KUrl permaLink()
const;
238 void setPermaLink(
const KUrl &permalink )
const;
246 bool isCommentAllowed()
const;
254 void setCommentAllowed(
bool commentAllowed );
262 bool isTrackBackAllowed()
const;
270 void setTrackBackAllowed (
bool allowTrackBacks );
278 QString summary()
const;
286 void setSummary(
const QString &summary );
294 QStringList tags()
const;
302 void setTags(
const QStringList &tags );
313 QString mood()
const;
321 void setMood(
const QString &mood );
329 QString music()
const;
337 void setMusic(
const QString &music );
345 QStringList categories()
const;
354 void setCategories(
const QStringList &categories );
362 KDateTime creationDateTime()
const;
371 void setCreationDateTime(
const KDateTime &datetime );
379 KDateTime modificationDateTime()
const;
387 void setModificationDateTime(
const KDateTime &datetime );
419 Status status()
const;
427 void setStatus( Status status );
435 QString error()
const;
443 void setError(
const QString &error );
454 qSwap( this->d_ptr, other.d_ptr );
458 BlogPostPrivate *d_ptr;
A class that represents a blog post on the server.
void swap(BlogPost &other)
The swap operator.
Status
The enumartion of the different post status, reflecting the status changes on the server.
@ Created
Status of a successfully created post.
@ Fetched
Status of a successfully fetched post.
@ New
Status of a freshly constructed post on the client.
@ Removed
Status of a successfully removed post.
@ Modified
Status of a successfully modified post.
A class that provides methods to call functions on a supported blog web application.
Namespace for blog related classes.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.