31
|
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 |
|
42
|
19 |
#ifndef BTSENDDIALOGWIDGET_H
|
|
20 |
#define BTSENDDIALOGWIDGET_H
|
31
|
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 <hbprogressbar.h>
|
|
30 |
#include <hblabel.h>
|
|
31 |
#include <hblistview.h>
|
42
|
32 |
#include <hbaction.h>
|
31
|
33 |
|
|
34 |
|
42
|
35 |
class BTSendDialogWidget : public QObject,
|
31
|
36 |
public HbDeviceDialogInterface
|
|
37 |
{
|
|
38 |
Q_OBJECT
|
|
39 |
|
|
40 |
public:
|
|
41 |
BTSendDialogWidget(const QVariantMap ¶meters);
|
|
42 |
~BTSendDialogWidget();
|
|
43 |
|
|
44 |
public: // from HbDeviceDialogInterface
|
|
45 |
bool setDeviceDialogParameters(const QVariantMap ¶meters);
|
|
46 |
int deviceDialogError() const;
|
|
47 |
void closeDeviceDialog(bool byClient);
|
|
48 |
HbPopup *deviceDialogWidget() const;
|
|
49 |
virtual QObject *signalSender() const;
|
|
50 |
|
|
51 |
public slots:
|
|
52 |
// void hideClicked();
|
42
|
53 |
void cancelClicked();
|
|
54 |
// void inputClosed(HbAction* action);
|
31
|
55 |
private:
|
|
56 |
bool constructDialog(const QVariantMap ¶meters);
|
|
57 |
void hideEvent(QHideEvent *event);
|
|
58 |
void showEvent(QShowEvent *event);
|
|
59 |
|
|
60 |
signals:
|
|
61 |
void deviceDialogClosed();
|
|
62 |
|
|
63 |
private:
|
|
64 |
HbDocumentLoader *mLoader;
|
42
|
65 |
// QStandardItemModel* mContentItemModel;
|
31
|
66 |
HbProgressBar* mProgressBar;
|
42
|
67 |
HbLabel* mDialogHeading;
|
|
68 |
HbLabel* mFileIconLabel;
|
|
69 |
HbLabel* mFileNameLabel;
|
|
70 |
HbLabel* mFileSizeLabel;
|
|
71 |
|
|
72 |
// HbListView* mListView;
|
|
73 |
HbDialog *mSendDialog;
|
|
74 |
HbAction *mHideAction;
|
|
75 |
HbAction *mCancelAction;
|
|
76 |
int mFileIndex;
|
|
77 |
|
31
|
78 |
|
|
79 |
Q_DISABLE_COPY(BTSendDialogWidget)
|
|
80 |
};
|
|
81 |
|
42
|
82 |
#endif /* BTSENDDIALOGWIDGET_H */
|