common/tools/ats/smoketest/graphics/fbserv/inc/T_FBServAPIServer.inl
changeset 833 6ffc235847d0
child 872 17498133d9ad
equal deleted inserted replaced
832:9b2bf01d4d36 833:6ffc235847d0
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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 "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 /**
       
    19 @test
       
    20 @internalComponent
       
    21 
       
    22 This contains CT_FBServAPIServer inline functions
       
    23 */
       
    24 
       
    25 
       
    26 _LIT(KRFbsSessionData, 			"RFbsSession");
       
    27 _LIT(KCFbsFontData, 			"CFbsFont");
       
    28 _LIT(KCFbsBitmapData, 			"CFbsBitmap");
       
    29 _LIT(KTBitmapUtilData, 			"TBitmapUtil");
       
    30 _LIT(KCFbsTypefaceStoreData,	"CFbsTypefaceStore");
       
    31 _LIT(KCFbsColor256BitmapUtil,	"CFbsColor256BitmapUtil");
       
    32 _LIT(KCPalette,					"CPalette");
       
    33 _LIT(KCFbsBitmapDevice,			"CFbsBitmapDevice");
       
    34 _LIT(KCFbsScreenDevice,			"CFbsScreenDevice");
       
    35 _LIT(KTAlgStyle,				"TAlgStyle");
       
    36 _LIT(KTMeasureTextInput,		"TMeasureTextInput");
       
    37 _LIT(KTMeasureTextOutput,		"TMeasureTextOutput");
       
    38 
       
    39 inline CT_FBServAPIServer::CT_FBServAPIBlock::CT_FBServAPIBlock()
       
    40     {
       
    41     }
       
    42 
       
    43 inline CT_FBServAPIServer::CT_FBServAPIBlock::~CT_FBServAPIBlock()
       
    44     {
       
    45     }
       
    46 
       
    47 inline CDataWrapper* CT_FBServAPIServer::CT_FBServAPIBlock::CreateDataL( const TDesC& aData )
       
    48 	{
       
    49 	CDataWrapper* wrapper = NULL;
       
    50    	if (aData == KRFbsSessionData())
       
    51    		{
       
    52    		wrapper = CT_DataFbsSession::NewL();
       
    53    		}
       
    54    	else if (aData == KCFbsFontData())
       
    55    		{
       
    56    		wrapper = CT_DataFbsFont::NewL();
       
    57    		}
       
    58    	else if (aData == KCFbsBitmapData())
       
    59    		{
       
    60    		wrapper = CT_DataFbsBitmap::NewL();
       
    61    		}
       
    62    	else if (aData == KTBitmapUtilData())
       
    63    		{
       
    64    		wrapper = CT_DataBitmapUtil::NewL();
       
    65    		}
       
    66    	else if (aData == KCFbsTypefaceStoreData())
       
    67    		{
       
    68    		wrapper = CT_DataFbsTypefaceStore::NewL();
       
    69    		}
       
    70    	else if (aData == KCFbsColor256BitmapUtil())
       
    71    		{
       
    72    		wrapper = CT_DataFbsColor256BitmapUtil::NewL();
       
    73    		}
       
    74    	else if (aData == KCPalette())
       
    75    		{
       
    76    		wrapper = CT_DataPalette::NewL();
       
    77    		}
       
    78    	else if ( aData==KCFbsBitmapDevice() )
       
    79    		{
       
    80    		wrapper = CT_DataFbsBitmapDevice::NewL();
       
    81    		}
       
    82    	else if ( aData==KCFbsScreenDevice() )
       
    83    		{
       
    84    		wrapper = CT_DataFbsScreenDevice::NewL();
       
    85    		}
       
    86    	else if ( aData==KTAlgStyle() )
       
    87    		{
       
    88    		wrapper = CT_DataAlgStyle::NewL();
       
    89    		}
       
    90    	else if ( aData==KTMeasureTextInput() )
       
    91    		{
       
    92    		wrapper = CT_DataMeasureTextInput::NewL();
       
    93    		}
       
    94    	else if ( aData==KTMeasureTextOutput() )
       
    95    		{
       
    96    		wrapper = CT_DataMeasureTextOutput::NewL();
       
    97    		}
       
    98 	return wrapper;
       
    99 	}
       
   100 
       
   101 inline CT_FBServAPIServer::CT_FBServAPIServer()
       
   102     {
       
   103     }
       
   104 
       
   105 inline CT_FBServAPIServer::~CT_FBServAPIServer()
       
   106     {
       
   107     }
       
   108 
       
   109 inline CTestBlockController*	CT_FBServAPIServer::CreateTestBlock()
       
   110 	{
       
   111 	return new CT_FBServAPIBlock();
       
   112 	}