Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2015-10-21 19:40:04 +0300
committerOlivier Goffart <ogoffart@woboq.com>2015-10-21 19:40:04 +0300
commitc80e72da83978fa8d200e9ee34c4f4008062d2ba (patch)
treeceac5d7f060dbf47e93ee453af0dd35783c9074c /src/gui/ocssharejob.h
parentec351e00ad6f339a237c447e9aa48f631a587ccf (diff)
Sharing: change coding style of enum
From all upper case to camel case This hopefully fix the Windows build which fails because DELETE seems to be a macro
Diffstat (limited to 'src/gui/ocssharejob.h')
-rw-r--r--src/gui/ocssharejob.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/ocssharejob.h b/src/gui/ocssharejob.h
index 1f16bf251..87043c08e 100644
--- a/src/gui/ocssharejob.h
+++ b/src/gui/ocssharejob.h
@@ -35,20 +35,20 @@ public:
/**
* Support sharetypes
*/
- enum class SHARETYPE : int {
- LINK = 3
+ enum class ShareType : int {
+ Link = 3
};
/**
* Possible permissions
*/
- enum class PERMISSION : int {
- READ = 1,
- UPDATE = 2,
- CREATE = 4,
- DELETE = 8,
- SHARE = 16,
- ALL = 31
+ enum class Permission : int {
+ Read = 1,
+ Update = 2,
+ Create = 4,
+ Delete = 8,
+ Share = 16,
+ All = 31
};
/**
@@ -99,7 +99,7 @@ public:
* @param password Optionally a password for the share
* @param date Optionally an expire date for the share
*/
- void createShare(const QString& path, SHARETYPE shareType, const QString& password = "", const QDate& date = QDate());
+ void createShare(const QString& path, ShareType shareType, const QString& password = "", const QDate& date = QDate());
};
}