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