testexecfw/stf/examples/MigrationExample/FileStore/TEF_BLOCK/src/TestFileServer_TEFBlockController.cpp
changeset 2 8bb370ba6d1d
equal deleted inserted replaced
1:bbd31066657e 2:8bb370ba6d1d
       
     1 /*
       
     2 * Copyright (c) 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 "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 #include "TestFileServer_TEFBlockController.h"
       
    19 
       
    20 _LIT(KCTestFileServerWrapper, "CTestFileServerWrapper");
       
    21 
       
    22 CTestFileServer_TEFBlockController* CTestFileServer_TEFBlockController::NewL()
       
    23 /**
       
    24  * @return - Instance of the test block controller
       
    25  */
       
    26     {
       
    27     CTestFileServer_TEFBlockController* block = new (ELeave) CTestFileServer_TEFBlockController();
       
    28     return block;
       
    29     }
       
    30 
       
    31 
       
    32 CDataWrapper* CTestFileServer_TEFBlockController::CreateDataL(const TDesC& aData)
       
    33     {
       
    34     CDataWrapper* wrapper = NULL;
       
    35 	if (KCTestFileServerWrapper() == aData)
       
    36 		{
       
    37 		wrapper = CTestFileServerWrapper::NewL();
       
    38 		}
       
    39 
       
    40     return wrapper;
       
    41     }