#ifndef _CLOUDFILE_GDRIVE_H_ #define _CLOUDFILE_GDRIVE_H_ class CGDriveService : public CCloudService { private: static unsigned RequestAccessTokenThread(void *owner, void *param); static unsigned __stdcall RevokeAccessTokenThread(void *param); void HandleJsonError(JSONNode &node); void UploadFile(const char *parentId, const char *name, const char *data, size_t size, char *fileId); void CreateUploadSession(const char *parentId, const char *name, char *uploadUri); void UploadFileChunk(const char *uploadUri, const char *chunk, size_t chunkSize, uint64_t offset, uint64_t fileSize, char *fileId); void CreateFolder(const char *path, char *folderId); void CreateSharedLink(const char *itemId, char *url); public: CGDriveService(HNETLIBUSER hConnection); const char* GetModule() const; const wchar_t* GetText() const; int GetIconId() const; bool IsLoggedIn(); void Login(); void Logout(); UINT Upload(FileTransferParam *ftp); }; #endif //_CLOUDFILE_GDRIVE_H_