Nokia N97 SDK
Example Applications Guide

CAknExQueryTimeAndDurationListEventHandler Class Reference

#include <aknexquerytimeanddurationlisteventhandler.h>

Inheritance diagram for CAknExQueryTimeAndDurationListEventHandler:

CAknExQueryBaseListEventHandler List of all members.

Detailed Description

CAknExQueryTimeAndDurationListEventHandler class.

Definition at line 30 of file aknexquerytimeanddurationlisteventhandler.h.


Public Member Functions

  CAknExQueryTimeAndDurationListEventHandler (CAknExQueryContainer *aContainer)
virtual  ~CAknExQueryTimeAndDurationListEventHandler ()
void  HandleListBoxEventL (CEikListBox *aListBox, TListBoxEvent aEventType)

Protected Attributes

CAknExQueryContainer *  iContainer

Private Member Functions

void  HandleSelectedListItemL (TInt aCommand)


Constructor & Destructor Documentation

CAknExQueryTimeAndDurationListEventHandler::CAknExQueryTimeAndDurationListEventHandler (  CAknExQueryContainer *  aContainer  ) 
 

CAknExQueryTimeAndDurationListEventHandler Constructor.

Parameters:
aContainer  Pointer to Container class object.

Definition at line 31 of file aknexquerytimeanddurationlisteventhandler.cpp.

00033 : CAknExQueryBaseListEventHandler( aContainer )
00034     {
00035     }

CAknExQueryTimeAndDurationListEventHandler::~CAknExQueryTimeAndDurationListEventHandler (   )  [virtual]
 

~CAknExQueryTimeAndDurationListEventHandler Destructor.

Definition at line 44 of file aknexquerytimeanddurationlisteventhandler.cpp.

00045     {
00046     }


Member Function Documentation

void CAknExQueryTimeAndDurationListEventHandler::HandleSelectedListItemL (  TInt  aCommand  )  [private, virtual]
 

HandleSelectedListItemL From CAknExQueryBaseListEventHandler, HandlerSelectedListItem. Handles the event which list item selected.

Parameters:
aCommand  Selected item index

Reimplemented from CAknExQueryBaseListEventHandler.

Definition at line 52 of file aknexquerytimeanddurationlisteventhandler.cpp.

References CAknExQueryBaseListEventHandler::iContainer, and CAknExQueryContainer::ShowMultiLineTimeAndDurationLayoutL().

00054     {
00055     switch ( aCommand )
00056         {
00057         case EAknExQueryListBoxCmdData1:
00058            iContainer->ShowMultiLineTimeAndDurationLayoutL( 
00059                 R_AKNEXQUERY_MULTI_LINE_DATE_AND_DURATION_LAYOUT,
00060                 R_AKNEXQUERY_DATE_INITIAL_VALUE );
00061             break;
00062         case EAknExQueryListBoxCmdData2:
00063             iContainer->ShowMultiLineTimeAndDurationLayoutL( 
00064                 R_AKNEXQUERY_MULTI_LINE_TIME_AND_DURATION_LAYOUT,
00065                 R_AKNEXQUERY_TIME_INITIAL_VALUE );
00066             break;
00067         default:
00068             break;
00069         }
00070     }

void CAknExQueryBaseListEventHandler::HandleListBoxEventL (  CEikListBox *  aListBox,
TListBoxEvent  aEventType
)  [inherited]
 

HandleListBoxEventL From MEikListBoxObserver, Handle listbox event Handles the list box events. When list item is selected, HandleSelectedListItemL() is called.

Parameters:
aListBox  Pointer to ListBox object.
aEventType 

Definition at line 48 of file aknexquerybaselisteventhandler.cpp.

References CAknExQueryBaseListEventHandler::HandleSelectedListItemL().

Referenced by CAknExQueryContainer::PopoutListBoxL().

00051     {
00052     if ( ( aEventType == MEikListBoxObserver::EEventEnterKeyPressed ) ||
00053          ( aEventType == MEikListBoxObserver::EEventItemClicked ) )
00054         {
00055         HandleSelectedListItemL( aListBox->CurrentItemIndex() );
00056         }
00057     }


Member Data Documentation

CAknExQueryContainer* CAknExQueryBaseListEventHandler::iContainer [protected, inherited]
 

iContainer Does not own

Definition at line 79 of file aknexquerybaselisteventhandler.h.

Referenced by HandleSelectedListItemL().


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

© Nokia 2009

Back to top