bluetoothengine/btnotif/btdevicedialogplugin/inc/btdevicesearchdialogwidget.h
changeset 57 5ebadcda06cb
parent 47 9e2a905b887f
child 70 f5508c13dfe0
equal deleted inserted replaced
51:625f43ae9362 57:5ebadcda06cb
    31 #include <hblabel.h>
    31 #include <hblabel.h>
    32 #include <hbaction.h>
    32 #include <hbaction.h>
    33 #include <hbselectiondialog.h>
    33 #include <hbselectiondialog.h>
    34 #include "btdevicedialogutils.h"
    34 #include "btdevicedialogutils.h"
    35 
    35 
    36 
       
    37 
       
    38 /*struct device
       
    39     {
       
    40     QString mDeviceName;
       
    41     QString mDeviceType;
       
    42     int     mDeviceIdx;
       
    43     };*/
       
    44 
       
    45 
       
    46 class BTDeviceSearchDialogWidget : public QObject,
    36 class BTDeviceSearchDialogWidget : public QObject,
    47                                 public HbDeviceDialogInterface
    37                                 public HbDeviceDialogInterface
    48     {
    38     {
    49     Q_OBJECT
    39     Q_OBJECT
    50     
    40     
    59     HbPopup *deviceDialogWidget() const;
    49     HbPopup *deviceDialogWidget() const;
    60     virtual QObject *signalSender() const;
    50     virtual QObject *signalSender() const;
    61     
    51     
    62 public slots:
    52 public slots:
    63     void stopRetryClicked();
    53     void stopRetryClicked();
    64     void retryClicked();
       
    65     void viewByClicked();
    54     void viewByClicked();
    66     void deviceSelected(const QModelIndex& modelIndex);
    55     void deviceSelected(const QModelIndex& modelIndex);
    67 //    void viewByItemSelected(int index);
       
    68     void selectionDialogClosed(HbAction *action);
    56     void selectionDialogClosed(HbAction *action);
    69     void searchDialogClosed(); 
    57     void searchDialogClosed(); 
    70     
    58     
    71 private:
    59 private:
    72     bool constructDialog(const QVariantMap &parameters);
    60     bool constructDialog(const QVariantMap &parameters);
    85     void deviceDialogData(QVariantMap  data);
    73     void deviceDialogData(QVariantMap  data);
    86     
    74     
    87 private:
    75 private:
    88     HbDocumentLoader *mLoader;
    76     HbDocumentLoader *mLoader;
    89     
    77     
    90     /**
       
    91      * 
       
    92      * item model for content list view.
       
    93      */
       
    94     
       
    95     QStandardItemModel* mContentItemModel;
    78     QStandardItemModel* mContentItemModel;
    96     
    79     
    97     HbSelectionDialog *mQuery;
    80     HbSelectionDialog *mQuery;
    98 //    QList<QString>      mDeviceTypeList;
       
    99     QStringList mDevTypeList;
    81     QStringList mDevTypeList;
   100 //    QList<device>       mDeviceList;
    82     HbListView*         mDeviceList;
   101     HbListView*         mListView;
       
   102     HbLabel*            mSearchLabel; 
    83     HbLabel*            mSearchLabel; 
   103     HbLabel*            mSearchIconLabel;
    84     HbLabel*            mSearchIconLabel;
   104     HbLabel*            mSearchDoneLabel;
    85     HbLabel*            mSearchDoneLabel;
   105 //    bool                mViewByChosen;
       
   106 //    QList<device>       mDeviceLstOfType;
       
   107 //    int                 mDeviceLstIdx;
       
   108     int                 mSelectedDeviceType;
    86     int                 mSelectedDeviceType;
   109 //    int                 mDeviceDialogData;
       
   110     HbDialog *mSearchDevicesDialog;
    87     HbDialog *mSearchDevicesDialog;
   111     HbAction *mStopRetryAction;
    88     HbAction *mStopRetryAction;
   112     HbAction *mShowAction;
    89     HbAction *mShowAction;
   113     HbAction *mCancelAction;
    90     HbAction *mCancelAction;
   114 
    91