equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006-2006 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: Custom active scheduler for the preset server |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CPSSCHEDULER_H |
|
20 #define C_CPSSCHEDULER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class CPSServer; |
|
25 |
|
26 /** |
|
27 * Custom active scheduler for the preset server. |
|
28 */ |
|
29 NONSHARABLE_CLASS( CPSScheduler ) : public CActiveScheduler |
|
30 { |
|
31 |
|
32 public: |
|
33 |
|
34 /** |
|
35 * Constructor. |
|
36 */ |
|
37 CPSScheduler(); |
|
38 |
|
39 /** |
|
40 * Destructor. |
|
41 */ |
|
42 ~CPSScheduler(); |
|
43 |
|
44 /** |
|
45 * Sets the server to use. |
|
46 * |
|
47 * @param aServer The server to use. |
|
48 */ |
|
49 void SetServer( CPSServer* aServer ); |
|
50 |
|
51 // from CActiveScheduler |
|
52 |
|
53 /** |
|
54 * @see CActiveScheduler::Error( TInt aError ) const |
|
55 */ |
|
56 void Error( TInt aError ) const; |
|
57 |
|
58 private: |
|
59 |
|
60 /** The preset server. */ |
|
61 CPSServer* iServer; |
|
62 |
|
63 }; |
|
64 |
|
65 #endif // C_CPSSCHEDULER_H |