- 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
ConstructorDescriptionCreates a new SocketOptions.SocketOptions
(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
final void
setValue
(int value) Sets the value of this QFlags.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
SocketOptions
public SocketOptions()Creates a new SocketOptions. -
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>
-
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
-