- 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
ConstructorsConstructorDescriptionCreates a new Permissions.Permissions
(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
final void
setValue
(int value) Sets the value of this QFlags.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
Permissions
public Permissions()Creates a new Permissions. -
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>
-
value
public final int value()Returns the value of this QFlags. -
setValue
public final void setValue(int value) Sets the value of this QFlags.- Parameters:
value
- new value
-