0
|
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".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
@internalTechnology
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef RUSBOTGSESSION_H
|
|
24 |
#define RUSBOTGSESSION_H
|
|
25 |
|
|
26 |
static const TUid KUsbOtgServerUid3 = {0x101fe1db};
|
|
27 |
|
|
28 |
class RUsbOtgSession : public RSessionBase
|
|
29 |
{
|
|
30 |
public:
|
|
31 |
IMPORT_C RUsbOtgSession();
|
|
32 |
IMPORT_C RUsbOtgSession(TInt aParam);
|
|
33 |
|
|
34 |
IMPORT_C TInt Connect();
|
|
35 |
|
|
36 |
IMPORT_C TBool DeviceInserted();
|
|
37 |
IMPORT_C void NotifyChange(TBool& aChanged, TRequestStatus& aStatus);
|
|
38 |
IMPORT_C TInt NotifyChangeCancel();
|
|
39 |
IMPORT_C TInt BusDrop();
|
|
40 |
|
|
41 |
private:
|
|
42 |
TInt StartServer();
|
|
43 |
TVersion Version() const;
|
|
44 |
};
|
|
45 |
|
|
46 |
|
|
47 |
#endif // RUSBOTGSESSION_H
|