00001 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). 00002 // All rights reserved. 00003 // This component and the accompanying materials are made available 00004 // under the terms of "Eclipse Public License v1.0" 00005 // which accompanies this distribution, and is available 00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html". 00007 // 00008 // Initial Contributors: 00009 // Nokia Corporation - initial contribution. 00010 // 00011 // Contributors: 00012 // 00013 // Description: 00014 // 00015 00016 #include "ClockExample.h" 00017 00018 // Second phase constructor of the application UI class. 00019 // It creates and owns a single view. 00020 void CExampleAppUi::ConstructL() 00021 { 00022 BaseConstructL(); 00023 iAppView = CExampleAppView::NewL(ClientRect()); 00024 } 00025 00026 // The application UI class owns one view, and is responsible 00027 // for destroying it. 00028 CExampleAppUi::~CExampleAppUi() 00029 { 00030 delete iAppView; 00031 } 00032 00033 // Called by the UI framework when a command has been issued. 00034 void CExampleAppUi::HandleCommandL( TInt aCommand ) 00035 { 00036 00037 switch (aCommand) 00038 { 00039 // Digital clock commands 00040 case ETestDo0: 00041 case ETestDo1: 00042 case ETestDo2: 00043 case ETestDo3: 00044 case ETestDo4: 00045 case ETestDo5: 00046 case ETestDo6: 00047 case ETestDo7: 00048 case ETestDo8: 00049 case ETestDo9: 00050 case ETestDoA: 00051 case ETestDoB: 00052 case ETestDoC: 00053 case ETestDoD: 00054 case ETestDoE: 00055 case ETestDoF: 00056 iAppView->DoExperimentL( aCommand ); 00057 break; 00058 00059 // Analogue clock commands 00060 case ETestDo10: 00061 case ETestDo11: 00062 case ETestDo12: 00063 case ETestDo13: 00064 case ETestDo14: 00065 case ETestDo15: 00066 case ETestDo16: 00067 case ETestDo17: 00068 case ETestDo18: 00069 case ETestDo19: 00070 case ETestDo1A: 00071 case ETestDo1B: 00072 case ETestDo1C: 00073 case ETestDo1D: 00074 case ETestDo1E: 00075 case ETestDo1F: 00076 iAppView->DoExperimentL( aCommand ); 00077 break; 00078 00079 case EEikCmdExit: 00080 Exit(); 00081 break; 00082 } 00083 00084 } 00085
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.