• 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
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 
30 class KUrl;
31 
43 namespace KBlog {
44 
45  class GDataPrivate;
46  class BlogComment;
47 
70 class 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
KBlog::GData
A class that can be used for access to GData blogs.
Definition: gdata.h:70
KBlog::BlogComment
A class that represents a blog comment on the blog post.
Definition: blogcomment.h:50
KBlog::BlogPost
A class that represents a blog post on the server.
Definition: blogpost.h:68
KBlog::Blog
A class that provides methods to call functions on a supported blog web application.
Definition: blog.h:71
blog.h
This is the main interface for blogging APIs.
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