equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2008 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: Monitor for server |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef TSFSWMONITOR_H |
|
20 #define TSFSWMONITOR_H |
|
21 |
|
22 #include <e32debug.h> |
|
23 #include <w32std.h> |
|
24 |
|
25 class MHsDataObserver; |
|
26 class MTsFswResourceObserver; |
|
27 |
|
28 /** |
|
29 * Monitor for the fsw server. |
|
30 * Reimplements HandleWsEventL from base class to get notifications about |
|
31 * window group changes. |
|
32 */ |
|
33 class CTsFswMonitor : public CActive |
|
34 { |
|
35 public: |
|
36 ~CTsFswMonitor(); |
|
37 |
|
38 |
|
39 |
|
40 static CTsFswMonitor* NewL(MHsDataObserver& taskListObserver); |
|
41 static CTsFswMonitor* NewLC(MHsDataObserver& taskListObserver); |
|
42 |
|
43 protected: |
|
44 CTsFswMonitor(MHsDataObserver& taskListObserver); |
|
45 void ConstructL(); |
|
46 |
|
47 // from CActive |
|
48 void RunL(); |
|
49 TInt RunError( TInt error ); |
|
50 void DoCancel(); |
|
51 |
|
52 |
|
53 private: |
|
54 void Subscribe(); |
|
55 void ConstractObserverL(); |
|
56 private: |
|
57 MHsDataObserver* mTaskListObserver; // not own |
|
58 |
|
59 // window server session |
|
60 RWsSession mWsSession; |
|
61 |
|
62 // Window group. |
|
63 RWindowGroup mWg; |
|
64 }; |
|
65 |
|
66 #endif //TSFSWMONITOR_H |
|