- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description PauseModes(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 Type Method Description QAbstractSocket.PauseModes
clone()
Clones the flagsQAbstractSocket.PauseModes
combined(QAbstractSocket.PauseMode e)
Combines this flags with enum entry.int
compareTo(QAbstractSocket.PauseModes other)
QAbstractSocket.PauseMode[]
flags()
Returns an array of flag objects represented by this PauseModes.QAbstractSocket.PauseModes
setFlag(QAbstractSocket.PauseMode e)
Sets the flage
QAbstractSocket.PauseModes
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>
-