• Skip to content
  • Skip to link menu
KDE 4.2 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 
00065 class KBLOG_EXPORT Blogger1 : public Blog
00066 {
00067   Q_OBJECT
00068   public:
00075     explicit Blogger1( const KUrl &server, QObject *parent = 0 );
00076 
00080     virtual ~Blogger1();
00081 
00085     QString interfaceName() const;
00086 
00092     void setUrl( const KUrl &server );
00093 
00099     virtual void fetchUserInfo();
00100 
00105     virtual void listBlogs();
00106 
00116     void listRecentPosts( int number );
00117 
00127     void fetchPost( KBlog::BlogPost *post );
00128 
00137     void modifyPost( KBlog::BlogPost *post );
00138 
00146     void createPost( KBlog::BlogPost *post );
00147 
00157     void removePost( KBlog::BlogPost *post );
00158 
00159   Q_SIGNALS:
00160 
00170     void listedBlogs( const QList<QMap<QString,QString> >& blogsList );
00171 
00182     void fetchedUserInfo( const QMap<QString,QString> &userInfo );
00183 
00184   protected:
00188     Blogger1( const KUrl &server, Blogger1Private &dd, QObject *parent = 0 );
00189 
00190   private:
00191     Q_DECLARE_PRIVATE( Blogger1 )
00192     Q_PRIVATE_SLOT( d_func(),
00193                     void slotFetchUserInfo( const QList<QVariant> &, const QVariant & ) )
00194     Q_PRIVATE_SLOT( d_func(),
00195                     void slotListBlogs( const QList<QVariant> &, const QVariant & ) )
00196     Q_PRIVATE_SLOT( d_func(),
00197                     void slotListRecentPosts( const QList<QVariant> &, const QVariant & ) )
00198     Q_PRIVATE_SLOT( d_func(),
00199                     void slotFetchPost( const QList<QVariant> &, const QVariant & ) )
00200     Q_PRIVATE_SLOT( d_func(),
00201                     void slotCreatePost( const QList<QVariant> &, const QVariant & ) )
00202     Q_PRIVATE_SLOT( d_func(),
00203                     void slotModifyPost( const QList<QVariant> &, const QVariant & ) )
00204     Q_PRIVATE_SLOT( d_func(),
00205                     void slotRemovePost( const QList<QVariant> &, const QVariant & ) )
00206     Q_PRIVATE_SLOT( d_func(),
00207                     void slotError( int, const QString &, const QVariant & ) )
00208 };
00209 
00210 } //namespace KBlog
00211 #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"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.7.1
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