#ifndef _COMMON_H_ #define _COMMON_H_ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "version.h" #include "resource.h" class CDropbox; #define DROPBOX_API_VER "/2" #define DROPBOX_WWW_URL "https://www.dropbox.com" #define DROPBOX_API "https://api.dropboxapi.com" #define DROPBOX_API_RPC DROPBOX_API DROPBOX_API_VER #define DROPBOX_CONTENT "https://content.dropboxapi.com" #define DROPBOX_API_CU DROPBOX_CONTENT DROPBOX_API_VER #define DROPBOX_APP_KEY "fa8du7gkf2q8xzg" #include "../../../miranda-private-keys/Dropbox/secret_key.h" class DropboxException { CMStringA message; public: DropboxException(const char *message) : message(message) { } const char* what() const throw() { return message.c_str(); } }; #define MODULE "Dropbox" #include "dropbox_options.h" #include "http_request.h" #include "api/account.h" #include "api/upload.h" #include "api/operations.h" #include "file_transfer.h" #include "dropbox.h" extern HINSTANCE g_hInstance; #define DROPBOX_FILE_CHUNK_SIZE 1024 * 1024 //1 MB #define BBB_ID_FILE_SEND 10001 // icons void InitializeIcons(); HANDLE GetIconHandleByName(const char *name); HICON LoadIconEx(int iconId, bool big = false); #endif //_COMMON_H_