blogger1.hGo 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
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 }
00211 #endif
|