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