• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KBlog Client Library

blogcomment.cpp

00001 /*
00002   This file is part of the kblog library.
00003 
00004   Copyright (c) 2006-2007 Christian Weilbach <christian_weilbach@web.de>
00005   Copyright (c) 2007 Mike Arthur <mike@mikearthur.co.uk>
00006 
00007   This library is free software; you can redistribute it and/or
00008   modify it under the terms of the GNU Library General Public
00009   License as published by the Free Software Foundation; either
00010   version 2 of the License, or (at your option) any later version.
00011 
00012   This library is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015   Library General Public License for more details.
00016 
00017   You should have received a copy of the GNU Library General Public License
00018   along with this library; see the file COPYING.LIB.  If not, write to
00019   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020   Boston, MA 02110-1301, USA.
00021 */
00022 
00023 #include "blogcomment.h"
00024 #include "blogcomment_p.h"
00025 
00026 #include <KDateTime>
00027 #include <KUrl>
00028 
00029 #include <QStringList>
00030 
00031 namespace KBlog {
00032 
00033 BlogComment::BlogComment( const BlogComment &c )
00034   : d_ptr( new BlogCommentPrivate )
00035 {
00036   d_ptr->q_ptr = this;
00037   d_ptr->mTitle = c.title();
00038   d_ptr->mContent = c.content();
00039   d_ptr->mEmail = c.email();
00040   d_ptr->mName = c.name();
00041   d_ptr->mCommentId = c.commentId();
00042   d_ptr->mUrl = c.url();
00043   d_ptr->mError = c.error();
00044   d_ptr->mStatus = c.status();
00045   d_ptr->mModificationDateTime = c.modificationDateTime();
00046   d_ptr->mCreationDateTime = c.creationDateTime();
00047 }
00048 
00049 BlogComment::BlogComment( const QString &commentId )
00050   : d_ptr( new BlogCommentPrivate )
00051 {
00052   d_ptr->q_ptr = this;
00053   d_ptr->mStatus = New;
00054   d_ptr->mCommentId = commentId;
00055 }
00056 
00057 BlogComment::~BlogComment()
00058 {
00059   delete d_ptr;
00060 }
00061 
00062 QString BlogComment::title() const
00063 {
00064   return d_ptr->mTitle;
00065 }
00066 
00067 void BlogComment::setTitle( const QString &title )
00068 {
00069   d_ptr->mTitle = title;
00070 }
00071 
00072 QString BlogComment::content() const
00073 {
00074   return d_ptr->mContent;
00075 }
00076 
00077 void BlogComment::setContent( const QString &content )
00078 {
00079   d_ptr->mContent = content;
00080 }
00081 
00082 QString BlogComment::commentId() const
00083 {
00084   return d_ptr->mCommentId;
00085 }
00086 
00087 void BlogComment::setCommentId( const QString &commentId )
00088 {
00089   d_ptr->mCommentId = commentId;
00090 }
00091 
00092 QString BlogComment::email() const
00093 {
00094   return d_ptr->mEmail;
00095 }
00096 
00097 void BlogComment::setEmail( const QString &email )
00098 {
00099   d_ptr->mEmail = email;
00100 }
00101 
00102 QString BlogComment::name() const
00103 {
00104   return d_ptr->mName;
00105 }
00106 
00107 void BlogComment::setName( const QString &name )
00108 {
00109   d_ptr->mName = name;
00110 }
00111 KUrl BlogComment::url() const
00112 {
00113   return d_ptr->mUrl;
00114 }
00115 
00116 void BlogComment::setUrl( const KUrl &url )
00117 {
00118   d_ptr->mUrl = url;
00119 }
00120 
00121 KDateTime BlogComment::modificationDateTime() const
00122 {
00123   return d_ptr->mModificationDateTime;
00124 }
00125 
00126 void BlogComment::setModificationDateTime( const KDateTime &datetime )
00127 {
00128   d_ptr->mModificationDateTime=datetime;
00129 }
00130 
00131 KDateTime BlogComment::creationDateTime() const
00132 {
00133   return d_ptr->mCreationDateTime;
00134 }
00135 
00136 void BlogComment::setCreationDateTime( const KDateTime &datetime )
00137 {
00138   d_ptr->mCreationDateTime= datetime;
00139 }
00140 
00141 BlogComment::Status BlogComment::status() const
00142 {
00143   return d_ptr->mStatus;
00144 }
00145 
00146 void BlogComment::setStatus( BlogComment::Status status )
00147 {
00148   d_ptr->mStatus = status;
00149 }
00150 
00151 QString BlogComment::error() const
00152 {
00153   return d_ptr->mError;
00154 }
00155 
00156 void BlogComment::setError( const QString &error )
00157 {
00158   d_ptr->mError = error;
00159 }
00160 
00161 BlogComment &BlogComment::operator=( const BlogComment &c )
00162 {
00163   BlogComment copy( c );
00164   swap( copy );
00165   return *this;
00166 }
00167 
00168 } // namespace KBlog

KBlog Client Library

Skip menu "KBlog Client Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.7.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal