42
|
1 |
/*
|
70
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
42
|
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 |
|
47
|
19 |
#ifndef BTDEVICEDIALOGRECVQUERYWIDGET_H
|
|
20 |
#define BTDEVICEDIALOGRECVQUERYWIDGET_H
|
42
|
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:
|
70
|
56 |
void constructDialog(const QVariantMap ¶meters);
|
42
|
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;
|
57
|
69 |
HbAction *mYesAction;
|
|
70 |
HbAction *mNoAction;
|
|
71 |
HbCheckBox *mAuthorizeUser;
|
42
|
72 |
HbDialog *mDialog;
|
70
|
73 |
int mError;
|
42
|
74 |
|
|
75 |
Q_DISABLE_COPY(BTRecvQueryDialogWidget)
|
|
76 |
};
|
|
77 |
|
47
|
78 |
#endif /* BTDEVICEDIALOGRECVQUERYWIDGET_H */
|