idlehomescreen/hscontentcontrol/inc/hscontentcontrolfactory.h
changeset 0 f72a12da539e
child 1 5315654608de
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef HSCONTENTCONTROLFACTORY_H
       
    19 #define HSCONTENTCONTROLFACTORY_H
       
    20 
       
    21 // System includes
       
    22 #include <e32base.h>
       
    23 
       
    24 // Forward declarations
       
    25 #include <hscontentcontrolui.h>
       
    26 /**
       
    27  *  Content control UI base class
       
    28  *
       
    29  *
       
    30  *  @code
       
    31  *
       
    32  *  @endcode
       
    33  *
       
    34  *  @lib hscontentcontrol.lib
       
    35  *  @since S60 v5.0
       
    36  */
       
    37 NONSHARABLE_CLASS( CHsContentControlFactory ) : public CBase
       
    38     {
       
    39 public: // Constructor and destructor
       
    40     /**
       
    41      * Two-phased constructor.
       
    42      */
       
    43     IMPORT_C static CHsContentControlFactory* NewL();
       
    44 
       
    45     /**
       
    46      * Destructor.
       
    47      */
       
    48     IMPORT_C ~CHsContentControlFactory();
       
    49 
       
    50 private: // Constructors
       
    51     /**
       
    52      * Constructor
       
    53      */
       
    54     CHsContentControlFactory();
       
    55 
       
    56     /** Second phase constructor */
       
    57     void ConstructL();
       
    58 
       
    59 
       
    60 public: // New functions
       
    61     /**
       
    62      * 
       
    63      */
       
    64     IMPORT_C MHsContentControlUi* GetHsContentController(
       
    65         const TDesC8& aControllerType );
       
    66 
       
    67 private:
       
    68     /**
       
    69      * 
       
    70      */
       
    71     MHsContentControlUi* FindHsContentController(
       
    72         const TDesC8& aControllerType );
       
    73     
       
    74     
       
    75 private: // Data
       
    76 
       
    77     /**
       
    78      *
       
    79      */
       
    80     RPointerArray< CHsContentControlUi > iHsContentControlUis;
       
    81 
       
    82     };
       
    83 
       
    84 
       
    85 #endif // HSCONTENTCONTROLFACTORY_H
       
    86 
       
    87 // End of file