KBlog Client Library
#include <blogcomment.h>
Public Types | |
enum | Status { New , Fetched , Created , Removed , Error } |
Public Member Functions | |
BlogComment (const BlogComment &comment) | |
BlogComment (const QString &commentId=QString()) | |
virtual | ~BlogComment () |
QString | commentId () const |
QString | content () const |
KDateTime | creationDateTime () const |
QString | email () const |
QString | error () const |
KDateTime | modificationDateTime () const |
QString | name () const |
BlogComment & | operator= (const BlogComment &comment) |
void | setCommentId (const QString &id) |
void | setContent (const QString &content) |
void | setCreationDateTime (const KDateTime &datetime) |
void | setEmail (const QString &email) |
void | setError (const QString &error) |
void | setModificationDateTime (const KDateTime &datetime) |
void | setName (const QString &name) |
void | setStatus (Status status) |
void | setTitle (const QString &title) |
void | setUrl (const KUrl &url) |
Status | status () const |
void | swap (BlogComment &other) |
QString | title () const |
KUrl | url () const |
Detailed Description
A class that represents a blog comment on the blog post.
Definition at line 50 of file blogcomment.h.
Member Enumeration Documentation
◆ Status
The enumartion of the different post status, reflecting the status changes on the server.
Enumerator | |
---|---|
New | Status of a freshly constructed comment on the client. |
Fetched | Status of a successfully fetched comment. |
Created | Status of a successfully created comment. |
Removed | Status of a successfully removed comment. |
Error | Status when an error has occurred on the server side.
|
Definition at line 202 of file blogcomment.h.
Constructor & Destructor Documentation
◆ BlogComment() [1/2]
KBlog::BlogComment::BlogComment | ( | const BlogComment & | comment | ) |
Copy Constructor for list handling.
- Parameters
-
comment The comment to copy.
Definition at line 33 of file blogcomment.cpp.
◆ BlogComment() [2/2]
|
explicit |
Constructor.
- Parameters
-
commentId The ID of the comment on the server.
Definition at line 49 of file blogcomment.cpp.
◆ ~BlogComment()
|
virtual |
Virtual default destructor.
Definition at line 57 of file blogcomment.cpp.
Member Function Documentation
◆ commentId()
QString KBlog::BlogComment::commentId | ( | ) | const |
Returns the comment's id.
- Returns
- The comment's id
- See also
- setCommentId( const QString& )
Definition at line 82 of file blogcomment.cpp.
◆ content()
QString KBlog::BlogComment::content | ( | ) | const |
Returns the content.
- Returns
- The content.
- See also
- setContent( const QString& )
Definition at line 72 of file blogcomment.cpp.
◆ creationDateTime()
KDateTime KBlog::BlogComment::creationDateTime | ( | ) | const |
Returns the creation date-time.
- Returns
- The creation date-time.
Definition at line 131 of file blogcomment.cpp.
◆ email()
QString KBlog::BlogComment::email | ( | ) | const |
Returns the E-Mail address of the commentator.
- Returns
- The E-Mail.
- See also
- setEmail( const QString& )
Definition at line 92 of file blogcomment.cpp.
◆ error()
QString KBlog::BlogComment::error | ( | ) | const |
Returns the last error.
- Returns
- The last error string.
- See also
- setError( const QString& ), Error
Definition at line 151 of file blogcomment.cpp.
◆ modificationDateTime()
KDateTime KBlog::BlogComment::modificationDateTime | ( | ) | const |
Returns the modification date-time.
- Returns
- The modification date-time.
Definition at line 121 of file blogcomment.cpp.
◆ name()
QString KBlog::BlogComment::name | ( | ) | const |
Returns the commentator's name.
- Returns
- The name.
- See also
- setName()
Definition at line 102 of file blogcomment.cpp.
◆ operator=()
BlogComment & KBlog::BlogComment::operator= | ( | const BlogComment & | comment | ) |
Overloaded for QList handling.
Definition at line 161 of file blogcomment.cpp.
◆ setCommentId()
void KBlog::BlogComment::setCommentId | ( | const QString & | id | ) |
Sets the comment's id.
- Parameters
-
id The comment's id.
- See also
- commentId()
Definition at line 87 of file blogcomment.cpp.
◆ setContent()
void KBlog::BlogComment::setContent | ( | const QString & | content | ) |
Sets the content.
- Parameters
-
content This is the content.
- See also
- content()
Definition at line 77 of file blogcomment.cpp.
◆ setCreationDateTime()
void KBlog::BlogComment::setCreationDateTime | ( | const KDateTime & | datetime | ) |
Sets the creation date-time.
- Parameters
-
datetime The date-time the comment has been created.
- See also
- creationDateTime()
Definition at line 136 of file blogcomment.cpp.
◆ setEmail()
void KBlog::BlogComment::setEmail | ( | const QString & | ) |
Sets the E-Mail.
- Parameters
-
email This is the E-Mail address of the commentator.
- See also
- email()
Definition at line 97 of file blogcomment.cpp.
◆ setError()
void KBlog::BlogComment::setError | ( | const QString & | error | ) |
◆ setModificationDateTime()
void KBlog::BlogComment::setModificationDateTime | ( | const KDateTime & | datetime | ) |
Sets the modification date-time.
- Parameters
-
datetime The date-time the comment has been modified.
- See also
- modificationDateTime( const KDateTime& )
Definition at line 126 of file blogcomment.cpp.
◆ setName()
void KBlog::BlogComment::setName | ( | const QString & | name | ) |
Sets the name of the commentator.
- Parameters
-
name This is the commenator's name.
- See also
- name()
Definition at line 107 of file blogcomment.cpp.
◆ setStatus()
void KBlog::BlogComment::setStatus | ( | BlogComment::Status | status | ) |
Sets the status.
- Parameters
-
status The status on the server.
Definition at line 146 of file blogcomment.cpp.
◆ setTitle()
void KBlog::BlogComment::setTitle | ( | const QString & | title | ) |
Sets the title.
- Parameters
-
title This is the title.
- See also
- title()
Definition at line 67 of file blogcomment.cpp.
◆ setUrl()
void KBlog::BlogComment::setUrl | ( | const KUrl & | url | ) |
Sets the commentator's homepage URL.
- Parameters
-
url The commentator's homepage url.
- See also
- url()
Definition at line 116 of file blogcomment.cpp.
◆ status()
BlogComment::Status KBlog::BlogComment::status | ( | ) | const |
Returns the status on the server.
- Returns
- The status.
- See also
- setStatus( Status ), Status
Definition at line 141 of file blogcomment.cpp.
◆ swap()
|
inline |
The swap operator.
Definition at line 258 of file blogcomment.h.
◆ title()
QString KBlog::BlogComment::title | ( | ) | const |
Returns the title.
- Returns
- The title.
- See also
- setTitle( const QString& )
Definition at line 62 of file blogcomment.cpp.
◆ url()
KUrl KBlog::BlogComment::url | ( | ) | const |
Returns the commentator's homepage URL.
- Returns
- The url of the commentator's homepage
- See also
- setUrl( const KUrl& )
Definition at line 111 of file blogcomment.cpp.
The documentation for this class was generated from the following files:
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.