emailuis/emailui/inc/FreestyleEmailUiMailViewerControl.h
branchRCL_3
changeset 12 4ce476e64c59
parent 11 0396474f30f5
child 13 8592a65ad3fb
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     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:  Declares top control class for email viewer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef FREESTYLEEMAILUIMAILVIEWERCONTROL_H
       
    21 #define FREESTYLEEMAILUIMAILVIEWERCONTROL_H
       
    22 
       
    23 // SYSTEM INCLUDES
       
    24 //<cmail> SF
       
    25 #include <alf/alfcontrol.h>
       
    26 //</cmail>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CFSEmailUiMailViewerVisualiser;
       
    30 
       
    31 /**
       
    32 * CFreestyleEmailUiMailViewerControl is top control class for capturing option and
       
    33 *				 key events for the email viewer visualiser to handle
       
    34 */
       
    35 class CFreestyleEmailUiMailViewerControl : public CAlfControl
       
    36     {
       
    37     
       
    38 public:
       
    39 
       
    40     /**
       
    41      * Two-phased constructor.
       
    42      * 
       
    43      * @param aEnv Reference to the ALF environment.
       
    44      */
       
    45     static CFreestyleEmailUiMailViewerControl* NewL( CAlfEnv& aEnv, CFSEmailUiMailViewerVisualiser& aVisualiser );
       
    46     
       
    47     /**
       
    48      * Two-phased constructor.
       
    49      * 
       
    50      * @param aEnv Reference to the ALF environment.
       
    51      */
       
    52     static CFreestyleEmailUiMailViewerControl* NewLC( CAlfEnv& aEnv, CFSEmailUiMailViewerVisualiser& aVisualiser);
       
    53     
       
    54     /**
       
    55      * Virtual destructor.
       
    56      */
       
    57     virtual ~CFreestyleEmailUiMailViewerControl();
       
    58  
       
    59 public: // From CAlfControl
       
    60 
       
    61 	TBool OfferEventL( const TAlfEvent& aEvent );  
       
    62 
       
    63     void HandleCommandL( TInt aCommand );
       
    64     
       
    65 private:
       
    66 
       
    67     /**
       
    68      * Constructor.
       
    69      * 
       
    70      * @param aEnv Reference to the ALF environment.
       
    71      * @param aVisualiser Reference to visualiser for command handling.
       
    72      */
       
    73     CFreestyleEmailUiMailViewerControl( CFSEmailUiMailViewerVisualiser& aVisualiser);
       
    74     
       
    75     /**
       
    76      * Two-phased constructor.
       
    77      */
       
    78     void ConstructL(CAlfEnv& aEnv);
       
    79     
       
    80 private:
       
    81 
       
    82 	// Handle to viewer visualiser
       
    83 	CFSEmailUiMailViewerVisualiser& iVisualiser;
       
    84     
       
    85     };
       
    86 
       
    87 #endif /*FREESTYLEEMAILUIMAILVIEWERCONTROL_H*/