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