[Pkg-owncloud-commits] [owncloud-client] 374/484: Sharing: document that the two Type enum are linked

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:38:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 952a134745d8f2022888fd99a3ae3ebe1e63b75a
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Thu Nov 19 10:50:21 2015 +0100

    Sharing: document that the two Type enum are linked
---
 src/gui/share.h  | 8 ++++----
 src/gui/sharee.h | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/gui/share.h b/src/gui/share.h
index 8ac7fae..7a58c0a 100644
--- a/src/gui/share.h
+++ b/src/gui/share.h
@@ -34,14 +34,14 @@ public:
 
     /**
      * Possible share types
+     * Need to be in sync with Sharee::Type
      */
     enum ShareType {
-        TypeUser   = 0,
-        TypeGroup  = 1,
+        TypeUser   = Sharee::User,
+        TypeGroup  = Sharee::Group,
         TypeLink   = 3,
-        TypeRemote = 6
+        TypeRemote = Sharee::Federated
     };
-    Q_DECLARE_FLAGS(ShareTypes, ShareType)
 
     /**
      * Possible permissions
diff --git a/src/gui/sharee.h b/src/gui/sharee.h
index bb67537..9a99da8 100644
--- a/src/gui/sharee.h
+++ b/src/gui/sharee.h
@@ -29,17 +29,17 @@ namespace OCC {
 class Sharee {
 public:
     
+    // Keep in sync with Share::ShareType
     enum Type {
         User = 0,
         Group = 1,
         Federated = 6
     };
-    Q_DECLARE_FLAGS(Types, Type)
 
     explicit Sharee(const QString shareWith,
                     const QString displayName,
                     const Type type);
-    
+
     QString format() const;
     QString shareWith() const;
     QString displayName() const;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list