brandingserver/inc/bselementfactory.h
changeset 46 860cd8a5168c
parent 35 085f765766a0
equal deleted inserted replaced
35:085f765766a0 46:860cd8a5168c
     1 /*
       
     2 * Copyright (c) 2006 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: bselementfactory.h 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __BSELEMENTFACTORY_H
       
    20 #define __BSELEMENTFACTORY_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <mbselement.h>
       
    24 
       
    25 
       
    26 class CBSElement;
       
    27 
       
    28 
       
    29 /**
       
    30  * Factory for creating branding elements
       
    31  *
       
    32  * @since
       
    33  */
       
    34 class BSElementFactory
       
    35     {
       
    36     public:
       
    37 
       
    38     	/*
       
    39     	* Create integer type element.
       
    40     	* @param aElementId id of the element
       
    41     	* @param aElementType type of the element
       
    42     	* @param aElementData the element data
       
    43     	*/
       
    44 		IMPORT_C static MBSElement* CreateBSElementL( const TDesC8& aElementId,
       
    45 											 TBSElementType aElementType,
       
    46 											 TInt aElementData );
       
    47 
       
    48     	/*
       
    49     	* Create text or file type element.
       
    50     	* @param aElementId id of the element
       
    51     	* @param aElementType type of the element
       
    52     	* @param aElementData the element data, if the element is file type
       
    53     	*		 then this should contain the file name
       
    54     	*/
       
    55 		IMPORT_C static MBSElement* CreateBSElementL( const TDesC8& aElementId,
       
    56 											 TBSElementType aElementType,
       
    57 											 const TDesC& aElementData );
       
    58 
       
    59     	/*
       
    60     	* Create buffer type element.
       
    61     	* @param aElementId id of the element
       
    62     	* @param aElementType type of the element
       
    63     	* @param aElementData the element data
       
    64     	*/
       
    65 		IMPORT_C static MBSElement* CreateBSElementL( const TDesC8& aElementId,
       
    66 											 TBSElementType aElementType,
       
    67 											 const TDesC8& aElementData );
       
    68 
       
    69     	/*
       
    70     	* Create bitmap type element.
       
    71     	* @param aElementId id of the element
       
    72     	* @param aElementType type of the element
       
    73     	* @param aElementData the element data
       
    74     	*/
       
    75 		IMPORT_C static MBSElement* CreateBSElementL( const TDesC8& aElementId,
       
    76 											 TBSElementType aElementType,
       
    77 											 CBSBitmap* aElementData );
       
    78 
       
    79     	/*
       
    80     	* Create an element containing a list of other elements.
       
    81     	* @param aElementId id of the element
       
    82     	* @param aElementType type of the element
       
    83     	* @param aElementData the element data
       
    84     	*/
       
    85 		IMPORT_C static MBSElement* CreateBSElementL( const TDesC8& aElementId,
       
    86 											 TBSElementType aElementType,
       
    87 											 RBSObjOwningPtrArray<MBSElement>& aElementData );
       
    88 
       
    89     };
       
    90 
       
    91 #endif //__BSELEMENTFACTORY_H