S60 3rd Edition SDK for Symbian OS
Example Applications Guide

FindItemTestAppAppUi.h

00001 /*
00002 * ============================================================================
00003 *  Name        : CFindItemTestAppAppUi from FindItemTestAppAppUi.h
00004 *  Part of     : FindItemTestApp
00005 *  Interface   : 
00006 *  Description : Declares UI class for application.
00007 *  Version     : 
00008 *
00009 *  Copyright (c) 2002-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 #ifndef FINDITEMTESTAPPAPPUI_H
00017 #define FINDITEMTESTAPPAPPUI_H
00018 
00019 // INCLUDES
00020 #include <aknappui.h>
00021 #include <finditemengine.h>
00022 
00023 // FORWARD DECLARATIONS
00024 class CFindItemTestAppContainer;
00025 
00026 
00027 // CONSTANTS
00028 // None
00029 
00030 // CLASS DECLARATION
00031 
00032 /**
00033 * Application UI class.
00034 * Provides support for the following features:
00035 * - EIKON control architecture
00036 *
00037 *  @lib FindItemTestApp.exe
00038 *  @since Series S60 3.0
00039 */
00040 class CFindItemTestAppAppUi : public CAknAppUi
00041     {
00042     public: // Constructors and destructor
00043 
00044         /**
00045         * EPOC default constructor.
00046         */      
00047         void ConstructL();
00048 
00049         /**
00050         * Destructor.
00051         */      
00052         ~CFindItemTestAppAppUi();
00053         
00054     public: // New functions
00055 
00056     public: // Functions from base classes
00057 
00058     private:
00059         
00060                 // From MEikMenuObserver
00061         void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
00062 
00063     private:
00064                 /**
00065         * From CEikAppUi, takes care of command handling.
00066         * @param aCommand command to be handled
00067         */
00068         void HandleCommandL(TInt aCommand);
00069 
00070         /**
00071         * From CEikAppUi, handles key events.
00072         * @param aKeyEvent Event to handled.
00073         * @param aType Type of the key event. 
00074         * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). 
00075         */
00076         virtual TKeyResponse HandleKeyEventL(
00077                 const TKeyEvent& aKeyEvent,TEventCode aType);
00078         
00079                 void SearchAllItemsL();
00080                 void SearchItemL(CFindItemEngine::TFindItemSearchCase aTestCase);
00081         
00082     private: //Data
00083                 CFindItemTestAppContainer* iAppContainer; 
00084                 TBufC<256> iStrSomeText;
00085                 TBool iUsageStarted;
00086         };
00087 
00088 #endif  // FINDITEMTESTAPPAPPUI_H
00089 
00090 // End of File

© Nokia 2006

Back to top