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