idlehomescreen/xmluirendering/renderingplugins/xnanimationfactory/inc/xnanimationfactory.h
changeset 4 4d54b72983ae
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/idlehomescreen/xmluirendering/renderingplugins/xnanimationfactory/inc/xnanimationfactory.h	Tue Jan 26 11:48:23 2010 +0200
@@ -0,0 +1,94 @@
+/*
+* Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  Factory for creating CXnAnimation -component
+*
+*/
+
+#ifndef _XNANIMATIONFACTORY_H
+#define _XNANIMATIONFACTORY_H
+
+//  INCLUDES
+#include "xncomponentfactory.h"
+#include <e32base.h>
+#include <e32std.h>
+
+#include <ecom/ecom.h>
+#include <ecom/implementationproxy.h>
+
+// FORWARD DECLARATIONS
+class CXnComponent;
+class CXnMap;
+class CXnType;
+
+// CLASS DECLARATION
+/**
+*  @ingroup group_xnanimationfactory
+*  Layout Area UI factory interface for creating UI representations of the layout areas.
+*  This class is wrapper for containing CAnimation
+*
+*  @lib xn3animationfactory.dll
+*  @since Series 60 3.1
+*/
+// inheritance order must be this, despite codescanner warnings
+class CXnAnimationFactory : public MXnComponentFactory, public CBase
+    {
+    public:  // Constructors and destructor
+        
+        /**
+        * Two-phased constructor.
+        */
+        static CXnAnimationFactory* NewL();
+        
+        /**
+        * Destructor.
+        */
+        virtual ~CXnAnimationFactory();
+
+    public: // Functions from base classes
+
+		/**
+		* @see MXnComponentFactory.h
+		*/
+        TXnComponentFactoryResponse MakeXnComponentL( 
+                                                CXnNodePluginIf& aNode,
+                                                CXnComponent*& aTargetComponent
+        										);
+
+		/**
+		* @see MXnComponentFactory.h
+		*/
+        CXnControlAdapter* MakeXnControlAdapterL( 
+                                                CXnNodePluginIf& aNode,
+                                                CXnControlAdapter* aParent = NULL
+        										);
+
+    private:
+
+        /**
+        * 2nd phase constructor. 
+        */
+        void ConstructL();
+
+        /**
+        * C++ default constructor. 
+        */
+        CXnAnimationFactory();
+    };
+    
+// Exported factory function required by ECOM-framework
+IMPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount);
+
+#endif      // _XNANIMATIONFACTORY_H
+            
+// End of File