KBlog Client Library
blogger1.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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 }
00210 #endif