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