- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description 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 Type Method Description QDBusServiceWatcher.WatchMode
clone()
Clones the flagsQDBusServiceWatcher.WatchMode
combined(QDBusServiceWatcher.WatchModeFlag e)
Combines this flags with enum entry.int
compareTo(QDBusServiceWatcher.WatchMode other)
QDBusServiceWatcher.WatchModeFlag[]
flags()
Returns an array of flag objects represented by this WatchMode.QDBusServiceWatcher.WatchMode
setFlag(QDBusServiceWatcher.WatchModeFlag e)
Sets the flage
QDBusServiceWatcher.WatchMode
setFlag(QDBusServiceWatcher.WatchModeFlag e, boolean on)
Sets or clears the flagflag
-
Constructor Details
-
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
public final QDBusServiceWatcher.WatchMode setFlag(QDBusServiceWatcher.WatchModeFlag e, boolean on)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>
-