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