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

KBlog Client Library

blogger1.h

Go to the documentation of this file.
00001 /*
00002   This file is part of the kblog library.
00003 
00004   Copyright (c) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00005   Copyright (c) 2006-2007 Christian Weilbach <christian_weilbach@web.de>
00006   Copyright (c) 2007 Mike Arthur <mike@mikearthur.co.uk>
00007 
00008   This library is free software; you can redistribute it and/or
00009   modify it under the terms of the GNU Library General Public
00010   License as published by the Free Software Foundation; either
00011   version 2 of the License, or (at your option) any later version.
00012 
00013   This library is distributed in the hope that it will be useful,
00014   but WITHOUT ANY WARRANTY; without even the implied warranty of
00015   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016   Library General Public License for more details.
00017 
00018   You should have received a copy of the GNU Library General Public License
00019   along with this library; see the file COPYING.LIB.  If not, write to
00020   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021   Boston, MA 02110-1301, USA.
00022 */
00023 
00024 #ifndef KBLOG_BLOGGER1_H
00025 #define KBLOG_BLOGGER1_H
00026 
00027 #include <kblog/blog.h>
00028 
00029 class KUrl;
00030 
00040 namespace KBlog {
00041 
00042 class Blogger1Private;
00043 
00064 class KBLOG_EXPORT Blogger1 : public Blog
00065 {
00066   Q_OBJECT
00067   public:
00074     explicit Blogger1( const KUrl &server, QObject *parent = 0 );
00075 
00079     virtual ~Blogger1();
00080 
00084     QString interfaceName() const;
00085 
00091     void setUrl( const KUrl &server );
00092 
00098     virtual void fetchUserInfo();
00099 
00104     virtual void listBlogs();
00105 
00115     void listRecentPosts( int number );
00116 
00126     void fetchPost( KBlog::BlogPost *post );
00127 
00136     void modifyPost( KBlog::BlogPost *post );
00137 
00145     void createPost( KBlog::BlogPost *post );
00146 
00156     void removePost( KBlog::BlogPost *post );
00157 
00158   Q_SIGNALS:
00159 
00169     void listedBlogs( const QList<QMap<QString,QString> >& blogsList );
00170 
00181     void fetchedUserInfo( const QMap<QString,QString> &userInfo );
00182 
00183   protected:
00187     Blogger1( const KUrl &server, Blogger1Private &dd, QObject *parent = 0 );
00188 
00189   private:
00190     Q_DECLARE_PRIVATE( Blogger1 )
00191     Q_PRIVATE_SLOT( d_func(),
00192                     void slotFetchUserInfo( const QList<QVariant> &, const QVariant & ) )
00193     Q_PRIVATE_SLOT( d_func(),
00194                     void slotListBlogs( const QList<QVariant> &, const QVariant & ) )
00195     Q_PRIVATE_SLOT( d_func(),
00196                     void slotListRecentPosts( const QList<QVariant> &, const QVariant & ) )
00197     Q_PRIVATE_SLOT( d_func(),
00198                     void slotFetchPost( const QList<QVariant> &, const QVariant & ) )
00199     Q_PRIVATE_SLOT( d_func(),
00200                     void slotCreatePost( const QList<QVariant> &, const QVariant & ) )
00201     Q_PRIVATE_SLOT( d_func(),
00202                     void slotModifyPost( const QList<QVariant> &, const QVariant & ) )
00203     Q_PRIVATE_SLOT( d_func(),
00204                     void slotRemovePost( const QList<QVariant> &, const QVariant & ) )
00205     Q_PRIVATE_SLOT( d_func(),
00206                     void slotError( int, const QString &, const QVariant & ) )
00207 };
00208 
00209 } //namespace KBlog
00210 #endif

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"
  • 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.5
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