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