equal
deleted
inserted
replaced
|
1 /** |
|
2 * Copyright (c) 1997-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 * Implements a Symbian OS server that exposes the RUsb API |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file |
|
24 */ |
|
25 |
|
26 #ifndef __CUSBSERVER_INL__ |
|
27 #define __CUSBSERVER_INL__ |
|
28 |
|
29 |
|
30 /** |
|
31 * The CUsbServer::Device method |
|
32 * |
|
33 * Fetch the device that the server owns |
|
34 * |
|
35 * @internalComponent |
|
36 * |
|
37 * @return The server's device |
|
38 */ |
|
39 inline CUsbDevice& CUsbServer::Device() const |
|
40 { |
|
41 return *iUsbDevice; |
|
42 } |
|
43 |
|
44 inline TInt CUsbServer::SessionCount() const |
|
45 { |
|
46 return iSessionCount; |
|
47 } |
|
48 |
|
49 #ifdef SYMBIAN_ENABLE_USB_OTG_HOST_PRIV |
|
50 /** |
|
51 * The CUsbServer::Otg method |
|
52 * |
|
53 * Fetch the CUsbOtg object that the server owns |
|
54 * |
|
55 * @internalComponent |
|
56 * |
|
57 * @return The OTG object |
|
58 */ |
|
59 inline CUsbOtg& CUsbServer::Otg() const |
|
60 { |
|
61 return *iUsbOtg; |
|
62 } |
|
63 |
|
64 /** |
|
65 * The CUsbServer::Host method |
|
66 * |
|
67 * Fetch the CUsbHost object that the server owns |
|
68 * |
|
69 * @internalComponent |
|
70 * |
|
71 * @return The HOST object |
|
72 */ |
|
73 inline CUsbHost& CUsbServer::Host() const |
|
74 { |
|
75 return *iUsbHost; |
|
76 } |
|
77 |
|
78 #endif // SYMBIAN_ENABLE_USB_OTG_HOST_PRIV |
|
79 |
|
80 #endif |
|
81 |