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

KBlog Client Library

  • sources
  • kde-4.12
  • kdepimlibs
  • kblog
blogcomment.h
1 /*
2  This file is part of the kblog library.
3 
4  Copyright (c) 2006-2007 Christian Weilbach <christian_weilbach@web.de>
5  Copyright (c) 2007 Mike McQuaid <mike@mikemcquaid.com>
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
22 
23 #ifndef KBLOG_BLOGCOMMENT_H
24 #define KBLOG_BLOGCOMMENT_H
25 
26 #include <kblog/kblog_export.h>
27 
28 #include <QtCore/QString>
29 #include <QtCore/QtAlgorithms>
30 
31 class KDateTime;
32 class KUrl;
33 
34 namespace KBlog {
35 
36  class BlogCommentPrivate;
50 class KBLOG_EXPORT BlogComment
51 {
52  public:
57  BlogComment( const BlogComment &comment );
58 
63  explicit BlogComment( const QString &commentId = QString() );
64 
68  virtual ~BlogComment();
69 
76  QString title() const;
77 
84  void setTitle( const QString &title );
85 
92  QString content() const;
93 
100  void setContent( const QString &content );
101 
108  QString commentId() const;
109 
116  void setCommentId( const QString &id );
117 
124  QString email() const;
125 
132  void setEmail( const QString &email );
133 
140  QString name() const;
141 
148  void setName( const QString &name );
149 
156  KUrl url() const;
157 
164  void setUrl( const KUrl &url );
165 
172  KDateTime modificationDateTime() const;
173 
180  void setModificationDateTime( const KDateTime &datetime );
181 
188  KDateTime creationDateTime() const;
189 
196  void setCreationDateTime( const KDateTime &datetime );
197 
202  enum Status {
204  New,
206  Fetched,
209  Created,
212  Removed,
215  Error
216  };
217 
224  Status status() const;
225 
232  void setStatus( Status status );
233 
240  QString error() const;
241 
248  void setError( const QString &error );
249 
253  BlogComment &operator=( const BlogComment &comment );
254 
258  void swap( BlogComment &other ) {
259  qSwap( this->d_ptr, other.d_ptr );
260  }
261 
262  private:
263  BlogCommentPrivate *d_ptr; //krazy:exclude=dpointer can't constify due to bic and swap being declared inline
264 };
265 
266 } //namespace KBlog
267 
268 #endif
KBlog::BlogComment::swap
void swap(BlogComment &other)
The swap operator.
Definition: blogcomment.h:258
KBlog::BlogComment
A class that represents a blog comment on the blog post.
Definition: blogcomment.h:50
KBlog::BlogComment::Fetched
Status of a successfully fetched comment.
Definition: blogcomment.h:206
KBlog::BlogComment::Status
Status
The enumartion of the different post status, reflecting the status changes on the server...
Definition: blogcomment.h:202
KBlog::BlogComment::Created
Status of a successfully created comment.
Definition: blogcomment.h:209
KBlog::BlogComment::Removed
Status of a successfully removed comment.
Definition: blogcomment.h:212
KBlog::BlogComment::New
Status of a freshly constructed comment on the client.
Definition: blogcomment.h:204
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:59:55 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