- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description 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 Type Method Description QFileDevice.Permissions
clone()
Clones the flagsQFileDevice.Permissions
combined(QFileDevice.Permission e)
Combines this flags with enum entry.int
compareTo(QFileDevice.Permissions other)
QFileDevice.Permission[]
flags()
Returns an array of flag objects represented by this Permissions.QFileDevice.Permissions
setFlag(QFileDevice.Permission e)
Sets the flage
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>
-