emailuis/emailui/inc/FreestyleEmailUiMailListControl.h
branchRCL_3
changeset 25 3533d4323edc
parent 0 8466d47a6819
equal deleted inserted replaced
24:d189ee25cf9d 25:3533d4323edc
       
     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 control class for the application.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef FREESTYLEMAILUI_MAILLISTCONTROL_H_
       
    21 #define FREESTYLEMAILUI_MAILLISTCONTROL_H_
       
    22 
       
    23 // SYSTEM INCLUDES
       
    24 //<cmail>
       
    25 #include <alf/alfcontrol.h>
       
    26 #include <alf/alftexturemanager.h>
       
    27 #include <aknenv.h>
       
    28 //</cmail>
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 class CFSEmailUiMailListVisualiser;
       
    32 
       
    33 /**
       
    34 * CFsGenericListAppUi application UI class.
       
    35 * Interacts with the user through the UI and request message processing
       
    36 * from the handler class
       
    37 */
       
    38 class CFreestyleEmailUiMailListControl : public CAlfControl,
       
    39                                   public MAlfTextureLoadingCompletedObserver
       
    40     {
       
    41     
       
    42 public:
       
    43 
       
    44     /**
       
    45      * Two-phased constructor.
       
    46      * 
       
    47      * @param aEnv Reference to the ALF environment.
       
    48      */
       
    49     static CFreestyleEmailUiMailListControl* NewL(CAlfEnv& aEnv, CFSEmailUiMailListVisualiser* aVisualiser);
       
    50     
       
    51     /**
       
    52      * Two-phased constructor.
       
    53      * 
       
    54      * @param aEnv Reference to the ALF environment.
       
    55      */
       
    56     static CFreestyleEmailUiMailListControl* NewLC(CAlfEnv& aEnv, CFSEmailUiMailListVisualiser* aVisualiser);
       
    57     
       
    58     /**
       
    59      * Texture loading observer method.
       
    60      * 
       
    61      * @param aTexture Reference to the loaded texture object.
       
    62      * @param aTextureId Texture id.
       
    63      * @param aErrorCode Error code.
       
    64      */
       
    65     void TextureLoadingCompleted( CAlfTexture& aTexture,
       
    66                                   TInt aTextureId,
       
    67                                   TInt aErrorCode );
       
    68  
       
    69 	TBool OfferEventL( const TAlfEvent& aEvent );  
       
    70     void HandleCommandL(TInt aCommand);
       
    71      
       
    72     /**
       
    73      * Virtual destructor.
       
    74      */
       
    75     ~CFreestyleEmailUiMailListControl();
       
    76     
       
    77     // <cmail> Touch
       
    78     /**
       
    79      * From CAlfControl
       
    80      */
       
    81     void NotifyControlVisibility( TBool  aIsVisible, CAlfDisplay& aDisplay );
       
    82     // </cmail>
       
    83     
       
    84 private:
       
    85 
       
    86     /**
       
    87      * Constructor.
       
    88      * 
       
    89      * @param aEnv Reference to the ALF environment.
       
    90      * @param aVisualiser Reference to visualiser for command handling.
       
    91      */
       
    92     CFreestyleEmailUiMailListControl(CFSEmailUiMailListVisualiser* aVisualiser);
       
    93     
       
    94     /**
       
    95      * Two-phased constructor.
       
    96      */
       
    97     void ConstructL(CAlfEnv& aEnv);
       
    98     
       
    99 private:
       
   100 	CFSEmailUiMailListVisualiser* iVisualiser;
       
   101     
       
   102     };
       
   103 
       
   104 #endif /*FREESTYLEMAILUI_MAILLISTCONTROL_H_*/