|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : aknexquerybaselisteventhandler.cpp 00004 * Part of : Query example 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2004 - 2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 // INCLUDE FILES 00017 #include <eikclb.h> // For listbox 00018 #include "AknExQueryBaseListEventHandler.h" 00019 00020 // ================= MEMBER FUNCTIONS ========================================= 00021 00022 // ---------------------------------------------------------------------------- 00023 // CAknExQueryBaseListEventHandler::CAknExQueryBaseListEventHandler() 00024 // Default constructor. 00025 // ---------------------------------------------------------------------------- 00026 // 00027 CAknExQueryBaseListEventHandler::CAknExQueryBaseListEventHandler( 00028 CAknExQueryContainer* aContainer ) 00029 : iContainer( aContainer ) 00030 { 00031 } 00032 00033 // ---------------------------------------------------------------------------- 00034 // CAknExQueryBaseListEventHandler::~CAknExQueryBaseListEventHandler() 00035 // Destructor. 00036 // ---------------------------------------------------------------------------- 00037 // 00038 CAknExQueryBaseListEventHandler::~CAknExQueryBaseListEventHandler() 00039 { 00040 } 00041 00042 // ---------------------------------------------------------------------------- 00043 // CAknExQueryBaseListEventHandler::HandleListBoxEventL( 00044 // CEikListBox* TListBoxEvent, 00045 // TListBoxEvent aEventType ) 00046 // ---------------------------------------------------------------------------- 00047 // 00048 void CAknExQueryBaseListEventHandler::HandleListBoxEventL( 00049 CEikListBox* aListBox, 00050 TListBoxEvent aEventType ) 00051 { 00052 if ( ( aEventType == MEikListBoxObserver::EEventEnterKeyPressed ) || 00053 ( aEventType == MEikListBoxObserver::EEventItemClicked ) ) 00054 { 00055 HandleSelectedListItemL( aListBox->CurrentItemIndex() ); 00056 } 00057 } 00058 00059 // End of File
|
© Nokia 2009 |