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