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