|
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 |
|
18 |
|
19 #ifndef BTDEVICEINFOWIDGET_H |
|
20 #define BTDEVICEINFOWIDGET_H |
|
21 |
|
22 #include <QObject> |
|
23 #include <QVariantMap> |
|
24 #include <hbdevicedialoginterface.h> |
|
25 #include <hbmessagebox.h> |
|
26 |
|
27 |
|
28 class BtDeviceInfoWidget : public QObject, public HbDeviceDialogInterface |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 BtDeviceInfoWidget(const QVariantMap ¶meters); |
|
34 ~BtDeviceInfoWidget(); |
|
35 |
|
36 public: // from HbDeviceDialogInterface |
|
37 bool setDeviceDialogParameters(const QVariantMap ¶meters); |
|
38 int deviceDialogError() const; |
|
39 void closeDeviceDialog(bool byClient); |
|
40 HbPopup *deviceDialogWidget() const; |
|
41 QObject* signalSender() const; |
|
42 |
|
43 signals: |
|
44 void deviceDialogClosed(); |
|
45 void deviceDialogData(QVariantMap data); |
|
46 |
|
47 private: |
|
48 bool constructDialog(const QVariantMap ¶meters); |
|
49 |
|
50 public slots: |
|
51 void messageBoxClosed(HbAction *action); |
|
52 void messageBoxClosed(int action); |
|
53 |
|
54 private: |
|
55 HbMessageBox* mMessageBox; |
|
56 int mLastError; |
|
57 |
|
58 Q_DISABLE_COPY(BtDeviceInfoWidget) |
|
59 }; |
|
60 |
|
61 #endif /* BTDEVICEINFOWIDGET_H */ |