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

blogilo

  • sources
  • kde-4.14
  • kdepim
  • blogilo
  • src
blogger.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Daniel Vrátil <dvratil@redhat.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  */
19 
20 #ifndef KBLOG_BLOGGER_H
21 #define KBLOG_BLOGGER_H
22 
23 #include <kblog/blog.h>
24 
25 #include <QMap>
26 
27 namespace KGAPI2
28 {
29  class Job;
30 }
31 
32 
43 namespace KBlog
44 {
45 
46 class BloggerPrivate;
47 
65 class KBLOG_EXPORT Blogger : public KBlog::Blog
66 {
67  Q_OBJECT
68  public:
74  explicit Blogger(const KUrl &server, QObject *parent = 0);
75 
79  virtual ~Blogger();
80 
84  QString interfaceName() const;
85 
96  void authenticate(const QMap<QString, QString> &authData = QMap<QString, QString>());
97 
104  void setApiKey(const QString &apiKey);
105 
112  void setSecretKey(const QString &secretKey);
113 
119  void listBlogs();
120 
129  void listRecentPosts(int number);
130 
138  void fetchPost(KBlog::BlogPost *post);
139 
147  void removePost(KBlog::BlogPost *post);
148 
155  void createPost(KBlog::BlogPost *post);
156 
157 
162  void modifyPost(KBlog::BlogPost *post);
163 
170  void listComments(KBlog::BlogPost *post);
171 
172  Q_SIGNALS:
181  void listedComments(KBlog::BlogPost *post, const QList<BlogComment> &comments);
182 
190  void listedBlogs(const QList<QMap<QString, QString> > &blogs);
191 
192 
201  void authenticated(const QMap<QString, QString> &authData);
202 
203  private:
204  Q_DECLARE_PRIVATE(Blogger);
205 
206  Q_PRIVATE_SLOT(d_func(), void _k_onAuthenticateFinished(KGAPI2::Job*))
207  Q_PRIVATE_SLOT(d_func(), void _k_onListBlogsFinished(KGAPI2::Job*))
208  Q_PRIVATE_SLOT(d_func(), void _k_onListRecentPostsFinished(KGAPI2::Job*))
209  Q_PRIVATE_SLOT(d_func(), void _k_onFetchPostFinished(KGAPI2::Job*))
210  Q_PRIVATE_SLOT(d_func(), void _k_onRemovePostFinished(KGAPI2::Job*))
211  Q_PRIVATE_SLOT(d_func(), void _k_onCreatePostFinished(KGAPI2::Job*))
212  Q_PRIVATE_SLOT(d_func(), void _k_onModifyPostFinished(KGAPI2::Job*))
213  Q_PRIVATE_SLOT(d_func(), void _k_onListCommentsFinished(KGAPI2::Job*))
214 };
215 }
216 
217 #endif // KBLOG_BLOGGER_H
218 
QMap< QString, QString >
QObject
QString
QList
KBlog::Blogger
A class that can be used for access to Google blogs.
Definition: blogger.h:65
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:16 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

blogilo

Skip menu "blogilo"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

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