|
1 /* |
|
2 * Copyright (c) 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: CCchActiveScheduler implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include "cchlogger.h" |
|
20 #include "cchactivescheduler.h" |
|
21 #include "cchserverbase.h" |
|
22 |
|
23 // EXTERNAL DATA STRUCTURES |
|
24 // None |
|
25 |
|
26 // EXTERNAL FUNCTION PROTOTYPES |
|
27 // None |
|
28 |
|
29 // CONSTANTS |
|
30 // None |
|
31 |
|
32 // MACROS |
|
33 // None |
|
34 |
|
35 // LOCAL CONSTANTS AND MACROS |
|
36 // None |
|
37 |
|
38 // MODULE DATA STRUCTURES |
|
39 // None |
|
40 |
|
41 // ============================= LOCAL FUNCTIONS ============================= |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // CCchActiveScheduler::CCchActiveScheduler |
|
45 // C++ default constructor can NOT contain any code, that |
|
46 // might leave. |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 CCchActiveScheduler::CCchActiveScheduler() |
|
50 { |
|
51 } |
|
52 |
|
53 // Destructor |
|
54 CCchActiveScheduler::~CCchActiveScheduler() |
|
55 { |
|
56 } |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // CCchActiveScheduler::SetServer |
|
60 // |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 void CCchActiveScheduler::SetServer( |
|
64 CCCHServerBase* aServer ) |
|
65 { |
|
66 iServer = aServer; |
|
67 } |
|
68 |
|
69 // ----------------------------------------------------------------------------- |
|
70 // CCchActiveScheduler::Error |
|
71 // |
|
72 // ----------------------------------------------------------------------------- |
|
73 // |
|
74 void CCchActiveScheduler::Error( |
|
75 TInt aError ) const |
|
76 { |
|
77 CCHLOGSTRING2("CCchActiveScheduler::Error: %d", aError); |
|
78 |
|
79 if ( KErrServerTerminated == aError ) |
|
80 { |
|
81 CCHLOGSTRING("CCchActiveScheduler - Server terminated"); |
|
82 if ( iServer ) |
|
83 { |
|
84 iServer->Restart(); |
|
85 } |
|
86 } |
|
87 } |
|
88 |
|
89 // End of File |