Sharing: document that the two Type enum are linked

This commit is contained in:
Olivier Goffart 2015-11-19 10:50:21 +01:00
parent 887aa952fe
commit 952a134745
2 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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;