uiaccelerator_plat/alf_core_toolkit_api/inc/uiacceltk/HuiThemeManager.h
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:   Declares CHuiThemeManager class which is the interface for 
       
    15 *                ThemeManager component.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef _HUITHEME_MANAGER
       
    22 #define _HUITHEME_MANAGER
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <AknsItemID.h>
       
    26 #include <alf/alfconstants.h>
       
    27 
       
    28 namespace Alf
       
    29     {
       
    30     class ThemeManager; // forward declaration.
       
    31     }
       
    32 using namespace Alf;
       
    33 
       
    34 struct THuiThemeImageparams
       
    35 {
       
    36     TAknsItemID itemId;
       
    37     TAknsItemID aSkinId;
       
    38     TFileName iSkinLogicalName; 
       
    39     //THuiTextureUploadFlags aFlag;   
       
    40     TInt iDefaultBitmapId;
       
    41     TInt iDefaultMaskId;	
       
    42 };
       
    43 
       
    44 /**
       
    45  * @deprecated <b>Deprecated class</b>
       
    46  * 
       
    47  * CHuiThemeManager is the interface for Hui to access the ThemeManager 
       
    48  * functionality
       
    49  *
       
    50  * @see 
       
    51  * @see 
       
    52  *
       
    53  */
       
    54 NONSHARABLE_CLASS(CHuiThemeManager) : public CBase
       
    55 {
       
    56 
       
    57 public:
       
    58 
       
    59 
       
    60 	virtual ~CHuiThemeManager();
       
    61 	
       
    62 	    
       
    63     /** @beginAPI */
       
    64 
       
    65 	/**
       
    66      * Exported method. Two phase constructor
       
    67      * renderer.
       
    68      */
       
    69 	IMPORT_C void ConstructL();
       
    70 	
       
    71     /**
       
    72      * @deprecated Use GetItemIdL instead.
       
    73      */
       
    74 	IMPORT_C void GetItemID(const TDesC& aSkinId, TAknsItemID& aItemID);
       
    75 	
       
    76     /**
       
    77      * @deprecated User GetSkinImageParamsL instead.
       
    78      */
       
    79 	IMPORT_C THuiThemeImageparams GetSkinImageParams(const TDesC& aSkinLogicalName);
       
    80 
       
    81     /**
       
    82      * @deprecated <b>Doesn't retrieve TAknsItemID anymore!</b>
       
    83      * 
       
    84      * Exported method. Retrieves a TAknsItemID based on input text skin 
       
    85      * image id.
       
    86      *
       
    87      * @param aSkinId Skin identifier.
       
    88      * @param aItemID On returns contains the skin item ID.
       
    89      */
       
    90 	IMPORT_C void GetItemIdL(const TDesC& aSkinId, TAknsItemID& aItemID);
       
    91 	
       
    92     /**
       
    93      * @deprecated <b>Doesn't return image parameters anymore!</b>
       
    94      * 
       
    95      * Exported method. Gets Skin Image parameters based on input 
       
    96      * skin image id.
       
    97      *
       
    98      * @param aSkinLogicalName Logical name of the skin
       
    99      * 
       
   100      * @return Image parameters.
       
   101      */
       
   102 	IMPORT_C THuiThemeImageparams GetSkinImageParamsL(const TDesC& aSkinLogicalName);
       
   103 
       
   104     /** @endAPI */
       
   105 	
       
   106 public:
       
   107     /**
       
   108      * Constructs a new CHuiThemeManager
       
   109      *
       
   110      * @param 
       
   111      */	
       
   112      static CHuiThemeManager* NewL();
       
   113 
       
   114 	
       
   115     /**
       
   116      * Constructs a new CHuiThemeManager
       
   117      *
       
   118      * @param 
       
   119      */	
       
   120 	static CHuiThemeManager* NewLC();
       
   121 private:
       
   122 	/**
       
   123 	 * Private constructor
       
   124 	 */
       
   125 	CHuiThemeManager();
       
   126 	
       
   127 private:
       
   128 
       
   129 	ThemeManager* iThemeManager;			// Thememanager 
       
   130 
       
   131 };
       
   132 
       
   133 #endif