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