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