- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ConversionFlags(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 Type Method Description QTextCodec.ConversionFlags
clone()
Clones the flagsQTextCodec.ConversionFlags
combined(QTextCodec.ConversionFlag e)
Combines this flags with enum entry.int
compareTo(QTextCodec.ConversionFlags other)
QTextCodec.ConversionFlag[]
flags()
Returns an array of flag objects represented by this ConversionFlags.QTextCodec.ConversionFlags
setFlag(QTextCodec.ConversionFlag e)
Sets the flage
QTextCodec.ConversionFlags
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>
-