TCapabilitySet Class Reference

class TCapabilitySet

Class representing an arbitrary set of capabilities.

This class can only contain capabilities supported by the current OS version.

Public Member Functions
TCapabilitySet()
TCapabilitySet(TCapability)
TCapabilitySet(TCapability, TCapability)
IMPORT_C voidAddCapability(TCapability)
IMPORT_C TBoolHasCapabilities(const TCapabilitySet &)
IMPORT_C TBoolHasCapability(TCapability)
IMPORT_C voidIntersection(const TCapabilitySet &)
TBool NotEmpty()
IMPORT_C voidRemove(const TCapabilitySet &)
IMPORT_C voidRemoveCapability(TCapability)
voidSet(TCapability)
voidSet(TCapability, TCapability)
IMPORT_C voidSetAllSupported()
IMPORT_C voidSetDisabled()
IMPORT_C voidSetEmpty()
IMPORT_C voidUnion(const TCapabilitySet &)
Private Attributes
TUint32 iCaps

Constructor & Destructor Documentation

TCapabilitySet()

TCapabilitySet()[inline]

Default constructor. This leaves the set in an undefned state.

TCapabilitySet(TCapability)

TCapabilitySet(TCapabilityaCapability)[inline]

Construct a set consisting of a single capability.

Parameters

TCapability aCapabilityThe single capability

TCapabilitySet(TCapability, TCapability)

IMPORT_CTCapabilitySet(TCapabilityaCapability1,
TCapabilityaCapability2
)

Parameters

TCapability aCapability1
TCapability aCapability2

Member Functions Documentation

AddCapability(TCapability)

IMPORT_C voidAddCapability(TCapabilityaCapability)

Parameters

TCapability aCapability

HasCapabilities(const TCapabilitySet &)

IMPORT_C TBoolHasCapabilities(const TCapabilitySet &aCapabilities)const

Parameters

const TCapabilitySet & aCapabilities

HasCapability(TCapability)

IMPORT_C TBoolHasCapability(TCapabilityaCapability)const

Parameters

TCapability aCapability

Intersection(const TCapabilitySet &)

IMPORT_C voidIntersection(const TCapabilitySet &aCapabilities)

Parameters

const TCapabilitySet & aCapabilities

NotEmpty()

TBool NotEmpty()const

Remove(const TCapabilitySet &)

IMPORT_C voidRemove(const TCapabilitySet &aCapabilities)

Parameters

const TCapabilitySet & aCapabilities

RemoveCapability(TCapability)

IMPORT_C voidRemoveCapability(TCapabilityaCapability)

Parameters

TCapability aCapability

Set(TCapability)

voidSet(TCapabilityaCapability)[inline]

Make this set consist of a single capability.

Parameters

TCapability aCapabilityThe single capability.

Set(TCapability, TCapability)

voidSet(TCapabilityaCapability1,
TCapabilityaCapability2
)[inline]

Make this set consist of two capabilities.

Parameters

TCapability aCapability1The first capability.
TCapability aCapability2The second capability.

SetAllSupported()

IMPORT_C voidSetAllSupported()

SetDisabled()

IMPORT_C voidSetDisabled()

Make this set consist of the capabilities which are disabled on this platform.

SetEmpty()

IMPORT_C voidSetEmpty()

Union(const TCapabilitySet &)

IMPORT_C voidUnion(const TCapabilitySet &aCapabilities)

Parameters

const TCapabilitySet & aCapabilities

Member Data Documentation

TUint32 iCaps

TUint32 iCaps[private]