bluetoothengine/btnotif/btdevicedialogplugin/inc/btsenddialogwidget.h
changeset 42 b72428996822
parent 31 a0ea99b6fa53
child 67 16e4b9007960
equal deleted inserted replaced
32:19bd632b5100 42:b72428996822
    14  * Description:  
    14  * Description:  
    15  *
    15  *
    16  */
    16  */
    17 
    17 
    18 
    18 
    19 #ifndef BTSENDDIALOGWIDGET_H_
    19 #ifndef BTSENDDIALOGWIDGET_H
    20 #define BTSENDDIALOGWIDGET_H_
    20 #define BTSENDDIALOGWIDGET_H
    21 
    21 
    22 #include <QObject>
    22 #include <QObject>
    23 #include <QVariantMap>
    23 #include <QVariantMap>
    24 #include <hbdialog.h>
    24 #include <hbdialog.h>
    25 #include <hbdevicedialoginterface.h>
    25 #include <hbdevicedialoginterface.h>
    27 #include <hbdocumentloader.h>
    27 #include <hbdocumentloader.h>
    28 #include <qstandarditemmodel.h>
    28 #include <qstandarditemmodel.h>
    29 #include <hbprogressbar.h>
    29 #include <hbprogressbar.h>
    30 #include <hblabel.h>
    30 #include <hblabel.h>
    31 #include <hblistview.h>
    31 #include <hblistview.h>
       
    32 #include <hbaction.h>
    32 
    33 
    33 
    34 
    34 class BTSendDialogWidget : public HbDialog,
    35 class BTSendDialogWidget : public QObject,
    35                                 public HbDeviceDialogInterface
    36                                 public HbDeviceDialogInterface
    36     {
    37     {
    37     Q_OBJECT
    38     Q_OBJECT
    38     
    39     
    39 public:
    40 public:
    47     HbPopup *deviceDialogWidget() const;
    48     HbPopup *deviceDialogWidget() const;
    48     virtual QObject *signalSender() const;
    49     virtual QObject *signalSender() const;
    49     
    50     
    50 public slots:
    51 public slots:
    51 //    void hideClicked();
    52 //    void hideClicked();
    52 //    void cancelClicked();
    53     void cancelClicked();
    53     void inputClosed(HbAction* action);
    54 //    void inputClosed(HbAction* action);
    54 private:
    55 private:
    55     bool constructDialog(const QVariantMap &parameters);
    56     bool constructDialog(const QVariantMap &parameters);
    56     void hideEvent(QHideEvent *event);
    57     void hideEvent(QHideEvent *event);
    57     void showEvent(QShowEvent *event);
    58     void showEvent(QShowEvent *event);
    58     
    59     
    59 signals:
    60 signals:
    60     void deviceDialogClosed();
    61     void deviceDialogClosed();
    61     
    62     
    62 private:
    63 private:
    63     HbDocumentLoader *mLoader;
    64     HbDocumentLoader *mLoader;
    64     QStandardItemModel* mContentItemModel;
    65  //   QStandardItemModel* mContentItemModel;
    65     HbProgressBar*      mProgressBar;
    66     HbProgressBar*      mProgressBar;
    66     HbLabel*            mLabel;
    67     HbLabel*            mDialogHeading;
    67     HbListView*         mListView;
    68     HbLabel*            mFileIconLabel;
    68     int                 mFileIndex;
    69 	HbLabel*			mFileNameLabel;
       
    70 	HbLabel*			mFileSizeLabel;
       
    71     
       
    72 //    HbListView*         mListView;
       
    73     HbDialog *mSendDialog;
       
    74     HbAction *mHideAction;
       
    75     HbAction *mCancelAction;
       
    76     int       mFileIndex;
       
    77 
    69     
    78     
    70     Q_DISABLE_COPY(BTSendDialogWidget)
    79     Q_DISABLE_COPY(BTSendDialogWidget)
    71     };
    80     };
    72 
    81 
    73 #endif /* BTSENDDIALOGWIDGET_H_ */
    82 #endif /* BTSENDDIALOGWIDGET_H */