Location:
e32cmn.h
Link against: euser.lib
class TCapabilitySet;
Class representing an arbitrary set of capabilities.
This class can only contain capabilities supported by the current OS version.
Defined in TCapabilitySet
:
AddCapability()
, HasCapabilities()
, HasCapability()
, Intersection()
, Remove()
, RemoveCapability()
, Set()
, Set()
, SetAllSupported()
, SetEmpty()
, TCapabilitySet()
, TCapabilitySet()
, TCapabilitySet()
, Union()
inline TCapabilitySet(TCapability aCapability);
Construct a set consisting of a single capability.
|
IMPORT_C TCapabilitySet(TCapability aCapability1, TCapability aCapability2);
Construct a set consisting of two capabilities.
|
inline void Set(TCapability aCapability);
Make this set consist of a single capability.
|
inline void Set(TCapability aCapability1, TCapability aCapability2);
Make this set consist of two capabilities.
|
IMPORT_C void SetAllSupported();
Make this set consist of all capabilities supported by this OS version.
IMPORT_C void AddCapability(TCapability aCapability);
Add a single capability to the set. If the capability is not supported by this OS version then it is not added and the set is left unchanged.
|
IMPORT_C void RemoveCapability(TCapability aCapability);
Remove a single capability from the set, if it is present.
|
IMPORT_C void Union(const TCapabilitySet &aCapabilities);
Perform a union of this capability set with another. The result replaces the content of 'this'.
|
IMPORT_C void Intersection(const TCapabilitySet &aCapabilities);
Perform an intersection of this capability set with another. The result replaces the content of 'this'.
|
IMPORT_C void Remove(const TCapabilitySet &aCapabilities);
Remove a set of capabilities from this set.
|
IMPORT_C TBool HasCapability(TCapability aCapability) const;
Test if a single capability is present in the set. The capability ECapability_None is always treated as being present.
|
|
IMPORT_C TBool HasCapabilities(const TCapabilitySet &aCapabilities) const;
Test if all the capabilities in a given set are present in this set
|
|