idlehomescreen/hscontentcontrol/inc/hscontentcontrolfactory.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:40:49 +0200
changeset 0 f72a12da539e
child 1 5315654608de
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* 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