skins/AknSkins/alinc/AknsAlEffectParamContainer.h
changeset 0 05e9090e2422
equal deleted inserted replaced
-1:000000000000 0:05e9090e2422
       
     1 /*
       
     2 * Copyright (c) 2004-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:  Combined container & iterator for storing RL parameters.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef AKNSALEFFECTPARAMETERITER_H
       
    20 #define AKNSALEFFECTPARAMETERITER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <AknsRlParameter.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CAknsAlParamData;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 * Combined container & iterator for storing RL parameters. Used by the
       
    33 * AnimatorBmp (internally).
       
    34 *
       
    35 * @since 3.0
       
    36 */
       
    37 NONSHARABLE_CLASS( CAknsAlEffectParamContainer ):
       
    38     public CBase,
       
    39     public MAknsRlParameterIterator
       
    40     {
       
    41     private: // Protected constructors
       
    42 
       
    43         CAknsAlEffectParamContainer();
       
    44 
       
    45     public: // New functions
       
    46 
       
    47         static CAknsAlEffectParamContainer* NewL();
       
    48 
       
    49         virtual ~CAknsAlEffectParamContainer();
       
    50 
       
    51         void AddParamL( const TAknsRlParameterData& aParam );
       
    52 
       
    53         /// Resets the iterator
       
    54         void Begin();
       
    55 
       
    56     public: // Implementation of MAknsRlParameterIterator
       
    57 
       
    58         TBool HasNext();
       
    59         const TAknsRlParameterData* NextL();
       
    60 
       
    61     private:
       
    62 
       
    63         TAknsRlParameterData iIteratorData;
       
    64         RPointerArray<CAknsAlParamData> iParams;
       
    65 
       
    66         TInt iIteratorIndex;
       
    67     };
       
    68 
       
    69 #endif // AKNSALEFFECTPARAMETERITER_H
       
    70 
       
    71 // End of File