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

KBlog Client Library

  • KBlog
  • BlogComment
Public Types | Public Member Functions | List of all members
KBlog::BlogComment Class Reference

#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.

KBlog::BlogComment *comment = new BlogComment();
comment->setTitle( "This is the title." );
comment->setContent( "Here is some the content..." );
Author
Mike McQuaid <mike@mikemcquaid.com>

Definition at line 50 of file blogcomment.h.

Member Enumeration Documentation

enum KBlog::BlogComment::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.

See also
GData::createComment( BlogPost*, BlogComment* )
Removed 

Status of a successfully removed comment.

See also
GData::removeComment( BlogPost*, BlogComment* )
Error 

Status when an error has occurred on the server side.

See also
error()

Definition at line 202 of file blogcomment.h.

Constructor & Destructor Documentation

KBlog::BlogComment::BlogComment ( const BlogComment &  comment)

Copy Constructor for list handling.

Parameters
commentThe comment to copy.

Definition at line 33 of file blogcomment.cpp.

KBlog::BlogComment::BlogComment ( const QString &  commentId = QString())
explicit

Constructor.

Parameters
commentIdThe ID of the comment on the server.

Definition at line 49 of file blogcomment.cpp.

KBlog::BlogComment::~BlogComment ( )
virtual

Virtual default destructor.

Definition at line 57 of file blogcomment.cpp.

Member Function Documentation

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.

QString KBlog::BlogComment::content ( ) const

Returns the content.

Returns
The content.
See also
setContent( const QString& )

Definition at line 72 of file blogcomment.cpp.

KDateTime KBlog::BlogComment::creationDateTime ( ) const

Returns the creation date-time.

Returns
The creation date-time.
See also
setCreationDateTime( const KDateTime& )

Definition at line 131 of file blogcomment.cpp.

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.

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.

KDateTime KBlog::BlogComment::modificationDateTime ( ) const

Returns the modification date-time.

Returns
The modification date-time.
See also
setModificationDateTime( const KDateTime& )

Definition at line 121 of file blogcomment.cpp.

QString KBlog::BlogComment::name ( ) const

Returns the commentator's name.

Returns
The name.
See also
setName()

Definition at line 102 of file blogcomment.cpp.

BlogComment & KBlog::BlogComment::operator= ( const BlogComment &  comment)

Overloaded for QList handling.

Definition at line 161 of file blogcomment.cpp.

void KBlog::BlogComment::setCommentId ( const QString &  id)

Sets the comment's id.

Parameters
idThe comment's id.
See also
commentId()

Definition at line 87 of file blogcomment.cpp.

void KBlog::BlogComment::setContent ( const QString &  content)

Sets the content.

Parameters
contentThis is the content.
See also
content()

Definition at line 77 of file blogcomment.cpp.

void KBlog::BlogComment::setCreationDateTime ( const KDateTime &  datetime)

Sets the creation date-time.

Parameters
datetimeThe date-time the comment has been created.
See also
creationDateTime()

Definition at line 136 of file blogcomment.cpp.

void KBlog::BlogComment::setEmail ( const QString &  email)

Sets the E-Mail.

Parameters
emailThis is the E-Mail address of the commentator.
See also
email()

Definition at line 97 of file blogcomment.cpp.

void KBlog::BlogComment::setError ( const QString &  error)

Sets the error.

Parameters
errorThe error string.
See also
error(), Error

Definition at line 156 of file blogcomment.cpp.

void KBlog::BlogComment::setModificationDateTime ( const KDateTime &  datetime)

Sets the modification date-time.

Parameters
datetimeThe date-time the comment has been modified.
See also
modificationDateTime( const KDateTime& )

Definition at line 126 of file blogcomment.cpp.

void KBlog::BlogComment::setName ( const QString &  name)

Sets the name of the commentator.

Parameters
nameThis is the commenator's name.
See also
name()

Definition at line 107 of file blogcomment.cpp.

void KBlog::BlogComment::setStatus ( BlogComment::Status  status)

Sets the status.

Parameters
statusThe status on the server.
See also
status(), Status

Definition at line 146 of file blogcomment.cpp.

void KBlog::BlogComment::setTitle ( const QString &  title)

Sets the title.

Parameters
titleThis is the title.
See also
title()

Definition at line 67 of file blogcomment.cpp.

void KBlog::BlogComment::setUrl ( const KUrl &  url)

Sets the commentator's homepage URL.

Parameters
urlThe commentator's homepage url.
See also
url()

Definition at line 116 of file blogcomment.cpp.

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.

void KBlog::BlogComment::swap ( BlogComment &  other)
inline

The swap operator.

Definition at line 258 of file blogcomment.h.

QString KBlog::BlogComment::title ( ) const

Returns the title.

Returns
The title.
See also
setTitle( const QString& )

Definition at line 62 of file blogcomment.cpp.

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:
  • blogcomment.h
  • blogcomment.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:59:56 by doxygen 1.8.7 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 API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



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