eventsui/eventshandlerui/eventshandlerapp/inc/evthandlerappui.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     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:  Application class for Events Handler Application UI.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_EVTHANDLERAPPUI_H
       
    20 #define C_EVTHANDLERAPPUI_H
       
    21 
       
    22 // SYSTEM INCLUDES
       
    23 #include <eikapp.h>
       
    24 #include <eikdoc.h>
       
    25 #include <e32std.h>
       
    26 #include <coeccntx.h>
       
    27 #include <aknViewAppUi.h>
       
    28 
       
    29 #include "evtdlglauncher.h"	// Dialog Launcher
       
    30 #include "evtdefs.h"
       
    31 #include "evtrequesttype.h"
       
    32 
       
    33 // FORWARD DECLARATIONS
       
    34 class CEvtRequest;	
       
    35 class CEvtMgmtUiEngine;
       
    36 	
       
    37 /**
       
    38  *  Events Handler Application's App UI class. This class extents the CAknAppUi
       
    39  *  class for Events Handler Application.
       
    40  *
       
    41  *  @since S60 v5.0
       
    42  */
       
    43 class CEvtHandlerAppUi : public CAknAppUi,
       
    44                  public MEvtDlgObserver
       
    45     {
       
    46 public:   
       
    47 	/**
       
    48 	 * Second phase of the two phase constructor
       
    49 	 *
       
    50 	 * Called by the Application framework
       
    51 	 */ 
       
    52     void ConstructL();
       
    53   
       
    54   	/**
       
    55   	 * Virtual destructor
       
    56   	 */
       
    57     virtual ~CEvtHandlerAppUi();   
       
    58   
       
    59 public: // Inherited from Base classes
       
    60 
       
    61   	/**
       
    62   	 * Inherited from CAknViewAppUi
       
    63   	 */
       
    64     void HandleCommandL(TInt aCommand);
       
    65         
       
    66     /**
       
    67      * Inherited from MEvtDlgObserver
       
    68      */
       
    69     void NotifyDlgDismissedL( );
       
    70                        
       
    71 private: // Inherited from Base classes
       
    72 
       
    73   	/**
       
    74   	 * Inherited from CAknViewAppUi
       
    75   	 */
       
    76     virtual TKeyResponse HandleKeyEventL( const TKeyEvent& aKeyEvent,
       
    77                                                 TEventCode aType );
       
    78                                                 
       
    79     /**
       
    80      * Inherited from EEikAppUi
       
    81      */  
       
    82 	TBool ProcessCommandParametersL( CApaCommandLine &aCommandLine );
       
    83 	
       
    84     /**
       
    85      * Inherited from EEikAppUi
       
    86      */  
       
    87 	void HandleWsEventL(const TWsEvent &aEvent, CCoeControl *aDestination);
       
    88 	
       
    89     /**
       
    90      * Inherited from EEikAppUi
       
    91      */                                                
       
    92     void ProcessMessageL( TUid aUid, 
       
    93                           const TDesC8& aParams );   
       
    94 	
       
    95     /**
       
    96      * Method to handle the Next Message in the Queue
       
    97      */                                 
       
    98 	void HandleNextMessageL( );
       
    99 	
       
   100     /**
       
   101      * Method to handle the Recieved message
       
   102      */                                           
       
   103 	void HandleRecievedMessageL( const TLbtTriggerId &  aTriggerId, 
       
   104                       TEvtRequestType aReqestType );
       
   105                            
       
   106 private:
       
   107     /**
       
   108      * Events Engine
       
   109      */
       
   110     CEvtMgmtUiEngine* iEngine;
       
   111     
       
   112 	/**
       
   113 	 * Generic Dialog Launcher for Events
       
   114 	 */       
       
   115     CEvtDlgLauncher*    		iDlg;
       
   116     
       
   117 	/**
       
   118 	 * Stack which maitains the requests for Events
       
   119 	 */       
       
   120     RPointerArray<CEvtRequest>   iEventQue;
       
   121     
       
   122 	/**
       
   123 	 * Flag to maintain the Frameworks's Cancel method.
       
   124 	 */       
       
   125     TBool iFlag;
       
   126     };
       
   127 
       
   128 #endif  // C_EVTHANDLERAPPUI_H
       
   129 
       
   130 // End of File