- All Implemented Interfaces:
Serializable,Cloneable,Comparable<QCamera.LockTypes>
- Enclosing class:
QCamera
public static final class QCamera.LockTypes
extends QFlags<QCamera.LockType>
implements Comparable<QCamera.LockTypes>
QFlags type for enum QCamera.LockType- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new LockTypes.LockTypes(int value) Creates a new LockTypes with givenvalue.LockTypes(QCamera.LockType ... args) Creates a new LockTypes where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QCamera.LockTypesclone()Clones the flagsfinal QCamera.LockTypesCombines this flags with enum entry.final intcompareTo(QCamera.LockTypes other) final QCamera.LockType []flags()Returns an array of flag objects represented by this LockTypes.final QCamera.LockTypesSets the flagefinal QCamera.LockTypessetFlag(QCamera.LockType e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
LockTypes
public LockTypes()Creates a new LockTypes. -
LockTypes
Creates a new LockTypes where the flags inargsare set.- Parameters:
args- enum entries
-
LockTypes
public LockTypes(int value) Creates a new LockTypes with givenvalue.- Parameters:
value-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combinedin classQFlags<QCamera.LockType>- Parameters:
e- enum entry- Returns:
- new LockTypes
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QCamera.LockType>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin classQFlags<QCamera.LockType>- Parameters:
e- enum entryon- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this LockTypes.- Overrides:
flagsin classQFlags<QCamera.LockType>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QCamera.LockType>
-
compareTo
- Specified by:
compareToin interfaceComparable<QCamera.LockTypes>
-
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
-