TCapabilitySet Class Reference
Detailed Description
Class representing an arbitrary set of capabilities.
This class can only contain capabilities supported by the current OS version.
Constructor & Destructor Documentation
TCapabilitySet ( )
Default constructor. This leaves the set in an undefned state.
TCapabilitySet ( TCapability )
Construct a set consisting of a single capability.
Parameter | Description | aCapability | The single capability |
TCapabilitySet ( TCapability, TCapability )
Construct a set consisting of two capabilities.
Parameter | Description | aCapability1 | The first capability. |
aCapability2 | The second capability. |
Member Function Documentation
AddCapability ( TCapability )
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.
See also: TCapabilitySet::SetAllSupported()
Parameter | Description | aCapability | Capability to add. |
HasCapabilities ( const TCapabilitySet & )
Test if all the capabilities in a given set are present in this set
Parameter | Description | aCapabilities | The capability set to test |
Returns: A non-zero value if all the capabilities are present, zero otherwise.
HasCapability ( TCapability )
Test if a single capability is present in the set. The capability ECapability_None is always treated as being present.
Parameter | Description | aCapability | The capability to test |
Returns: 1 if the capability is present, 0 if it is not.
Intersection ( const TCapabilitySet & )
Perform an intersection of this capability set with another. The result replaces the content of 'this'.
Parameter | Description | aCapabilities | A capability set |
Remove ( const TCapabilitySet & )
Remove a set of capabilities from this set.
Parameter | Description | aCapabilities | The set of capabilities to remove |
RemoveCapability ( TCapability )
Remove a single capability from the set, if it is present.
Parameter | Description | aCapability | Capability to remove. |
Set ( TCapability )
Make this set consist of a single capability.
Parameter | Description | aCapability | The single capability. |
Set ( TCapability, TCapability )
Make this set consist of two capabilities.
Parameter | Description | aCapability1 | The first capability. |
aCapability2 | The second capability. |
SetAllSupported ( )
IMPORT_C void | SetAllSupported | ( | ) | |
Make this set consist of all capabilities supported by this OS version.
SetDisabled ( )
IMPORT_C void | SetDisabled | ( | ) | |
Make this set consist of the capabilities which are disabled on this platform.
SetEmpty ( )
Make this set empty. I.e. Containing no capabilities.
Union ( const TCapabilitySet & )
Perform a union of this capability set with another. The result replaces the content of 'this'.
Parameter | Description | aCapabilities | A cpability set |