26 #include <kdatetime.h>
28 #include <QtCore/QStringList>
79 explicit GData(
const KUrl &server, QObject *parent = 0 );
95 virtual void setFullName(
const QString &fullName );
101 QString fullName()
const;
109 QString profileId()
const;
117 virtual void setProfileId(
const QString &pid );
122 QString interfaceName()
const;
131 void fetchProfileId();
138 virtual void listBlogs();
153 virtual void listAllComments();
163 void listRecentPosts(
int number );
177 virtual void listRecentPosts(
const QStringList &label=QStringList(),
int number=0,
178 const KDateTime &upMinTime=KDateTime(),
179 const KDateTime &upMaxTime=KDateTime(),
180 const KDateTime &pubMinTime=KDateTime(),
181 const KDateTime &pubMaxTime=KDateTime() );
244 void listedBlogs(
const QList<QMap<QString,QString> >& blogsList );
253 void listedAllComments(
const QList<KBlog::BlogComment> &commentsList );
263 void listedComments(
KBlog::BlogPost *post,
const QList<KBlog::BlogComment> &comments );
292 void fetchedProfileId(
const QString &profileId );
298 GData(
const KUrl &server, GDataPrivate &dd, QObject *parent = 0 );
301 Q_DECLARE_PRIVATE(
GData )
302 Q_PRIVATE_SLOT( d_func(),
303 void slotFetchProfileId( KJob * ) )
304 Q_PRIVATE_SLOT( d_func(),
305 void slotListBlogs( Syndication::Loader *,
306 Syndication::FeedPtr, Syndication::ErrorCode ) )
307 Q_PRIVATE_SLOT( d_func(),
308 void slotListComments( Syndication::Loader *,
309 Syndication::FeedPtr, Syndication::ErrorCode ) )
310 Q_PRIVATE_SLOT( d_func(),
311 void slotListAllComments( Syndication::Loader *,
312 Syndication::FeedPtr, Syndication::ErrorCode ) )
313 Q_PRIVATE_SLOT( d_func(),
314 void slotListRecentPosts( Syndication::Loader *,
315 Syndication::FeedPtr, Syndication::ErrorCode ) )
316 Q_PRIVATE_SLOT( d_func(),
317 void slotFetchPost( Syndication::Loader *,
318 Syndication::FeedPtr, Syndication::ErrorCode ) )
319 Q_PRIVATE_SLOT( d_func(),
320 void slotCreatePost( KJob * ) )
321 Q_PRIVATE_SLOT( d_func(),
322 void slotModifyPost( KJob * ) )
323 Q_PRIVATE_SLOT( d_func(),
324 void slotRemovePost( KJob * ) )
325 Q_PRIVATE_SLOT( d_func(),
326 void slotCreateComment( KJob * ) )
327 Q_PRIVATE_SLOT( d_func(),
328 void slotRemoveComment( KJob * ) )
A class that can be used for access to GData blogs.
A class that represents a blog post on the server.
A class that provides methods to call functions on a supported blog web application.
This is the main interface for blogging APIs.