idlehomescreen/hscontentcontrol/inc/hscontentcontrolfactory.h
changeset 0 f72a12da539e
child 1 5315654608de
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/idlehomescreen/hscontentcontrol/inc/hscontentcontrolfactory.h	Thu Dec 17 08:40:49 2009 +0200
@@ -0,0 +1,87 @@
+/*
+* Copyright (c) 2008 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:  
+*
+*/
+
+#ifndef HSCONTENTCONTROLFACTORY_H
+#define HSCONTENTCONTROLFACTORY_H
+
+// System includes
+#include <e32base.h>
+
+// Forward declarations
+#include <hscontentcontrolui.h>
+/**
+ *  Content control UI base class
+ *
+ *
+ *  @code
+ *
+ *  @endcode
+ *
+ *  @lib hscontentcontrol.lib
+ *  @since S60 v5.0
+ */
+NONSHARABLE_CLASS( CHsContentControlFactory ) : public CBase
+    {
+public: // Constructor and destructor
+    /**
+     * Two-phased constructor.
+     */
+    IMPORT_C static CHsContentControlFactory* NewL();
+
+    /**
+     * Destructor.
+     */
+    IMPORT_C ~CHsContentControlFactory();
+
+private: // Constructors
+    /**
+     * Constructor
+     */
+    CHsContentControlFactory();
+
+    /** Second phase constructor */
+    void ConstructL();
+
+
+public: // New functions
+    /**
+     * 
+     */
+    IMPORT_C MHsContentControlUi* GetHsContentController(
+        const TDesC8& aControllerType );
+
+private:
+    /**
+     * 
+     */
+    MHsContentControlUi* FindHsContentController(
+        const TDesC8& aControllerType );
+    
+    
+private: // Data
+
+    /**
+     *
+     */
+    RPointerArray< CHsContentControlUi > iHsContentControlUis;
+
+    };
+
+
+#endif // HSCONTENTCONTROLFACTORY_H
+
+// End of file