equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-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 "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 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef __SYSMONSERVER_H__ |
|
23 #define __SYSMONSERVER_H__ |
|
24 |
|
25 #include <e32std.h> |
|
26 #include <e32base.h> |
|
27 |
|
28 class CMonitor; |
|
29 class CTimerList; |
|
30 |
|
31 /* |
|
32 SysMonServer is responsible for adding and canceling CMonitor objects. |
|
33 Implemented using single linked list. |
|
34 */ |
|
35 class CSysMonServer: public CServer2 |
|
36 { |
|
37 public: |
|
38 static CSysMonServer* NewLC(); |
|
39 void AddAndStartMonitorL(CMonitor* aMonitor); |
|
40 void CancelMonitor(const TProcessId& aProcessId); |
|
41 void CancelAllMonitors(); |
|
42 TBool ShutDownInProgress() const; |
|
43 CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const; |
|
44 CTimerList& TimerListL(); |
|
45 ~CSysMonServer(); |
|
46 |
|
47 private: |
|
48 CSysMonServer(); |
|
49 void ConstructL(); |
|
50 |
|
51 private: |
|
52 TBool iShutDownInProgress; |
|
53 TSglQue<CMonitor> iMonitors; |
|
54 TSglQueIter<CMonitor> iIter; |
|
55 CTimerList* iTimerList; |
|
56 }; |
|
57 |
|
58 #endif // __SYSMONSERVER_H__ |