Nokia N97 SDK
Example Applications Guide

CBrCtlSampleAppSoftkeysObserver Class Reference

#include <BrCtlSampleAppSoftKeysObserver.h>

Inheritance diagram for CBrCtlSampleAppSoftkeysObserver:

List of all members.

Detailed Description

CBrCtlSampleAppSoftkeysObserver class. This class inherits from the MBrCtlSoftkeysObserver interface that handles requests from the Browser Control to change the softkeys.

Definition at line 34 of file BrCtlSampleAppSoftKeysObserver.h.


Public Member Functions

  ~CBrCtlSampleAppSoftkeysObserver ()
void  UpdateSoftkeyL (TBrCtlKeySoftkey, const TDesC &, TUint32, TBrCtlSoftkeyChangeReason)

Static Public Member Functions

static CBrCtlSampleAppSoftkeysObserver *  NewL (CBrCtlSampleAppContainer *aContainer)

Private Member Functions

void  ConstructL (CBrCtlSampleAppContainer *aContainer)

Private Attributes

CBrCtlSampleAppContainer *  iContainer


Constructor & Destructor Documentation

CBrCtlSampleAppSoftkeysObserver::~CBrCtlSampleAppSoftkeysObserver (   ) 
 

Destructor.

Definition at line 66 of file BrCtlSampleAppSoftkeysObserver.cpp.

00067     {
00068     }


Member Function Documentation

CBrCtlSampleAppSoftkeysObserver * CBrCtlSampleAppSoftkeysObserver::NewL (  CBrCtlSampleAppContainer *  aContainer  )  [static]
 

Two-phased constructor.

Definition at line 74 of file BrCtlSampleAppSoftkeysObserver.cpp.

References ConstructL().

Referenced by CBrCtlSampleAppContainer::ConstructL().

00075     {
00076     CBrCtlSampleAppSoftkeysObserver* self = new(ELeave)CBrCtlSampleAppSoftkeysObserver;
00077     CleanupStack::PushL(self);
00078     self->ConstructL(aContainer);
00079     CleanupStack::Pop();
00080     return self;
00081     }

void CBrCtlSampleAppSoftkeysObserver::UpdateSoftkeyL (  TBrCtlKeySoftkey  ,
const TDesC &  ,
TUint32  ,
TBrCtlSoftkeyChangeReason 
) 
 

Browser Control requests to update a softkey

Since:
2.8
Parameters:
aKeySoftkey  Update the left softkey or the right softkey
aLabel  The label associated with the softkey update
aCommandId  The command to use if the softkey is selected by the user
aBrCtlSoftkeyChangeReason  The reason for the softkey change
Returns:
void

Definition at line 29 of file BrCtlSampleAppSoftkeysObserver.cpp.

References CBrCtlSampleAppContainer::BrCtlInterface(), and iContainer.

00033     {
00034     CBrCtlInterface* brCtl = iContainer->BrCtlInterface();
00035 
00036     TBrCtlDefs::TBrCtlElementType type = brCtl->FocusedElementType();
00037 
00038     CEikButtonGroupContainer* current = CEikButtonGroupContainer::Current();
00039     switch (type)
00040         {
00041         case TBrCtlDefs::EElementActivatedInputBox:
00042             current->SetCommandSetL( R_INPUT_ELEMENT_BUTTONS );
00043             break;
00044         
00045         default:
00046             current->SetCommandSetL( R_BROWSER_DEFAULT_BUTTONS );
00047             break;
00048         }
00049     current->DrawNow();
00050     }

void CBrCtlSampleAppSoftkeysObserver::ConstructL (  CBrCtlSampleAppContainer *  aContainer  )  [private]
 

By default Symbian 2nd phase constructor is private.

Definition at line 57 of file BrCtlSampleAppSoftkeysObserver.cpp.

References iContainer.

Referenced by NewL().

00058     {
00059     iContainer = aContainer;
00060     }


The documentation for this class was generated from the following files:

© Nokia 2009

Back to top