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 #ifndef BTRECVPRGRSDIALOGWIDGET_H |
|
19 #define BTRECVPRGRSDIALOGWIDGET_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <QVariantMap> |
|
23 #include <hbdialog.h> |
|
24 #include <hbdevicedialoginterface.h> |
|
25 #include <hbpopup.h> |
|
26 #include <hbdocumentloader.h> |
|
27 #include <qstandarditemmodel.h> |
|
28 #include <hbprogressbar.h> |
|
29 #include <hblabel.h> |
|
30 #include <hbaction.h> |
|
31 |
|
32 |
|
33 class BTRecvPrgrsDialogWidget : public QObject, |
|
34 public HbDeviceDialogInterface |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 public: |
|
39 BTRecvPrgrsDialogWidget(const QVariantMap ¶meters); |
|
40 ~BTRecvPrgrsDialogWidget(); |
|
41 |
|
42 public: // from HbDeviceDialogInterface |
|
43 bool setDeviceDialogParameters(const QVariantMap ¶meters); |
|
44 int deviceDialogError() const; |
|
45 void closeDeviceDialog(bool byClient); |
|
46 HbPopup *deviceDialogWidget() const; |
|
47 virtual QObject *signalSender() const; |
|
48 |
|
49 public slots: |
|
50 void hideClicked(); |
|
51 void cancelClicked(); |
|
52 |
|
53 private: |
|
54 bool constructDialog(const QVariantMap ¶meters); |
|
55 |
|
56 signals: |
|
57 void deviceDialogClosed(); |
|
58 void deviceDialogData(QVariantMap data); |
|
59 |
|
60 private: |
|
61 HbDocumentLoader *mLoader; |
|
62 QStandardItemModel *mContentItemModel; |
|
63 HbLabel *mHeading; |
|
64 HbLabel *mFileName; |
|
65 HbLabel *mFileSize; |
|
66 HbLabel *mFileCount; |
|
67 HbAction *mHide; |
|
68 HbAction *mCancel; |
|
69 HbDialog *mDialog; |
|
70 HbProgressBar *mProgressBar; |
|
71 int mFileSz; |
|
72 |
|
73 Q_DISABLE_COPY(BTRecvPrgrsDialogWidget) |
|
74 }; |
|
75 |
|
76 #endif /* BTRECVPRGRSDIALOGWIDGET_H */ |
|