- 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 inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the flagsCombines this flags with enum entry.final intfinal QDBusServiceWatcher.WatchModeFlag []flags()Returns an array of flag objects represented by this WatchMode.Sets the flagesetFlag(QDBusServiceWatcher.WatchModeFlag e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
WatchMode
public WatchMode()Creates a new WatchMode. -
WatchMode
Creates a new WatchMode where the flags inargsare 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:
combinedin classQFlags<QDBusServiceWatcher.WatchModeFlag>- Parameters:
e- enum entry- Returns:
- new WatchMode
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QDBusServiceWatcher.WatchModeFlag>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QDBusServiceWatcher.WatchModeFlag>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QDBusServiceWatcher.WatchModeFlag>
-
compareTo
- Specified by:
compareToin 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
-