KBlog Client Library
blogger1_p.h
00001 /* 00002 This file is part of the kblog library. 00003 00004 Copyright (c) 2006-2007 Christian Weilbach <christian_weilbach@web.de> 00005 Copyright (c) 2007 Mike McQuaid <mike@mikemcquaid.com> 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Library General Public 00009 License as published by the Free Software Foundation; either 00010 version 2 of the License, or (at your option) any later version. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Library General Public License for more details. 00016 00017 You should have received a copy of the GNU Library General Public License 00018 along with this library; see the file COPYING.LIB. If not, write to 00019 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 Boston, MA 02110-1301, USA. 00021 */ 00022 00023 #ifndef BLOGGER1_P_H 00024 #define BLOGGER1_P_H 00025 00026 #include "blogger1.h" 00027 #include "blog_p.h" 00028 00029 #include <kxmlrpcclient/client.h> 00030 00031 #include <QList> 00032 00033 namespace KBlog { 00034 00035 class Blogger1Private : public BlogPrivate 00036 { 00037 public: 00038 QString mAppId; 00039 KXmlRpc::Client *mXmlRpcClient; 00040 unsigned int mCallCounter; // TODO a better counter 00041 QMap<unsigned int,KBlog::BlogPost*> mCallMap; 00042 Blogger1Private(); 00043 virtual ~Blogger1Private(); 00044 00045 virtual void slotFetchUserInfo( const QList<QVariant> &result, const QVariant &id ); 00046 virtual void slotListBlogs( const QList<QVariant> &result, const QVariant &id ); 00047 virtual void slotListRecentPosts( const QList<QVariant> &result, const QVariant &id ); 00048 virtual void slotFetchPost( const QList<QVariant> &result, const QVariant &id ); 00049 virtual void slotCreatePost( const QList<QVariant> &result, const QVariant &id ); 00050 virtual void slotModifyPost( const QList<QVariant> &result, const QVariant &id ); 00051 virtual void slotRemovePost( const QList<QVariant> &result, const QVariant &id ); 00052 virtual void slotError( int number, const QString &errorString, const QVariant &id ); 00053 00054 Q_DECLARE_PUBLIC( KBlog::Blogger1 ) 00055 00056 enum FunctionToCall { 00057 GetRecentPosts, 00058 CreatePost, 00059 ModifyPost, 00060 FetchPost 00061 }; 00062 virtual QList<QVariant> defaultArgs( const QString &id = QString() ); 00063 QList<QVariant> blogger1Args( const QString &id = QString() ); 00064 virtual bool readPostFromMap( BlogPost *post, 00065 const QMap<QString, QVariant> &postInfo ); 00066 virtual bool readArgsFromPost( QList<QVariant> *args, const BlogPost &post ); 00067 virtual QString getCallFromFunction( FunctionToCall type ); 00068 }; 00069 00070 } 00071 00072 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 04:34:33 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 04:34:33 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.