- 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
ConstructorsConstructorDescriptionPermissions(int value) Creates a new Permissions with givenvalue.Permissions(QFileDevice.Permission ... args) Creates a new Permissions where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QFileDevice.Permissionsclone()Clones the flagsfinal QFileDevice.PermissionsCombines this flags with enum entry.final intcompareTo(QFileDevice.Permissions other) final QFileDevice.Permission []flags()Returns an array of flag objects represented by this Permissions.final QFileDevice.PermissionsSets the flagefinal QFileDevice.PermissionssetFlag(QFileDevice.Permission e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
Permissions
Creates a new Permissions where the flags inargsare 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:
combinedin classQFlags<QFileDevice.Permission>- Parameters:
e- enum entry- Returns:
- new Permissions
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QFileDevice.Permission>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QFileDevice.Permission>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QFileDevice.Permission>
-
compareTo
- Specified by:
compareToin interfaceComparable<QFileDevice.Permissions>
-