|
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: |
|
15 * |
|
16 */ |
|
17 #ifndef TSTASKMONITOR_P_H |
|
18 #define TSTASKMONITOR_P_H |
|
19 |
|
20 |
|
21 #include <w32std.h> |
|
22 |
|
23 #include <QList> |
|
24 #include <QSharedPointer> |
|
25 #include <QPair> |
|
26 |
|
27 #include "tstaskmonitorobserver.h" |
|
28 #include "tstasklauncher.h" |
|
29 #include "tstaskmonitor.h" |
|
30 |
|
31 class RDesReadStream; |
|
32 class TsTask; |
|
33 class TsTaskContent; |
|
34 class CTsTaskMonitorClient; |
|
35 |
|
36 class TsTaskMonitorPrivate : public MTsTaskMonitorObserver, public TsTaskLauncher |
|
37 { |
|
38 public: |
|
39 TsTaskMonitorPrivate(TsTaskMonitor *q); |
|
40 virtual ~TsTaskMonitorPrivate(); |
|
41 |
|
42 public: |
|
43 QList<TsTaskChange> changeList(); |
|
44 |
|
45 public: // from MTsTaskMonitorObserver |
|
46 virtual void HandleRunningAppChange(); |
|
47 |
|
48 public: // from TsTaskLauncher |
|
49 virtual void openTask(const QByteArray &key); |
|
50 virtual void closeTask(const QByteArray &key); |
|
51 |
|
52 private: // helper methods |
|
53 void internalizeContentL(RDesReadStream &dataStream, QScopedPointer<TsTaskContent> &content); |
|
54 |
|
55 private: |
|
56 TsTaskMonitor *q_ptr; |
|
57 CTsTaskMonitorClient *mClient; |
|
58 RWsSession &mWsSession; |
|
59 }; |
|
60 |
|
61 #endif //TSTASKMONITOR_P_H |