equal
deleted
inserted
replaced
|
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 CUSBHOSTSERVER_H |
|
24 #define CUSBHOSTSERVER_H |
|
25 |
|
26 |
|
27 class CUsbHost; |
|
28 |
|
29 // Receives client requests |
|
30 class CUsbHostServer : public CServer2 |
|
31 { |
|
32 public: |
|
33 friend class CUsbHostSession; |
|
34 |
|
35 static CUsbHostServer* NewLC(); |
|
36 virtual ~CUsbHostServer(); |
|
37 |
|
38 protected: |
|
39 CUsbHostServer(); |
|
40 void ConstructL(); |
|
41 |
|
42 public: |
|
43 void AddSession(); |
|
44 void RemoveSession(); |
|
45 |
|
46 virtual CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const; |
|
47 TInt RunError(TInt aError); |
|
48 |
|
49 |
|
50 private: |
|
51 CUsbHost* iUsbHost; |
|
52 TInt iSessionCount; |
|
53 }; |
|
54 |
|
55 |
|
56 |
|
57 #endif // CUSBHOSTSERVER_H |