summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/stdafx.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-02-22 21:12:25 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-02-22 21:12:25 +0000
commit0b82b879821c7e73b86f189be747c5634c8b46b7 (patch)
tree28c7e3b06c25a7b9fbd49a33972e7fae07dd2e56 /plugins/Dropbox/src/stdafx.h
parent477664ed5c4b018562e9419428175ae938cf2761 (diff)
Dropbox:
- updated api to v2 - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@16326 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/stdafx.h')
-rw-r--r--plugins/Dropbox/src/stdafx.h26
1 files changed, 21 insertions, 5 deletions
diff --git a/plugins/Dropbox/src/stdafx.h b/plugins/Dropbox/src/stdafx.h
index ae52bb9fb4..e8117bd649 100644
--- a/plugins/Dropbox/src/stdafx.h
+++ b/plugins/Dropbox/src/stdafx.h
@@ -36,15 +36,31 @@
class CDropbox;
-#define DROPBOX_API_VER "1"
-#define DROPBOX_API_ROOT "sandbox"
-#define DROPBOX_WWW_URL "https://www.dropbox.com/"
-#define DROPBOX_API_URL "https://api.dropbox.com/" DROPBOX_API_VER
-#define DROPBOX_APICONTENT_URL "https://api-content.dropbox.com/" DROPBOX_API_VER
+#define DROPBOX_API_VER "2"
+#define DROPBOX_WWW_URL "https://www.dropbox.com/1"
+#define DROPBOX_API_OLD "https://api.dropboxapi.com/1"
+#define DROPBOX_API_RPC "https://api.dropboxapi.com/" DROPBOX_API_VER
+#define DROPBOX_API_CU "https://content.dropboxapi.com/" 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();
+ }
+};
+
#include "dropbox_dialogs.h"
#include "dropbox_options.h"
#include "http_request.h"