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