exampleapps/alfexcalendar/inc/alfexcalendarappui.h
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c)  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:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __ALFEXCALENDAR_APPUI_H__
       
    21 #define __ALFEXCALENDAR_APPUI_H__
       
    22 
       
    23 #include <aknappui.h>
       
    24 
       
    25 
       
    26 // Forward reference
       
    27 class CAlfEnv;
       
    28 class CAlfExCalendarEngine;
       
    29 
       
    30 /*! 
       
    31   @class CAlfExCalendarAppUi
       
    32   
       
    33   @discussion An instance of class CAlfExCalendarAppUi is the UserInterface
       
    34   part of the AVKON application framework for the alfexcalendar application
       
    35   */
       
    36 class CAlfExCalendarAppUi : public CAknAppUi
       
    37     {
       
    38 public:
       
    39 /*!
       
    40   @function ConstructL
       
    41   
       
    42   @discussion Perform the second phase construction of a CAlfExCalendarAppUi object
       
    43   this needs to be public due to the way the framework constructs the AppUi 
       
    44   */
       
    45     void ConstructL();
       
    46 
       
    47 /*!
       
    48   @function CAlfExCalendarAppUi
       
    49   
       
    50   @discussion Perform the first phase of two phase construction.
       
    51   This needs to be public due to the way the framework constructs the AppUi 
       
    52   */
       
    53     CAlfExCalendarAppUi();
       
    54 
       
    55 
       
    56 /*!
       
    57   @function ~CAlfExCalendarAppUi
       
    58   
       
    59   @discussion Destroy the object and release all memory objects
       
    60   */
       
    61     ~CAlfExCalendarAppUi();
       
    62 
       
    63 
       
    64 public: // from CAknAppUi
       
    65     /*!
       
    66       @function HandleCommandL
       
    67       
       
    68       @discussion Handle user menu selections
       
    69       @param aCommand the enumerated code for the option selected
       
    70       */
       
    71     void HandleCommandL(TInt aCommand);
       
    72 
       
    73     /*!
       
    74       @function DynInitMenuPaneL
       
    75       
       
    76       @discussion dynamically initializes the options menu
       
    77       @param aResourceId resource id of menu
       
    78       @param aMenuPane MenuPane which contains list of options
       
    79       */
       
    80     void DynInitMenuPaneL( 
       
    81             TInt aResourceId,
       
    82             CEikMenuPane* aMenuPane );
       
    83 
       
    84     /*!
       
    85       @function HandleResourceChangeL
       
    86       
       
    87       @discussion handles resolution and orientation changes properly
       
    88       @param aType typs of resource change
       
    89       */
       
    90     virtual void HandleResourceChangeL( TInt aType );
       
    91 
       
    92     /*
       
    93      * Handles window server events to the application. Performs resource 
       
    94      * loading/unloading when application goes changes to foreground/background.
       
    95      * All events are forwarded to base class implementation.
       
    96      * 
       
    97      * @param aEvent Event ID. Handles KAknFullOrPartialForegroundLost 
       
    98      * and KAknFullOrPartialForegroundGained events. 
       
    99      * 
       
   100      * @param aDestination Not used in this function
       
   101      */
       
   102     void HandleWsEventL(const TWsEvent& aEvent, CCoeControl* aDestination);
       
   103     
       
   104 private:
       
   105 
       
   106     // Hitchcock toolkit environment
       
   107     CAlfEnv* iEnv;
       
   108 
       
   109     // Dummy calendar engine
       
   110     CAlfExCalendarEngine* iCalendarEngine;
       
   111     
       
   112     };
       
   113 
       
   114 
       
   115 #endif // __ALFEXCALENDAR_APPUI_H__