Nokia N97 SDK
Example Applications Guide

aknexquerytimeanddurationlisteventhandler.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : aknexquerytimeanddurationlisteventhandler.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 "AknExQuery.hrh"
00018 #include "AknExQueryContainer.h"
00019 #include "AknExQueryTimeAndDurationListEventHandler.h"
00020 #include <AknExQuery.rsg>
00021 
00022 // ================= MEMBER FUNCTIONS =========================================
00023 
00024 // ----------------------------------------------------------------------------
00025 // CAknExQueryTimeAndDurationListEventHandler::
00026 //     CAknExQueryTimeAndDurationListEventHandler()
00027 // Default constructor.
00028 // ----------------------------------------------------------------------------
00029 //
00030 CAknExQueryTimeAndDurationListEventHandler::
00031                                     CAknExQueryTimeAndDurationListEventHandler( 
00032                                             CAknExQueryContainer* aContainer )
00033 : CAknExQueryBaseListEventHandler( aContainer )
00034     {
00035     }
00036 
00037 // ----------------------------------------------------------------------------
00038 // CAknExQueryTimeAndDurationListEventHandler::
00039 //     ~CAknExQueryTimeAndDurationListEventHandler()
00040 // Destructor.
00041 // ----------------------------------------------------------------------------
00042 //
00043 CAknExQueryTimeAndDurationListEventHandler::
00044     ~CAknExQueryTimeAndDurationListEventHandler()
00045     {
00046     }
00047 
00048 // ----------------------------------------------------------------------------
00049 // CAknExQueryTimeAndDurationListEventHandler::HandleSelectedListItemL()
00050 // ----------------------------------------------------------------------------
00051 //
00052 void CAknExQueryTimeAndDurationListEventHandler::HandleSelectedListItemL( 
00053                                                                 TInt aCommand )
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     }
00071 
00072 // End of File

© Nokia 2009

Back to top