- 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
ConstructorsConstructorDescriptionOpenMode()Creates a new OpenMode.OpenMode(int value) Creates a new OpenMode with givenvalue.OpenMode(QIODevice.OpenModeFlag ... args) Creates a new OpenMode where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QIODevice.OpenModeclone()Clones the flagsfinal QIODevice.OpenModeCombines this flags with enum entry.final intcompareTo(QIODevice.OpenMode other) final QIODevice.OpenModeFlag []flags()Returns an array of flag objects represented by this OpenMode.final QIODevice.OpenModeSets the flagefinal QIODevice.OpenModesetFlag(QIODevice.OpenModeFlag e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
OpenMode
public OpenMode()Creates a new OpenMode. -
OpenMode
Creates a new OpenMode where the flags inargsare 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:
combinedin classQFlags<QIODevice.OpenModeFlag>- Parameters:
e- enum entry- Returns:
- new OpenMode
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QIODevice.OpenModeFlag>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QIODevice.OpenModeFlag>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QIODevice.OpenModeFlag>
-
compareTo
- Specified by:
compareToin interfaceComparable<QIODevice.OpenMode>
-
value
public final int value()Returns the value of this QFlags. -
setValue
public final void setValue(int value) Sets the value of this QFlags.- Parameters:
value- new value
-