bluetoothengine/btnotif/btdevicedialogplugin/inc/btsenddialogwidget.h
changeset 67 16e4b9007960
parent 42 b72428996822
equal deleted inserted replaced
65:001a94c71129 67:16e4b9007960
     1 /*
     1 /*
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3  * All rights reserved.
     3  * All rights reserved.
     4  * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     5  * under the terms of "Eclipse Public License v1.0""
     5  * under the terms of "Eclipse Public License v1.0""
     6  * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    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>
       
    23 #include <QVariantMap>
    22 #include <QVariantMap>
    24 #include <hbdialog.h>
    23 #include <hbdialog.h>
    25 #include <hbdevicedialoginterface.h>
    24 #include <hbdevicedialoginterface.h>
    26 #include <hbpopup.h>
       
    27 #include <hbdocumentloader.h>
    25 #include <hbdocumentloader.h>
    28 #include <qstandarditemmodel.h>
       
    29 #include <hbprogressbar.h>
    26 #include <hbprogressbar.h>
    30 #include <hblabel.h>
    27 #include <hblabel.h>
    31 #include <hblistview.h>
       
    32 #include <hbaction.h>
    28 #include <hbaction.h>
    33 
    29 
    34 
    30 
    35 class BTSendDialogWidget : public QObject,
    31 class BTSendDialogWidget : public QObject,
    36                                 public HbDeviceDialogInterface
    32                                 public HbDeviceDialogInterface
    47     void closeDeviceDialog(bool byClient);
    43     void closeDeviceDialog(bool byClient);
    48     HbPopup *deviceDialogWidget() const;
    44     HbPopup *deviceDialogWidget() const;
    49     virtual QObject *signalSender() const;
    45     virtual QObject *signalSender() const;
    50     
    46     
    51 public slots:
    47 public slots:
    52 //    void hideClicked();
       
    53     void cancelClicked();
    48     void cancelClicked();
    54 //    void inputClosed(HbAction* action);
       
    55 private:
    49 private:
    56     bool constructDialog(const QVariantMap &parameters);
    50     void constructDialog(const QVariantMap &parameters);
    57     void hideEvent(QHideEvent *event);
       
    58     void showEvent(QShowEvent *event);
       
    59     
    51     
    60 signals:
    52 signals:
    61     void deviceDialogClosed();
    53     void deviceDialogClosed();
    62     
    54     
    63 private:
    55 private:
    64     HbDocumentLoader *mLoader;
    56     HbDocumentLoader *mLoader;
    65  //   QStandardItemModel* mContentItemModel;
    57     HbProgressBar    *mProgressBar;
    66     HbProgressBar*      mProgressBar;
    58     HbLabel *mDialogHeading;
    67     HbLabel*            mDialogHeading;
    59     HbLabel *mFileIconLabel;
    68     HbLabel*            mFileIconLabel;
    60 	HbLabel	*mFileNameLabel;
    69 	HbLabel*			mFileNameLabel;
    61 	HbLabel	*mFileSizeLabel;
    70 	HbLabel*			mFileSizeLabel;
       
    71     
       
    72 //    HbListView*         mListView;
       
    73     HbDialog *mSendDialog;
    62     HbDialog *mSendDialog;
    74     HbAction *mHideAction;
    63     HbAction *mHideAction;
    75     HbAction *mCancelAction;
    64     HbAction *mCancelAction;
    76     int       mFileIndex;
    65     int       mFileIndex;
       
    66     int 			mLastError;
    77 
    67 
    78     
    68     
    79     Q_DISABLE_COPY(BTSendDialogWidget)
    69     Q_DISABLE_COPY(BTSendDialogWidget)
    80     };
    70     };
    81 
    71