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

KBlog Client Library

  • kblog
gdata.h
Go to the documentation of this file.
1/*
2 This file is part of the kblog library.
3
4 Copyright (c) 2007 Christian Weilbach <christian_weilbach@web.de>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20*/
21
22#ifndef KBLOG_GDATA_H
23#define KBLOG_GDATA_H
24
25#include <kblog/blog.h>
26#include <kdatetime.h>
27
28#include <QtCore/QStringList>
29
30class KUrl;
31
43namespace KBlog {
44
45 class GDataPrivate;
46 class BlogComment;
47
70class KBLOG_EXPORT GData : public Blog
71{
72 Q_OBJECT
73 public:
79 explicit GData( const KUrl &server, QObject *parent = 0 );
80
84 ~GData();
85
95 virtual void setFullName( const QString &fullName );
96
101 QString fullName() const;
102
109 QString profileId() const;
110
117 virtual void setProfileId( const QString &pid );
118
122 QString interfaceName() const;
123
131 void fetchProfileId();
132
138 virtual void listBlogs();
139
146 virtual void listComments( KBlog::BlogPost *post );
147
153 virtual void listAllComments();
154
163 void listRecentPosts( int number );
164
177 virtual void listRecentPosts( const QStringList &label=QStringList(), int number=0,
178 const KDateTime &upMinTime=KDateTime(),
179 const KDateTime &upMaxTime=KDateTime(),
180 const KDateTime &pubMinTime=KDateTime(),
181 const KDateTime &pubMaxTime=KDateTime() );
182
190 void fetchPost( KBlog::BlogPost *post );
191
196 void modifyPost( KBlog::BlogPost *post );
197
204 void createPost( KBlog::BlogPost *post );
205
213 void removePost( KBlog::BlogPost *post );
214
223 virtual void createComment( KBlog::BlogPost *post, KBlog::BlogComment *comment );
224
233 virtual void removeComment( KBlog::BlogPost *post, KBlog::BlogComment *comment );
234
235 Q_SIGNALS:
236
244 void listedBlogs( const QList<QMap<QString,QString> >& blogsList );
245
253 void listedAllComments( const QList<KBlog::BlogComment> &commentsList );
254
263 void listedComments( KBlog::BlogPost *post, const QList<KBlog::BlogComment> &comments );
264
273 void createdComment( const KBlog::BlogPost *post, const KBlog::BlogComment *comment );
274
283 void removedComment( const KBlog::BlogPost *post, const KBlog::BlogComment *comment );
284
292 void fetchedProfileId( const QString &profileId );
293
294 protected:
298 GData( const KUrl &server, GDataPrivate &dd, QObject *parent = 0 );
299
300 private:
301 Q_DECLARE_PRIVATE( GData )
302 Q_PRIVATE_SLOT( d_func(),
303 void slotFetchProfileId( KJob * ) )
304 Q_PRIVATE_SLOT( d_func(),
305 void slotListBlogs( Syndication::Loader *,
306 Syndication::FeedPtr, Syndication::ErrorCode ) )
307 Q_PRIVATE_SLOT( d_func(),
308 void slotListComments( Syndication::Loader *,
309 Syndication::FeedPtr, Syndication::ErrorCode ) )
310 Q_PRIVATE_SLOT( d_func(),
311 void slotListAllComments( Syndication::Loader *,
312 Syndication::FeedPtr, Syndication::ErrorCode ) )
313 Q_PRIVATE_SLOT( d_func(),
314 void slotListRecentPosts( Syndication::Loader *,
315 Syndication::FeedPtr, Syndication::ErrorCode ) )
316 Q_PRIVATE_SLOT( d_func(),
317 void slotFetchPost( Syndication::Loader *,
318 Syndication::FeedPtr, Syndication::ErrorCode ) )
319 Q_PRIVATE_SLOT( d_func(),
320 void slotCreatePost( KJob * ) )
321 Q_PRIVATE_SLOT( d_func(),
322 void slotModifyPost( KJob * ) )
323 Q_PRIVATE_SLOT( d_func(),
324 void slotRemovePost( KJob * ) )
325 Q_PRIVATE_SLOT( d_func(),
326 void slotCreateComment( KJob * ) )
327 Q_PRIVATE_SLOT( d_func(),
328 void slotRemoveComment( KJob * ) )
329};
330
331} //namespace KBlog
332#endif
blog.h
This is the main interface for blogging APIs.
KBlog::BlogComment
A class that represents a blog comment on the blog post.
Definition blogcomment.h:51
KBlog::BlogPost
A class that represents a blog post on the server.
Definition blogpost.h:69
KBlog::Blog
A class that provides methods to call functions on a supported blog web application.
Definition blog.h:72
KBlog::GData
A class that can be used for access to GData blogs.
Definition gdata.h:71
KBlog::GData::createdComment
void createdComment(const KBlog::BlogPost *post, const KBlog::BlogComment *comment)
This signal is emitted when a comment has been created on the blogging server.
KBlog::GData::listedAllComments
void listedAllComments(const QList< KBlog::BlogComment > &commentsList)
This signal is emitted when a list of all comments has been fetched from the blogging server.
KBlog::GData::listedComments
void listedComments(KBlog::BlogPost *post, const QList< KBlog::BlogComment > &comments)
This signal is emitted when a list of comments has been fetched from the blogging server.
KBlog::GData::fetchedProfileId
void fetchedProfileId(const QString &profileId)
This signal is emitted when the profile id has been fetched.
KBlog::GData::removedComment
void removedComment(const KBlog::BlogPost *post, const KBlog::BlogComment *comment)
This signal is emitted when a comment has been removed from the blogging server.
KBlog::GData::listedBlogs
void listedBlogs(const QList< QMap< QString, QString > > &blogsList)
This signal is emitted when a list of blogs has been fetched from the blogging server.
KBlog::GData::GData
GData(const KUrl &server, GDataPrivate &dd, QObject *parent=0)
Overloaded for private inheritance handling.
KBlog
Namespace for blog related classes.
Definition blog.h:53
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.

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-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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