Update contrib.
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
17 #ifndef CUSBOTGWATCHER_H
18 #define CUSBOTGWATCHER_H
23 class CUsbOtgBaseWatcher : public CActive
26 CUsbOtgBaseWatcher(RUsbOtgDriver& aLdd);
27 virtual ~CUsbOtgBaseWatcher();
30 virtual void RunL() = 0;
31 virtual void DoCancel() = 0;
36 virtual void Post() = 0;
45 const TUid KUidUsbManCategory = {0x101fe1db};
47 enum TUsbManPropertyKeys
49 KUsbRequestSessionProperty = 6
52 enum TUsbManSessionState
54 KUsbManSessionOpen = 0x1,
61 class CRequestSessionWatcher: public CActive
64 static CRequestSessionWatcher* NewL(MUsbRequestSessionObserver& aObserver);
65 ~CRequestSessionWatcher();
67 CRequestSessionWatcher(MUsbRequestSessionObserver& aObserver);
73 TInt RunError(TInt aError);
74 //void StartRequestSession();
77 MUsbRequestSessionObserver& iObserver;
83 class CUsbOtgEventWatcher: public CUsbOtgBaseWatcher
86 static CUsbOtgEventWatcher* NewL(RUsbOtgDriver& aLdd,
88 ~CUsbOtgEventWatcher();
90 CUsbOtgEventWatcher(RUsbOtgDriver& aLdd,
100 TInt RunError(TInt aError);
103 RUsbOtgDriver::TOtgEvent iEvent;