|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * |
|
5 * This program is free software: you can redistribute it and/or modify |
|
6 * it under the terms of the GNU Lesser General Public License as published by |
|
7 * the Free Software Foundation, version 2.1 of the License. |
|
8 * |
|
9 * This program is distributed in the hope that it will be useful, |
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 * GNU Lesser General Public License for more details. |
|
13 * |
|
14 * You should have received a copy of the GNU Lesser General Public License |
|
15 * along with this program. If not, |
|
16 * see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". |
|
17 * |
|
18 * Description: |
|
19 * |
|
20 */ |
|
21 |
|
22 #ifndef APPMGRCLIENT_H |
|
23 #define APPMGRCLIENT_H |
|
24 |
|
25 #include <QVBoxLayout> |
|
26 #include <QWidget> |
|
27 #include <QModelIndex> |
|
28 #include <QMap> |
|
29 #include <QStringList> |
|
30 #include <QPushButton> |
|
31 #include <QMenu> |
|
32 #include <QSpinBox> |
|
33 #include <xqappmgr.h> |
|
34 #include <XQSharableFile.h> |
|
35 #include <QTimer> |
|
36 |
|
37 class QLineEdit; |
|
38 class QCheckBox; |
|
39 class QLabel; |
|
40 |
|
41 class NotificationsReceiver : public QWidget |
|
42 { |
|
43 Q_OBJECT |
|
44 |
|
45 public: |
|
46 NotificationsReceiver( QWidget *parent = 0, Qt::WFlags f = 0 ); |
|
47 ~NotificationsReceiver(); |
|
48 |
|
49 public slots: |
|
50 void serviceStarted(XQAiwInterfaceDescriptor dscr); |
|
51 void serviceStopped(XQAiwInterfaceDescriptor dscr); |
|
52 |
|
53 void poolForService(); |
|
54 |
|
55 private: |
|
56 void initUi(); |
|
57 |
|
58 private: |
|
59 static QString POOLING_TEMPLATE; |
|
60 static QString NOTIFY_TEMPLATE; |
|
61 |
|
62 QTimer poolingTimer; |
|
63 |
|
64 XQApplicationManager *mgr; |
|
65 XQAiwInterfaceDescriptor *pooledDescr; |
|
66 |
|
67 QVBoxLayout *vl; |
|
68 QLabel *labelServiceName; |
|
69 QLabel *labelPoolingResult; |
|
70 QLabel *labelNotifyResult; |
|
71 }; |
|
72 |
|
73 #endif |