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