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 an Active Scheduler for the server to use |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file |
|
24 */ |
|
25 |
|
26 #ifndef __CUSBSCHEDULER_H__ |
|
27 #define __CUSBSCHEDULER_H__ |
|
28 |
|
29 #include <e32base.h> |
|
30 |
|
31 class CUsbServer; |
|
32 |
|
33 /** |
|
34 * The CUsbScheduler class |
|
35 * |
|
36 * Implements an Active Scheduler for the server to use. This is necessary |
|
37 * in order to provide an Error() function which does something useful instead |
|
38 * of panicking. |
|
39 */ |
|
40 NONSHARABLE_CLASS(CUsbScheduler) : public CActiveScheduler |
|
41 { |
|
42 public: |
|
43 static CUsbScheduler* NewL(); |
|
44 ~CUsbScheduler(); |
|
45 |
|
46 void SetServer(CUsbServer& aServer); |
|
47 |
|
48 private: |
|
49 inline CUsbScheduler() {}; |
|
50 // from CActiveScheduler |
|
51 void Error(TInt aError) const; |
|
52 |
|
53 public: |
|
54 CUsbServer* iServer; |
|
55 }; |
|
56 |
|
57 #endif //__CUSBSCHEDULER_H__ |