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