14 #include <gdata/gdata.h>
44 const std::string& filter);
49 const std::string& filter);
81 void construct(
const std::string& ignoreFields);
93 std::string convertContact(GDataContactsContact* contact,
96 gchar* photoContentType);
101 static void* downloadThreadFunc(
void* ptr);
106 bool downloadPhoto();
109 std::string userLogin;
112 std::string clientId;
117 std::vector<std::string> ignoredFields;
123 GDataAuthorizer* authorizer;
124 GDataContactsService *service;
126 GCancellable *cancellable;
129 unsigned int totalNumber;
131 std::list<std::string> bufferedVCards;
133 pthread_t downloadThread;
137 pthread_mutex_t mutex;
138 pthread_cond_t bufferReadyCond;
eCancelRet
Definition: Source.hpp:138
eResumeRet
Definition: Source.hpp:123
virtual ~GoogleSource()
Definition: Google.cpp:97
enum OpenAB_Source::Source::eInit init()
Initializes Source.
Definition: Google.cpp:136
SecureString class, used to store strings like passwords etc. Current implementation encodes string i...
Definition: SecureString.hpp:26
GoogleSource(const std::string &login, const OpenAB::SecureString &password, const std::string &filter)
Constructor.
Definition: Google.cpp:26
enum OpenAB_Source::Source::eCancelRet cancel()
Cancels Source, if such operation is supported. After canceling Source next call to getVCard() should...
Definition: Google.cpp:308
eSuspendRet
Definition: Source.hpp:108
Documentation for Source plugin interface.
Definition: Source.hpp:76
int getTotalCount() const
Returns total count of items available from Source, if such information is available.
Definition: Google.cpp:321
eGetItemRet
Definition: Source.hpp:155
Definition: Google.hpp:36
enum OpenAB_Source::Source::eGetItemRet getItem(OpenAB::SmartPtr< OpenAB::PIMItem > &item)
Gets PIM Item from Source. If Source is suspended getItem() should block until Source will be resumed...
Definition: Google.cpp:240
eInit
Definition: Source.hpp:94
enum OpenAB_Source::Source::eSuspendRet suspend()
Suspends Source, if such operation is supported.
Definition: Google.cpp:292
enum OpenAB_Source::Source::eResumeRet resume()
Resumes Source, if such operation is supported.
Definition: Google.cpp:300