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