- 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
ConstructorDescriptionWatchMode
(int value) Creates a new WatchMode with givenvalue
.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
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
-
Constructor Details
-
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>
-