|
||
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(TCapability)
Add a single capability to the set. If the capability is not supported by this O...HasCapabilities(const TCapabilitySet &)const
Test if all the capabilities in a given set are present in this set HasCapability(TCapability)const
Test if a single capability is present in the set. The capability ECapability_No...Intersection(const TCapabilitySet &)
Perform an intersection of this capability set with another. The result replaces...Remove(const TCapabilitySet &)
Remove a set of capabilities from this set. RemoveCapability(TCapability)
Remove a single capability from the set, if it is present. Set(TCapability)
Make this set consist of a single capability. Set(TCapability,TCapability)
Make this set consist of two capabilities. SetAllSupported()
Make this set consist of all capabilities supported by this OS version. SetEmpty()
Make this set empty. I.e. Containing no capabilities. TCapabilitySet()
Default constructor. This leaves the set in an undefned state. TCapabilitySet(TCapability)
Construct a set consisting of a single capability. TCapabilitySet(TCapability,TCapability)
Construct a set consisting of two capabilities. Union(const TCapabilitySet &)
Perform a union of this capability set with another. The result replaces the con...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.
|
TCapabilitySet::SetAllSupported()
Make this set consist of all capabilities supported by this OS version. 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
|
|