- 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
ConstructorDescriptionFileFlags
(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
-
Constructor Details
-
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>
-