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