- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QLocalServer.SocketOptions>
- Enclosing class:
- QLocalServer
public static final class QLocalServer.SocketOptions
extends QFlags<QLocalServer.SocketOption>
implements Comparable<QLocalServer.SocketOptions>
QFlags type for enum
QLocalServer.SocketOption
- See Also:
-
Constructor Summary
ConstructorDescriptionSocketOptions
(int value) Creates a new SocketOptions with givenvalue
.SocketOptions
(QLocalServer.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 QLocalServer.SocketOption[]
flags()
Returns an array of flag objects represented by this SocketOptions.Sets the flage
setFlag
(QLocalServer.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<QLocalServer.SocketOption>
- Parameters:
e
- enum entry- Returns:
- new SocketOptions
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QLocalServer.SocketOption>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QLocalServer.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<QLocalServer.SocketOption>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QLocalServer.SocketOption>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QLocalServer.SocketOptions>
-