- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QIODeviceBase.OpenMode>
- Enclosing interface:
- QIODeviceBase
public static final class QIODeviceBase.OpenMode
extends QFlags<QIODeviceBase.OpenModeFlag>
implements Comparable<QIODeviceBase.OpenMode>
QFlags type for enum
QIODeviceBase.OpenModeFlag
- See Also:
-
Constructor Summary
ConstructorDescriptionOpenMode
(int value) Creates a new OpenMode with givenvalue
.OpenMode
(QIODeviceBase.OpenModeFlag... args) Creates a new OpenMode where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QIODeviceBase.OpenMode
clone()
Clones the flagsfinal QIODeviceBase.OpenMode
Combines this flags with enum entry.final int
compareTo
(QIODeviceBase.OpenMode other) final QIODeviceBase.OpenModeFlag[]
flags()
Returns an array of flag objects represented by this OpenMode.final QIODeviceBase.OpenMode
Sets the flage
final QIODeviceBase.OpenMode
setFlag
(QIODeviceBase.OpenModeFlag e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
OpenMode
Creates a new OpenMode where the flags inargs
are set.- Parameters:
args
- enum entries
-
OpenMode
public OpenMode(int value) Creates a new OpenMode with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QIODeviceBase.OpenModeFlag>
- Parameters:
e
- enum entry- Returns:
- new OpenMode
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QIODeviceBase.OpenModeFlag>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QIODeviceBase.OpenModeFlag>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this OpenMode.- Overrides:
flags
in classQFlags<QIODeviceBase.OpenModeFlag>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QIODeviceBase.OpenModeFlag>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QIODeviceBase.OpenMode>
-