#include <mw/aknlocationed.h>
class CAknLocationEditor : public CEikMfne |
Public Member Enumerations | |
---|---|
enum | TLocationContext { ELongitudeOnly, ELatitudeOnly } |
Public Member Functions | |
---|---|
CAknLocationEditor() | |
~CAknLocationEditor() | |
virtual IMPORT_C void | ConstructFromResourceL(TResourceReader &) |
void | CreateMfneFieldsL(const TPosition &) |
IMPORT_C HBufC * | DisplayableLocationL(const TPosition &, TLocationContext) |
IMPORT_C void | Get(TPosition &) |
void | HandleCenRepChangedL(TUint32, TInt) |
IMPORT_C CAknLocationEditor * | NewL(TPosition &, TLocationContext) |
virtual IMPORT_C TKeyResponse | OfferKeyEventL(const TKeyEvent &, TEventCode) |
virtual IMPORT_C void | PrepareForFocusLossL() |
IMPORT_C void | Set(const TPosition &) |
Protected Member Functions | |
---|---|
virtual IMPORT_C void * | CAknLocationEditor_ExtensionInterface(TUid) |
Inherited Attributes | |
---|---|
CCoeControl::iCoeEnv | |
CCoeControl::iPosition | |
CCoeControl::iSize | |
CEikBorderedControl::iBorder |
Inherited Enumerations | |
---|---|
CCoeControl:TZoomType | |
CEikMfne:TFeatureId | |
CEikMfne:TFingerSupportParams |
Editor for TPosition type; latitude and longitude editor
There exists two ways to construct CAknLocationEditor:
CAknLocationEditor *editor = CAknLocationEditor::NewL(pos, context);
Using resources:
CAknLocationEditor *editor = new (ELeave) CAknLocationEditor TResourceReader reader; iCoeEnv->CreateResourceReaderLC(reader,R_RES_ID_FOR_EDITOR); editor->ConstructFromResourceL(reader); editor->Set(pos); CleanupStack::PopAndDestroy();
LATITUDE_EDITOR { flags = ELocationEdFlagLatitude; latlongresourceid = R_EIK_LATITUDE_AND_LONGITUDE; };or:
LONGITUDE_EDITOR { flags = ELocationEdFlagLongitude; latlongresourceid = R_EIK_LATITUDE_AND_LONGITUDE; };
See also: TPosition
IMPORT_C void * | CAknLocationEditor_ExtensionInterface | ( | TUid | aInterface | ) | [protected, virtual] |
IMPORT_C void | ConstructFromResourceL | ( | TResourceReader & | aResourceReader | ) | [virtual] |
Reimplemented from CCoeControl::ConstructFromResourceL(TResourceReader &)
ConstructFromResourceL Constructs location editor using information from resource files
Parameter | Description |
---|---|
aResourceReader | resource reader |
IMPORT_C HBufC * | DisplayableLocationL | ( | const TPosition & | aValue, |
TLocationContext | aContext | |||
) | [static] |
DisplayableLocationL() Converts TPosition into displayable descriptor usable for listboxes
Parameter | Description |
---|---|
aValue | value of the location |
aContext | which part of the TPosition is used |
IMPORT_C CAknLocationEditor * | NewL | ( | TPosition & | aValue, |
TLocationContext | aContext | |||
) | [static] |
NewL() Creates location editor and initializes it's value to value determined by the aValue parameter.
Parameter | Description |
---|---|
aValue | Initial value for location editor. |
aContext | Which part of the TPosition is used for this location editor |
IMPORT_C TKeyResponse | OfferKeyEventL | ( | const TKeyEvent & | aKeyEvent, |
TEventCode | aType | |||
) | [virtual] |
Reimplemented from CEikMfne::OfferKeyEventL(const TKeyEvent &,TEventCode)
OfferKeyEventL() key event handling of location editor
IMPORT_C void | PrepareForFocusLossL | ( | ) | [virtual] |
Reimplemented from CEikMfne::PrepareForFocusLossL()
PrepareForFocusLossL() detects focus changes to validate editor contents