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