emailuis/emailui/inc/FreestyleEmailUiMsgDetailsControl.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007-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:  Declares control class for the application.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __FREESTYLEMAILUI_MSGDETAILSCONTROL_H_
       
    21 #define __FREESTYLEMAILUI_MSGDETAILSCONTROL_H_
       
    22 
       
    23 // SYSTEM INCLUDES
       
    24 //<cmail> SF
       
    25 #include <alf/alfenv.h>
       
    26 #include <alf/alfcontrol.h>
       
    27 //</cmail>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CFSEmailUiMsgDetailsVisualiser;
       
    31 
       
    32 class CFSEmailUiMsgDetailsControl : public CAlfControl
       
    33     {
       
    34     
       
    35 public:
       
    36 
       
    37     /**
       
    38      * Two-phased constructor.
       
    39      * 
       
    40      * @param aEnv Reference to the ALF environment.
       
    41      */
       
    42     static CFSEmailUiMsgDetailsControl* NewL(CAlfEnv& aEnv, CFSEmailUiMsgDetailsVisualiser& aVisualiser);
       
    43     
       
    44     /**
       
    45      * Two-phased constructor.
       
    46      * 
       
    47      * @param aEnv Reference to the ALF environment.
       
    48      */
       
    49     static CFSEmailUiMsgDetailsControl* NewLC(CAlfEnv& aEnv, CFSEmailUiMsgDetailsVisualiser& aVisualiser);
       
    50     
       
    51     /**
       
    52      * Event handling
       
    53      *
       
    54      * @param aEvent Event to be handled
       
    55      * @return ETrue if event was consumed, otherwise EFalse
       
    56      */
       
    57 	TBool OfferEventL( const TAlfEvent& aEvent );  
       
    58 
       
    59     /**
       
    60      * Command handling
       
    61      *
       
    62      * @param aCommand Command to be handled
       
    63      */
       
    64     void HandleCommandL(TInt aCommand);
       
    65      
       
    66     /**
       
    67      * Virtual destructor.
       
    68      */
       
    69     ~CFSEmailUiMsgDetailsControl();
       
    70     
       
    71 private:
       
    72 
       
    73     /**
       
    74      * Constructor.
       
    75      * 
       
    76      * @param aEnv Reference to the ALF environment.
       
    77      * @param aVisualiser Reference to visualiser for command handling.
       
    78      */
       
    79     CFSEmailUiMsgDetailsControl(CFSEmailUiMsgDetailsVisualiser& aVisualiser);
       
    80     
       
    81     /**
       
    82      * Two-phased constructor.
       
    83      */
       
    84     void ConstructL(CAlfEnv& aEnv);
       
    85     
       
    86 private:
       
    87 	CFSEmailUiMsgDetailsVisualiser& iVisualiser;
       
    88     
       
    89     };
       
    90 
       
    91 #endif /*__FREESTYLEMAILUI_MSGDETAILSCONTROL_H_*/