testexecmdw/tef/tef/wrapperutils/src/wrapperutilsplugin.cpp
branchRCL_3
changeset 3 9397a16b6eb8
parent 1 6edeef394eb7
equal deleted inserted replaced
1:6edeef394eb7 3:9397a16b6eb8
     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 "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 
       
    19 
       
    20 #include <e32std.h>
       
    21 #include <test/fileservplugin.h>
       
    22 #include <test/sysstartplugin.h>
       
    23 #include <test/wrapperutilsplugin.h>
       
    24 
       
    25 EXPORT_C CWrapperUtilsPlugin* CreateWrapperInstanceL()
       
    26 	{
       
    27 	return new (ELeave) CWrapperUtilsPlugin;
       
    28 	}
       
    29 
       
    30 void CWrapperUtilsPlugin::WaitForSystemStartL()
       
    31 	{
       
    32 	CSysStartPlugin* plugin = CSysStartPlugin::NewL();
       
    33 	plugin->WaitForSystemStartL();
       
    34 	delete plugin;
       
    35 	}
       
    36 
       
    37 TDriveNumber CWrapperUtilsPlugin::GetSystemDrive()
       
    38 	{
       
    39 	TDriveNumber driveNumber = EDriveC;
       
    40 	CFileServPlugin* plugin = NULL;
       
    41 	TRAPD(err, plugin = CFileServPlugin::NewL());
       
    42 	if (KErrNone == err)
       
    43 		{
       
    44 		driveNumber = plugin->GetSystemDrive();
       
    45 		delete plugin;
       
    46 		}
       
    47 	
       
    48 	return driveNumber;
       
    49 	}
       
    50