usbmgmt/usbmgrtest/t_usbmanager_suite/T_UsbManager/inc/CUsbTestStepBase.h
changeset 0 c9bc50fca66e
equal deleted inserted replaced
-1:000000000000 0:c9bc50fca66e
       
     1 /**
       
     2 * Copyright (c) 2004-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 /**
       
    21  @file
       
    22 */
       
    23 #if (!defined __CUSBTESTSTEPBASE_H__)
       
    24 #define __CUSBTESTSTEPBASE_H__
       
    25 #include <test/testexecutestepbase.h>
       
    26 #include <usbman.h>
       
    27 #include "T_UsbManagerServer.h"
       
    28 
       
    29 NONSHARABLE_CLASS(CUsbTestStepBase) : public CTestStep
       
    30 	{
       
    31 public:
       
    32 	CUsbTestStepBase();
       
    33 	virtual TVerdict doTestStepPreambleL();
       
    34 	virtual TVerdict doTestStepPostambleL();
       
    35 protected:
       
    36 	RUsb iUsb;
       
    37 	TBool iDoNotConnect;
       
    38 	TBool iConnected;
       
    39 	TBool iStopService;
       
    40 
       
    41 protected:
       
    42 	TInt CheckState(RUsb sess, TUsbServiceState aState);
       
    43 	TInt SetIdle(RUsb sess);
       
    44 	TInt SetStarted(RUsb sess);
       
    45 	TInt SetStarting(RUsb sess);
       
    46 	TInt SetStopping(RUsb sess);
       
    47 	};
       
    48 
       
    49 #endif