MAknsControlContext Class Reference
#include
<mw/AknsControlContext.h>
Link against: AknSkins.lib
class MAknsControlContext |
Detailed Description
Interface that provides context specific skin parameters. This interface is used by AknsDrawUtils to query context specific parameters, such as background override. Application should instantiate a class that implements this interface and provide pointer to it using MObjectProvider::MopSupplyObject in the appropriate control.
This is a public class with exported functions. The class is not intended for user derivation - concrete classes implementing the interface are provided by the library. See CAknsBasicBackgroundControlContext and CAknsListBoxBackgroundControlContext for further details.
Member Function Documentation
DECLARE_TYPE_ID ( 0x10005a29 )
DECLARE_TYPE_ID | ( | 0x10005a29 | | ) | [inline] |
Type ID declaration. Type ID is used to make it possible to retrieve control context through MObjectProvider::MopSupplyObject interface. Destructor. Destructor is provided only to enable deletion using base class pointer. Caller should never delete control context retrieved through MObjectProvider interface.
IsCompatibleWithType ( const TAknsControlContextType )
Determines whether this control context is compatible with the given derived type.
Parameters |
---|
aType | Type of the derived control context class (one of the values in TAknsControlContextType). |
- Return Value
- ETrue if this control context instance is compatible with the given type (i.e. can be casted to the corresponding concrete class). EFalse otherwise.
Reserved2 ( )
TInt
| Reserved2 | ( | ) | [protected, virtual] |
SupplyMopObject ( TTypeUid, MAknsControlContext * )
Returns type UID pointer that can be used in MopSupplyObject.
Parameters |
---|
aId | Type UID, should be the same that was given as aId parameter of MopSupplyObject. |
aContext | Pointer to an MAknsControlContext instance. |
- Return Value
- Type UID pointer containing aContext, or NULL type UID pointer if given type UID does not match MAknsControlContext or aContext is NULL.
SupplySkinObject ( TAknsCCObject )
Provides context specific object.
Parameters |
---|
aObject | Type of the object to be retrieved. Possible values are defined in TAknsCCObject enumeration. |
- Return Value
- Pointer to object as defined in TAknsCCObject for that specific aObject parameter value. For unknown or unhandled values NULL must be returned.
SupplySkinParameter ( TAknsCCParameter )
Provides context specific integer parameter.
Parameters |
---|
aParam | Type of the parameter to be retrieved. Possible values are defined in TAknsCCParameter enumeration. |
- Return Value
- Integer value as defined in TAknsCCParameter for the particular parameter. For unknown or unhandled values zero must be returned.
UpdateContext ( )
TInt
| UpdateContext | ( | ) | [virtual] |
Updates the control context, if necessary. This method is called by the framework before drawing with the context.
Base class implementation returns 0.
- Return Value
- Return value reserved for future use. Currently returns 0.