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: BtDeviceDialogWidget class declaration. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef BTDEVICEDIALOGRECVQUERYWIDGET_H |
|
20 #define BTDEVICEDIALOGRECVQUERYWIDGET_H |
|
21 |
|
22 #include <QObject> |
|
23 #include <QVariantMap> |
|
24 #include <hbdialog.h> |
|
25 #include <hbdevicedialoginterface.h> |
|
26 #include <hbpopup.h> |
|
27 #include <hbdocumentloader.h> |
|
28 #include <qstandarditemmodel.h> |
|
29 #include <hbcheckbox.h> |
|
30 #include <hblabel.h> |
|
31 #include <hbaction.h> |
|
32 |
|
33 |
|
34 class BTRecvQueryDialogWidget : public QObject, |
|
35 public HbDeviceDialogInterface |
|
36 { |
|
37 Q_OBJECT |
|
38 |
|
39 public: |
|
40 BTRecvQueryDialogWidget(const QVariantMap ¶meters); |
|
41 ~BTRecvQueryDialogWidget(); |
|
42 |
|
43 public: // from HbDeviceDialogInterface |
|
44 bool setDeviceDialogParameters(const QVariantMap ¶meters); |
|
45 int deviceDialogError() const; |
|
46 void closeDeviceDialog(bool byClient); |
|
47 HbPopup *deviceDialogWidget() const; |
|
48 virtual QObject *signalSender() const; |
|
49 |
|
50 public slots: |
|
51 void yesClicked(); |
|
52 void noClicked(); |
|
53 void checkBoxStateChanged(bool checked); |
|
54 |
|
55 private: |
|
56 bool constructDialog(const QVariantMap ¶meters); |
|
57 |
|
58 signals: |
|
59 void deviceDialogClosed(); |
|
60 void deviceDialogData(QVariantMap data); |
|
61 |
|
62 private: |
|
63 HbDocumentLoader *mLoader; |
|
64 QStandardItemModel *mContentItemModel; |
|
65 HbLabel *mHeading; |
|
66 HbLabel *mDeviceName; |
|
67 HbLabel *mDeviceType; |
|
68 HbLabel *mDeviceIcon; |
|
69 HbAction *mYes; |
|
70 HbAction *mNo; |
|
71 HbCheckBox *mCheckBox; |
|
72 HbDialog *mDialog; |
|
73 |
|
74 Q_DISABLE_COPY(BTRecvQueryDialogWidget) |
|
75 }; |
|
76 |
|
77 #endif /* BTDEVICEDIALOGRECVQUERYWIDGET_H */ |
|