securitydialogs/lockapp/inc/lockappappui.h
branchRCL_3
changeset 49 09b1ac925e3f
parent 47 63339781d179
child 50 03674e5abf46
equal deleted inserted replaced
47:63339781d179 49:09b1ac925e3f
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  LockApp Application UI class
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __LOCKAPP_APPUI_H__
       
    20 #define __LOCKAPP_APPUI_H__
       
    21 
       
    22 // INCLUDES
       
    23 #include <aknappui.h>
       
    24 #include "lockapp.hrh"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CLockAppAppView;
       
    28 class MLockAppStateControl;
       
    29 class CLockAppStateControl;
       
    30 class CLockAppServer;
       
    31 
       
    32 /**
       
    33  *  CLockAppApplication class is the central user interface class in Avkon.
       
    34  *  Owns the LockApp state control and the server component.
       
    35  *
       
    36  *  @lib    lockapp
       
    37  *  @since  5.0
       
    38  *  @author Joona Petrell
       
    39  *  @author Tamas Koteles
       
    40  */
       
    41 class CLockAppAppUi : public CAknAppUi
       
    42 	{
       
    43 	public:
       
    44 
       
    45 		/**
       
    46 		 * Second constructor that can fail (leave).
       
    47 		 */
       
    48 		void ConstructL( );
       
    49 
       
    50 		/**
       
    51 		 * C++ default constructor.
       
    52 		 */
       
    53 		CLockAppAppUi( );
       
    54 
       
    55 		/**
       
    56 		 * Destructor.
       
    57 		 */
       
    58 		~CLockAppAppUi( );
       
    59 
       
    60 	public:
       
    61 
       
    62 		/** 
       
    63 		 * @see CAknAppUi::HandleResourceChangeL(TInt aType) 
       
    64 		 */
       
    65 		void HandleResourceChangeL( TInt aType );
       
    66 
       
    67 	public:
       
    68 
       
    69 		/**
       
    70 		 * Access to main lock state control (used by the server).
       
    71 		 *
       
    72 		 * @return pointer to state control
       
    73 		 */
       
    74 		MLockAppStateControl* StateControl( );
       
    75 
       
    76 	protected:
       
    77 
       
    78 #ifdef __SAP_TERMINAL_CONTROL_FW
       
    79 
       
    80 		/**
       
    81 		 * From CEikAppUi, handles the TARM unlock message, other messages
       
    82 		 * are propagated to the superclass handler.
       
    83 		 * 
       
    84 		 * @param aClientHandleOfTargetWindowGroup The window group that the message was sent to.
       
    85 		 * @param aMessageUid The message UID.
       
    86 		 * @param aMessageParameters The message parameters
       
    87 		 * @return TMessageResponse EMessageHandled if the message was the TARM unlock message,
       
    88 		 * otherwise the return value from the superclass handler.
       
    89 		 */
       
    90 		MCoeMessageObserver::TMessageResponse HandleMessageL(
       
    91 				TUint32 aClientHandleOfTargetWindowGroup,
       
    92 				TUid aMessageUid,
       
    93 				const TDesC8& aMessageParameters );
       
    94 
       
    95 #endif // __SAP_TERMINAL_CONTROL_FW
       
    96 
       
    97 		/** 
       
    98 		 * @see CAknAppUi::HandleWsEventL(const TWsEvent& aEvent,CCoeControl* aDestination) 
       
    99 		 */
       
   100 		void HandleWsEventL( const TWsEvent& aEvent, CCoeControl* aDestination );
       
   101 
       
   102 	private:
       
   103 
       
   104 		/**
       
   105 		 * Main control of the LockApp.
       
   106 		 * Owned.
       
   107 		 */
       
   108 		CLockAppStateControl* iStateControl;
       
   109 
       
   110 		/**
       
   111 		 * Main server of the LockApp.
       
   112 		 * Own.
       
   113 		 */
       
   114 		CLockAppServer* iLockServer;
       
   115 	};
       
   116 
       
   117 #endif // __LOCKAPP_APPUI_H__