- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QFileDevice.Permissions>
- Enclosing class:
QFileDevice
public static final class QFileDevice.Permissions
extends QFlags<QFileDevice.Permission>
implements Comparable<QFileDevice.Permissions>
QFlags
type for enum QFileDevice.Permission
- See Also:
-
Constructor Summary
ConstructorDescriptionPermissions
(int value) Creates a new Permissions with givenvalue
.Permissions
(QFileDevice.Permission ... args) Creates a new Permissions where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QFileDevice.Permissions
clone()
Clones the flagsfinal QFileDevice.Permissions
Combines this flags with enum entry.final int
compareTo
(QFileDevice.Permissions other) final QFileDevice.Permission []
flags()
Returns an array of flag objects represented by this Permissions.final QFileDevice.Permissions
Sets the flage
final QFileDevice.Permissions
setFlag
(QFileDevice.Permission e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
Permissions
Creates a new Permissions where the flags inargs
are set.- Parameters:
args
- enum entries
-
Permissions
public Permissions(int value) Creates a new Permissions with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QFileDevice.Permission>
- Parameters:
e
- enum entry- Returns:
- new Permissions
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QFileDevice.Permission>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QFileDevice.Permission>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this Permissions.- Overrides:
flags
in classQFlags<QFileDevice.Permission>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QFileDevice.Permission>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QFileDevice.Permissions>
-