idlehomescreen/inc/xnanimation.h
changeset 4 4d54b72983ae
equal deleted inserted replaced
3:fb3763350a08 4:4d54b72983ae
       
     1 /*
       
     2 * Copyright (c) 2002-2006 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:  Wrapper class for Animation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef _XNANIMATION_H
       
    21 #define _XNANIMATION_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "xncomponent.h"
       
    25 #include "mxncomponentinterface.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CFbsBitmap;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 namespace XnAnimationInterface
       
    33 {
       
    34 _LIT8(KType, "animation");
       
    35 class MXnAnimationInterface : public XnComponentInterface::MXnComponentInterface
       
    36    {
       
    37 
       
    38 public:
       
    39 		
       
    40     static inline const TDesC8& Type()
       
    41         {
       
    42         return KType;
       
    43         }
       
    44 		
       
    45 // Add New functions if needed 
       
    46    };
       
    47  }   
       
    48     
       
    49 /**
       
    50 *  @ingroup group_xnanimationfactory
       
    51 *  @lib xn3animationfactory.dll
       
    52 *  @since Series 60 9.2
       
    53 */
       
    54 class CXnAnimation : public CXnComponent, public XnAnimationInterface::MXnAnimationInterface
       
    55    {
       
    56 
       
    57 public:
       
    58 
       
    59 	/**
       
    60 	 * 2 phase construction.
       
    61 	 */
       
    62 	static CXnAnimation* NewL();
       
    63 
       
    64 	/**
       
    65 	 * Destructor.
       
    66 	 */
       
    67 	virtual ~CXnAnimation();
       
    68 
       
    69 public: // from CCoeControl
       
    70    	/**
       
    71       * Create a component interface according to the given type.
       
    72       * @param aType Type of the interface to create
       
    73       * @return Created interface or NULL if the provided type is not supported.
       
    74       */ 
       
    75     virtual XnComponentInterface::MXnComponentInterface* MakeInterfaceL(const TDesC8& aType); 
       
    76   
       
    77 	        
       
    78 private:
       
    79     /**
       
    80      * Default constructor.
       
    81      */
       
    82     CXnAnimation();
       
    83     
       
    84     /**
       
    85      * ConstructL
       
    86      */
       
    87 	void ConstructL();
       
    88    };
       
    89 
       
    90 #endif      // _XNANIMATION_H
       
    91             
       
    92 // End of File