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