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