31
|
1 |
/*
|
70
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
31
|
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 |
|
42
|
19 |
#ifndef BTMOREDEVICESDIALOGWIDGET_H
|
|
20 |
#define BTMOREDEVICESDIALOGWIDGET_H
|
31
|
21 |
|
47
|
22 |
#include "btdevicedialogutils.h"
|
31
|
23 |
#include <QObject>
|
|
24 |
#include <QVariantMap>
|
|
25 |
#include <hbdialog.h>
|
|
26 |
#include <hbdevicedialoginterface.h>
|
|
27 |
#include <hbpopup.h>
|
|
28 |
#include <hbdocumentloader.h>
|
|
29 |
#include <qstandarditemmodel.h>
|
42
|
30 |
#include <hbaction.h>
|
31
|
31 |
|
42
|
32 |
class BTMoreDevicesDialogWidget : public QObject, public HbDeviceDialogInterface
|
31
|
33 |
{
|
|
34 |
Q_OBJECT
|
|
35 |
|
|
36 |
public:
|
|
37 |
BTMoreDevicesDialogWidget(const QVariantMap ¶meters);
|
|
38 |
~BTMoreDevicesDialogWidget();
|
|
39 |
|
42
|
40 |
public: // from HbDeviceDialogInterface`
|
31
|
41 |
bool setDeviceDialogParameters(const QVariantMap ¶meters);
|
|
42 |
int deviceDialogError() const;
|
|
43 |
void closeDeviceDialog(bool byClient);
|
|
44 |
HbPopup *deviceDialogWidget() const;
|
42
|
45 |
virtual QObject *signalSender() const;
|
31
|
46 |
|
|
47 |
public slots:
|
|
48 |
void moreDevicesClicked();
|
|
49 |
void cancelClicked();
|
|
50 |
void deviceSelected(const QModelIndex& modelIndex);
|
|
51 |
// void inputClosed(HbAction *action);
|
|
52 |
|
|
53 |
private:
|
70
|
54 |
void constructDialog(const QVariantMap ¶meters);
|
31
|
55 |
|
|
56 |
signals:
|
|
57 |
void deviceDialogClosed();
|
|
58 |
void deviceDialogData(QVariantMap data);
|
|
59 |
|
|
60 |
private:
|
|
61 |
HbDocumentLoader *mLoader;
|
57
|
62 |
HbDialog *mLastUsedDeviceDialog;
|
42
|
63 |
HbAction *mMoreAction;
|
|
64 |
HbAction *mCancelAction;
|
31
|
65 |
QStandardItemModel* mContentItemModel;
|
47
|
66 |
BtSendDataSource mData;
|
70
|
67 |
int mLastError;
|
47
|
68 |
|
31
|
69 |
Q_DISABLE_COPY(BTMoreDevicesDialogWidget)
|
|
70 |
};
|
|
71 |
|
42
|
72 |
#endif /* BTMOREDEVICESDIALOGWIDGET_H */
|