#include <e32cmn.h>
| class TCapabilitySet |
| Public Member Functions | |
|---|---|
| TCapabilitySet() | |
| TCapabilitySet(TCapability) | |
| TCapabilitySet(TCapability, TCapability) | |
| IMPORT_C void | AddCapability(TCapability) |
| IMPORT_C TBool | HasCapabilities(const TCapabilitySet &) |
| IMPORT_C TBool | HasCapability(TCapability) |
| IMPORT_C void | Intersection(const TCapabilitySet &) |
| TBool | NotEmpty() |
| IMPORT_C void | Remove(const TCapabilitySet &) |
| IMPORT_C void | RemoveCapability(TCapability) |
| void | Set(TCapability) |
| void | Set(TCapability, TCapability) |
| IMPORT_C void | SetAllSupported() |
| IMPORT_C void | SetDisabled() |
| IMPORT_C void | SetEmpty() |
| IMPORT_C void | Union(const TCapabilitySet &) |
Class representing an arbitrary set of capabilities.
This class can only contain capabilities supported by the current OS version.
| TCapabilitySet | ( | ) | [inline] |
Default constructor. This leaves the set in an undefned state.
| TCapabilitySet | ( | TCapability | aCapability | ) | [inline] |
Construct a set consisting of a single capability.
| Parameters | |
|---|---|
| aCapability | The single capability |
| IMPORT_C | TCapabilitySet | ( | TCapability | aCapability1, |
| TCapability | aCapability2 | |||
| ) | ||||
Construct a set consisting of two capabilities.
| Parameters | |
|---|---|
| aCapability1 | The first capability. |
| aCapability2 | The second capability. |
| 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.
See also: TCapabilitySet::SetAllSupported()
| Parameters | |
|---|---|
| aCapability | Capability to add. |
| IMPORT_C TBool | HasCapabilities | ( | const TCapabilitySet & | aCapabilities | ) | const |
Test if all the capabilities in a given set are present in this set
| Parameters | |
|---|---|
| aCapabilities | The capability set to test |
| 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.
| Parameters | |
|---|---|
| aCapability | The capability to test |
| IMPORT_C void | Intersection | ( | const TCapabilitySet & | aCapabilities | ) |
Perform an intersection of this capability set with another. The result replaces the content of 'this'.
| Parameters | |
|---|---|
| aCapabilities | A capability set |
| TBool | NotEmpty | ( | ) | const |
| IMPORT_C void | Remove | ( | const TCapabilitySet & | aCapabilities | ) |
Remove a set of capabilities from this set.
| Parameters | |
|---|---|
| aCapabilities | The set of capabilities to remove |
| IMPORT_C void | RemoveCapability | ( | TCapability | aCapability | ) |
Remove a single capability from the set, if it is present.
| Parameters | |
|---|---|
| aCapability | Capability to remove. |
| void | Set | ( | TCapability | aCapability | ) | [inline] |
Make this set consist of a single capability.
| Parameters | |
|---|---|
| aCapability | The single capability. |
| void | Set | ( | TCapability | aCapability1, |
| TCapability | aCapability2 | |||
| ) | [inline] | |||
Make this set consist of two capabilities.
| Parameters | |
|---|---|
| aCapability1 | The first capability. |
| aCapability2 | The second capability. |
| IMPORT_C void | SetAllSupported | ( | ) |
Make this set consist of all capabilities supported by this OS version.
| IMPORT_C void | SetDisabled | ( | ) |
Make this set consist of the capabilities which are disabled on this platform.
| IMPORT_C void | Union | ( | const TCapabilitySet & | aCapabilities | ) |
Perform a union of this capability set with another. The result replaces the content of 'this'.
| Parameters | |
|---|---|
| aCapabilities | A cpability set |