First public contribution.
1 #ifndef __SOFTWARE_CONNECT_TIMER_H
2 #define __SOFTWARE_CONNECT_TIMER_H
5 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
7 * This component and the accompanying materials are made available
8 * under the terms of the License "Eclipse Public License v1.0"
9 * which accompanies this distribution, and is available
10 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
12 * Initial Contributors:
13 * Nokia Corporation - initial contribution.
18 * @file softwareconnecttimer.h
27 #include "testdevicebase.h"
29 namespace NUnitTesting_USBDI
33 This class represents a timer for performing USB connection and disconnection
34 in software. i.e. the D+/- pull-ups
37 class CSoftwareConnectTimer : public CTimer
40 // The type of connection to be performed
52 @param aTestDevice a client usb test device
55 static CSoftwareConnectTimer* NewL(RUsbTestDevice& aTestDevice);
61 ~CSoftwareConnectTimer();
64 Perform software connection after the specified interval has elapsed
65 @param aInterval the time gap before connecting in seconds
68 void SoftwareConnect(TInt aInterval);
71 Perform software disconnection after the specified interval has elapsed
72 @param aInterval the time gap before disconnecting in seconds
75 void SoftwareDisconnect(TInt aInterval);
78 Peform a software disconnection and then after the specified interval, perform a software connection.
79 @param aInterval the time gap between disconnecting and connecting in a reconnect step in seconds
82 void SoftwareReConnect(TInt aInterval);
87 Constructor, build a timer for performing software usb connection and disconnection
90 CSoftwareConnectTimer(RUsbTestDevice& aTestDevice);
98 The test device object to instruct to connect of disonnect
101 RUsbTestDevice& iTestDevice;
104 The type of connection to be performed
107 TConnectionType iConnectType;