calendarui/application/inc/CalenAppUi.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     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:   Calendar Application UI. Delegates responsibilities to 
       
    15 *                Calendar Controller
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CALENAPPUI_H
       
    22 #define CALENAPPUI_H
       
    23 
       
    24 // Include files
       
    25 #include <aknViewAppUi.h>           // CAknViewAppUi
       
    26 
       
    27 // Forward Declarations
       
    28 class CCalenController;             // Calendar Controller
       
    29 
       
    30 /**
       
    31 * CCalenAppUi Class Definition
       
    32 * AppUi class for Calendar application.  Creates the Calendar controller
       
    33 * and passes ownership to CCalenDocument.  Passes framework calls through
       
    34 * to the Calendar Controller.
       
    35 */
       
    36 NONSHARABLE_CLASS( CCalenAppUi ) : public CAknViewAppUi
       
    37     {
       
    38     public:
       
    39         /**
       
    40         * Constructor
       
    41         * C++ default constructor
       
    42         */
       
    43         CCalenAppUi();
       
    44         
       
    45         /**
       
    46         * ConstructL
       
    47         * Second phase construction
       
    48         */
       
    49         void ConstructL();
       
    50         
       
    51         /**
       
    52         * Destructor
       
    53         * Frees all resources used by this class
       
    54         */          
       
    55         virtual ~CCalenAppUi();
       
    56 
       
    57     public:
       
    58         /**
       
    59         * From CEikAppUi
       
    60         * Handle any commands not handled directly
       
    61         * by the views or controller
       
    62         * @param aCommand command to be handled
       
    63         */
       
    64         void HandleCommandL(TInt aCommand);
       
    65         
       
    66         /**
       
    67         * From CAknViewAppUi
       
    68         * Handles layout changes in AppUi
       
    69         * @param aCommand command to be handled
       
    70         */
       
    71         void HandleResourceChangeL(TInt aType);
       
    72     
       
    73     protected:
       
    74         /**
       
    75          * From CEikApUi
       
    76          * Handle applicaiton switching from( to ) background to( from )
       
    77          * foreground event
       
    78          * @param aForeground ETrue to switch to the foreground or EFalse otherwise
       
    79          */
       
    80         void HandleForegroundEventL( TBool aForeground );
       
    81 
       
    82     private:
       
    83         /**
       
    84         * From CEikAppUi
       
    85         * Handles command line launch options
       
    86         * @param aCommand EApaCommandOpen | EApaCommandCreate | etc...
       
    87         * @param aDocumentName A document file name
       
    88         * @param aTail command line parameter
       
    89         */
       
    90         TBool ProcessCommandParametersL( TApaCommand aCommand,
       
    91                                          TFileName& aDocumentName, 
       
    92                                          const TDesC8& aTail);
       
    93         /**
       
    94         * From MCoeMessageObserver
       
    95         * Handle window group messages
       
    96         * @param aClientHandleOfTargetWindowGroup Windou group id
       
    97         * @param aMessageUid Message id
       
    98         * @param aMessageParameters Message parameter
       
    99         */
       
   100         MCoeMessageObserver::TMessageResponse HandleMessageL( 
       
   101                                     TUint32 aClientHandleOfTargetWindowGroup,
       
   102                                     TUid aMessageUid,
       
   103                                     const TDesC8& aMessageParameters );
       
   104 
       
   105     private:
       
   106         // Member data
       
   107         CCalenController* iController; // Owned by CCalenDocument
       
   108     };
       
   109 
       
   110 #endif // CALENAPPUI_H
       
   111 
       
   112 // End of File