exampleapps/alfexanalogdialer/inc/alfexanalogdialerappui.h
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2008-2008 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 UI class for Analog Dialer example application, which
       
    15 *                implements rotating dial pad.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef ANALOGDIALER_APPLICATION_H
       
    22 #define ANALOGDIALER_APPLICATION_H
       
    23 
       
    24 #include <aknappui.h>
       
    25 #include <alf/alfenv.h>
       
    26 #include <alf/alfdisplay.h>
       
    27 
       
    28 // Forward reference
       
    29 //class CAlfExAnalogDialerControl
       
    30 
       
    31 class CAlfDeckLayout;
       
    32 /**
       
    33  *  Application UI class for Analog Dialer
       
    34  *
       
    35  *  @since S60 5.0
       
    36  */
       
    37 class CAlfExAnalogDialerAppUi : public CAknAppUi
       
    38     {
       
    39 public:
       
    40 
       
    41     
       
    42     /* Constructors and destructor. */
       
    43 
       
    44     /**
       
    45      * Constructor of CAlfExAnalogDialerAppUi
       
    46      * This needs to be public due to the way the framework constructs the AppUi 
       
    47      *
       
    48      * @since S60 5.0
       
    49      */
       
    50     CAlfExAnalogDialerAppUi();
       
    51 
       
    52     /**
       
    53      * Second phase constructor of CAlfExAnalogDialerAppUi
       
    54      * This needs to be public due to the way the framework constructs the AppUi 
       
    55      *
       
    56      * @since S60 5.0
       
    57      */
       
    58     void ConstructL();
       
    59 
       
    60 
       
    61     /**
       
    62      * Destructor of CAlfExAnalogDialerAppUi
       
    63      * Destroy the object and release all memory objects
       
    64      *
       
    65      * @since S60 5.0
       
    66      */
       
    67     virtual ~CAlfExAnalogDialerAppUi();
       
    68 
       
    69 
       
    70     /* Methods. */
       
    71 
       
    72 // from base class CAknAppUi
       
    73 
       
    74     /**
       
    75      * From CAknAppUi
       
    76      * Receives command from framework
       
    77      *
       
    78      * @param aId system or application command Id 
       
    79      */
       
    80     void HandleCommandL(TInt aCommand);
       
    81 
       
    82     /**
       
    83      * From CAknAppUi
       
    84      * Handles a change to switch in display orientation.
       
    85      * This function calls CAknAppUi::HandleResourceChangeL().
       
    86      *
       
    87      * @param aType The type of resources that have changed.
       
    88      */
       
    89     void HandleResourceChangeL(TInt aType);
       
    90     
       
    91     /** 
       
    92      * From CAknAppUi
       
    93      * Handle system events. Release resources during FG->BG
       
    94      * transition, and restore resource during BG->FG transitions.
       
    95      * This is not mandatory, but reduces memory consumption of the 
       
    96      * application when it is in the background.
       
    97      * @param aEvent event from framework
       
    98      * @param aDestination a Symbian OS CCoeControl, for which event occurre
       
    99      */		
       
   100     void HandleWsEventL(const TWsEvent& aEvent,
       
   101 	                    CCoeControl*    aDestination);
       
   102 
       
   103 
       
   104 private:
       
   105 
       
   106     /**
       
   107      * Pointer to ALF Environment
       
   108      * Own.  
       
   109      */
       
   110     CAlfEnv* iEnv;
       
   111     
       
   112     };
       
   113 
       
   114 
       
   115 #endif // ANALOGDIALER_APPUI_H
       
   116