Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 72 lines (64 sloc) 1.803 kb
267a253 @lawand added initial source code files
authored
1 /****************************************************************************
2 **
c1c3232 @lawand updated copyright years
authored
3 ** Copyright 2011, 2012 Omar Lawand Dalatieh.
267a253 @lawand added initial source code files
authored
4 **
5 ** This file is part of Droper.
6 **
7 ** Droper is free software: you can redistribute it and/or modify
8 ** it under the terms of the GNU General Public License as published by
9 ** the Free Software Foundation, either version 3 of the License, or
10 ** (at your option) any later version.
11 **
12 ** Droper is distributed in the hope that it will be useful,
13 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ** GNU General Public License for more details.
16 **
17 ** You should have received a copy of the GNU General Public License
18 ** along with Droper. If not, see <http://www.gnu.org/licenses/>.
19 **
20 ** For more information, check out the GNU General Public license found
21 ** in the COPYING file and the README file.
22 **
23 ****************************************************************************/
24
25 #ifndef DROPBOX_H
26 #define DROPBOX_H
27
2eef7b2 @lawand changed comment style
authored
28 // member functions
1a5da8d @lawand used QUrl instead of QString for urls, fixed some bugs in functions
authored
29 #include <QUrl>
7690002 @lawand made minor edits
authored
30 #include <QString>
267a253 @lawand added initial source code files
authored
31
32 class Dropbox
33 {
34
2eef7b2 @lawand changed comment style
authored
35 // enumerations
267a253 @lawand added initial source code files
authored
36 public:
37 enum Api
38 {
1cdcc2c @lawand moved to Dropbox APIv1
authored
39 OAUTH_AUTHORIZE,
40 OAUTH_REQUESTTOKEN,
41 OAUTH_ACCESSTOKEN,
267a253 @lawand added initial source code files
authored
42 ACCOUNT_INFO,
43 METADATA,
1cdcc2c @lawand moved to Dropbox APIv1
authored
44 REVISIONS,
45 RESTORE,
46 SEARCH,
47 SHARES,
48 MEDIA,
267a253 @lawand added initial source code files
authored
49 FILEOPS_COPY,
50 FILEOPS_CREATEFOLDER,
51 FILEOPS_DELETE,
1cdcc2c @lawand moved to Dropbox APIv1
authored
52 FILEOPS_MOVE,
53 FILES,
54 FILESPUT,
55 THUMBNAILS
267a253 @lawand added initial source code files
authored
56 };
57
2eef7b2 @lawand changed comment style
authored
58 // member functions
267a253 @lawand added initial source code files
authored
59 public:
60 Dropbox(int apiVersion = 0);
1a5da8d @lawand used QUrl instead of QString for urls, fixed some bugs in functions
authored
61 QUrl apiToUrl(Dropbox::Api api);
62 Dropbox::Api urlToApi(QUrl url);
63 QString metaDataPathFromUrl(QUrl url);
64 QString filePathFromUrl(QUrl url);
6f914e4 @lawand made lots of changes mainly to switch to a current-directory-based view
authored
65
2eef7b2 @lawand changed comment style
authored
66 // private data members
267a253 @lawand added initial source code files
authored
67 private:
68 int apiVersion;
69 };
70
71 #endif // DROPBOX_H
Something went wrong with that request. Please try again.