1 #ifndef GOOGLEDATARESOURCE_H
2 #define GOOGLEDATARESOURCE_H
4 #include <akonadi/resourcebase.h>
5 #include "dlgGoogleDataConf.h"
11 class GoogleDataResource
: public Akonadi::ResourceBase
,
12 public Akonadi::AgentBase::Observer
16 GoogleDataResource( const QString
&id
);
17 ~GoogleDataResource();
20 virtual void configure( WId windowId
);
23 void retrieveCollections();
24 void retrieveItems( const Akonadi::Collection
&col
);
25 bool retrieveItem( const Akonadi::Item
&item
, const QSet
<QByteArray
> &parts
);
28 virtual void aboutToQuit();
30 virtual void itemAdded( const Akonadi::Item
&item
, const Akonadi::Collection
&collection
);
31 virtual void itemChanged( const Akonadi::Item
&item
, const QSet
<QByteArray
> &parts
);
32 virtual void itemRemoved( const Akonadi::Item
&item
);
35 dlgGoogleDataConf
*dlgConf
;
36 /* Flag with authentication */
38 /* Google data context: holds user account name/password */
41 struct gcal_contact_array all_contacts
;