KBlog

metaweblog.h
Go to the documentation of this file.
1 /*
2  This file is part of the kblog library.
3 
4  Copyright (c) 2004 Reinhold Kainhofer <[email protected]>
5  Copyright (c) 2006-2007 Christian Weilbach <[email protected]>
6  Copyright (c) 2007 Mike McQuaid <[email protected]>
7 
8  This library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Library General Public
10  License as published by the Free Software Foundation; either
11  version 2 of the License, or (at your option) any later version.
12 
13  This library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Library General Public License for more details.
17 
18  You should have received a copy of the GNU Library General Public License
19  along with this library; see the file COPYING.LIB. If not, write to
20  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  Boston, MA 02110-1301, USA.
22 */
23 
24 #ifndef KBLOG_METAWEBLOG_H
25 #define KBLOG_METAWEBLOG_H
26 
27 #include <blogger1.h>
28 
29 class QUrl;
30 
40 namespace KBlog
41 {
42 
43 class MetaWeblogPrivate;
66 class KBLOG_EXPORT MetaWeblog : public Blogger1
67 {
68  Q_OBJECT
69 public:
76  explicit MetaWeblog(const QUrl &server, QObject *parent = nullptr);
77 
81  virtual ~MetaWeblog();
82 
86  QString interfaceName() const override;
87 
93  virtual void listCategories();
94 
100  virtual void createMedia(KBlog::BlogMedia *media);
101 
102 Q_SIGNALS:
103 
112  void createdMedia(KBlog::BlogMedia *media);
113 
123  void listedCategories(const QList<QMap<QString, QString> > &categories);
124 
125 protected:
129  MetaWeblog(const QUrl &server, MetaWeblogPrivate &dd, QObject *parent = nullptr);
130 
131 private:
132  Q_DECLARE_PRIVATE(MetaWeblog)
133  Q_PRIVATE_SLOT(d_func(),
134  void slotListCategories(const QList<QVariant> &, const QVariant &))
135  Q_PRIVATE_SLOT(d_func(),
136  void slotCreateMedia(const QList<QVariant> &, const QVariant &))
137 };
138 
139 } //namespace KBlog
140 #endif
A class that represents a media object on the server.
Definition: blogmedia.h:49
This file is part of the for accessing Blog Servers and defines the Blogger1 class.
A class that can be used for access to MetaWeblog blogs.
Definition: metaweblog.h:66
Namespace for blog related classes.
Definition: blog.h:53
A class that can be used for access to Blogger 1.0 blogs.
Definition: blogger1.h:66
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue May 26 2020 22:45:36 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.