mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Sharing: document that the two Type enum are linked
This commit is contained in:
parent
887aa952fe
commit
952a134745
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue