examples/SFExamples/NotifierExample/Launchers/ExeLauncher_UIQ3/src/ExeLauncher_UIQ3View.cpp

00001 /*
00002 ============================================================================
00003  Name           : CExeLauncher_UIQ3View from ExeLauncher_UIQ3View.h
00004  Author   : Hamish Willee
00005  Version         :
00006  Copyright   : (C) Symbian 2007
00007  Description : CExeLauncher_UIQ3View implementation
00008 ============================================================================
00009 */
00010 
00011 #include <QikCommand.h>
00012 #include <ExeLauncher_UIQ3.rsg>
00013 #include <eiklabel.h> // CEikLabel
00014 
00015 #include "ExeLauncher_UIQ3AppUi.h"
00016 #include "ExeLauncher_UIQ3View.h"
00017 #include "ExeLauncher_UIQ3.hrh"
00018 #include "ExeLauncher_UIQ3Globals.h"
00019 
00020 
00021         
00028 CExeLauncher_UIQ3View* CExeLauncher_UIQ3View::NewLC(CQikAppUi& aAppUi)
00029         {
00030         CExeLauncher_UIQ3View* self = new(ELeave) CExeLauncher_UIQ3View(aAppUi);
00031         CleanupStack::PushL(self);
00032         self->ConstructL();
00033         return self;
00034         }
00035 
00047 CExeLauncher_UIQ3View::CExeLauncher_UIQ3View(CQikAppUi& aAppUi)
00048         : CQikViewBase(aAppUi, KNullViewId)
00049         {
00050         }
00051 
00055 CExeLauncher_UIQ3View::~CExeLauncher_UIQ3View()
00056         {
00057         }
00058 
00062 void CExeLauncher_UIQ3View::ConstructL()
00063         {
00064         // Calls ConstructL that initialises the standard values.
00065         // This should always be called in the concrete view implementations.
00066         CQikViewBase::ConstructL();
00067         }
00068 
00073 void CExeLauncher_UIQ3View::ViewConstructL()
00074         {
00075         // Loads information about the UI configurations this view supports
00076         // together with definition of each view.
00077         ViewConstructFromResourceL(R_UI_CONFIGURATIONS);
00078         }
00079 
00085 TVwsViewId CExeLauncher_UIQ3View::ViewId()const
00086         {
00087         return TVwsViewId(KUidExeLauncher_UIQ3App, KUidExeLauncher_UIQ3View);
00088         }
00089 
00090 /*
00091 Handles all commands in the view
00092 Called by the UI framework when a command has been issued.
00093 The command Ids are defined in the .hrh file.
00094 
00095 @param aCommand The command to be executed
00096 @see CQikViewBase::HandleCommandL
00097 */
00098 void CExeLauncher_UIQ3View::HandleCommandL(CQikCommand& aCommand)
00099         {
00100         switch(aCommand.Id())
00101                 {
00102                 // Just issue simple info messages to show that
00103                 // the commands have been selected
00104                 case EExeLauncher_UIQ3InfoPrint1Cmd:
00105                         break;
00106                 // Go back and exit command will be passed to the CQikViewBase to handle.
00107                 default:
00108                         CQikViewBase::HandleCommandL(aCommand);
00109                         break;
00110                 }
00111         }

Generated by  doxygen 1.6.2