emailuis/emailui/inc/FreestyleEmailUiSearchListControl.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_SEACRHLISTCONTROL_H_
       
    21 #define FREESTYLEMAILUI_SEACRHLISTCONTROL_H_
       
    22 
       
    23 // SYSTEM INCLUDES
       
    24 //<cmail>
       
    25 #include <alf/alfenv.h>
       
    26 #include <alf/alfcontrol.h>
       
    27 //</cmail>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CFSEmailUiSearchListVisualiser;
       
    31 
       
    32 
       
    33 class CFreestyleEmailUiSearchListControl : public CAlfControl,
       
    34                                   public MAlfTextureLoadingCompletedObserver
       
    35     {
       
    36     
       
    37 public:
       
    38 
       
    39     /**
       
    40      * Two-phased constructor.
       
    41      * 
       
    42      * @param aEnv Reference to the ALF environment.
       
    43      */
       
    44     static CFreestyleEmailUiSearchListControl* NewL(CAlfEnv& aEnv, CFSEmailUiSearchListVisualiser* aVisualiser);
       
    45     
       
    46     /**
       
    47      * Two-phased constructor.
       
    48      * 
       
    49      * @param aEnv Reference to the ALF environment.
       
    50      */
       
    51     static CFreestyleEmailUiSearchListControl* NewLC(CAlfEnv& aEnv, CFSEmailUiSearchListVisualiser* aVisualiser);
       
    52     
       
    53     /**
       
    54      * Texture loading observer method.
       
    55      * 
       
    56      * @param aTexture Reference to the loaded texture object.
       
    57      * @param aTextureId Texture id.
       
    58      * @param aErrorCode Error code.
       
    59      */
       
    60     void TextureLoadingCompleted( CAlfTexture& aTexture,
       
    61                                   TInt aTextureId,
       
    62                                   TInt aErrorCode );
       
    63  
       
    64 	TBool OfferEventL( const TAlfEvent& aEvent );  
       
    65     void HandleCommandL(TInt aCommand);
       
    66      
       
    67     /**
       
    68      * Virtual destructor.
       
    69      */
       
    70     ~CFreestyleEmailUiSearchListControl();
       
    71     
       
    72 private:
       
    73 
       
    74     /**
       
    75      * Constructor.
       
    76      * 
       
    77      * @param aEnv Reference to the ALF environment.
       
    78      * @param aVisualiser Reference to visualiser for command handling.
       
    79      */
       
    80     CFreestyleEmailUiSearchListControl(CFSEmailUiSearchListVisualiser* aVisualiser);
       
    81     
       
    82     /**
       
    83      * Two-phased constructor.
       
    84      */
       
    85     void ConstructL(CAlfEnv& aEnv);
       
    86     
       
    87 private:
       
    88 	CFSEmailUiSearchListVisualiser* iVisualiser;
       
    89     
       
    90     };
       
    91 
       
    92 #endif /*FREESTYLEMAILUI_MAILLISTCONTROL_H_*/