S60 3rd Edition SDK for Symbian OS
Example Applications Guide

MessagingAppui.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : MessagingAppui.h
00004 *  Part of     : Messaging
00005 *  Interface   : 
00006 *  Description : 
00007 *  Version     : 
00008 *
00009 *  Copyright (c) 2005-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 MESSAGINGAPPUI_H
00017 #define MESSAGINGAPPUI_H
00018 
00019 // INCLUDES
00020 #include <aknappui.h>
00021 
00022 // FORWARD DECLARATIONS
00023 class CMessagingContainer;
00024 class CSendUi;
00025 
00026 
00027 // CLASS DECLARATION
00028 
00029 /**
00030 * Application UI class.
00031 * Provides support for the following features:
00032 * - EIKON control architecture
00033 * 
00034 */
00035 class CMessagingAppUi : public CAknAppUi
00036     {
00037     public: // Constructors and destructor
00038         /**
00039         * Symbian default constructor.
00040         */      
00041         void ConstructL();
00042 
00043         /**
00044         * Destructor.
00045         */      
00046         ~CMessagingAppUi();
00047         
00048     public: // New functions
00049     
00050     public: // Functions from base classes
00051     
00052         /**
00053         * HandleResourceChangeL()
00054         * Called by framework when layout is changed.
00055         * @param aType the type of resources that have changed
00056         */
00057                 void HandleResourceChangeL( TInt aType );
00058 
00059     private:
00060         // From MEikMenuObserver
00061         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
00062         
00063         /**
00064         * CreateAndSendMessageL()
00065         * Launches a message editor using CSendUi 
00066         * @param aServiceUid the type of message that will be created
00067         */
00068                 void CreateAndSendMessageL( const TUid aServiceUid );
00069                                 
00070     private:
00071         /**
00072         * From CEikAppUi, takes care of command handling.
00073         * @param aCommand command to be handled
00074         */
00075         void HandleCommandL( TInt aCommand );
00076 
00077         /**
00078         * From CEikAppUi, handles key events.
00079         * @param aKeyEvent Event to handled.
00080         * @param aType Type of the key event. 
00081         * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). 
00082         */
00083         virtual TKeyResponse HandleKeyEventL( const TKeyEvent& aKeyEvent,
00084             TEventCode aType );
00085 
00086     private: //Data     
00087     
00088         /**
00089         * Container object
00090         */
00091        CMessagingContainer* iAppContainer; 
00092         
00093         /**
00094         * SendUI object
00095         */
00096        CSendUi* iSendUi;
00097        
00098     };
00099 
00100 #endif
00101 
00102 // End of File

© Nokia 2006

Back to top