diff -r 0b2439c3e397 -r 4545c04e61e1 bluetoothengine/btnotif/btdevicedialogplugin/inc/btdevicesearchdialogwidget.h --- a/bluetoothengine/btnotif/btdevicedialogplugin/inc/btdevicesearchdialogwidget.h Tue Jul 06 14:27:09 2010 +0300 +++ b/bluetoothengine/btnotif/btdevicedialogplugin/inc/btdevicesearchdialogwidget.h Wed Aug 18 09:59:05 2010 +0300 @@ -30,14 +30,17 @@ #include #include #include +#include +#include "btdevicedialogutils.h" -struct device + +/*struct device { QString mDeviceName; QString mDeviceType; int mDeviceIdx; - }; + };*/ class BTDeviceSearchDialogWidget : public QObject, @@ -67,11 +70,15 @@ private: bool constructDialog(const QVariantMap ¶meters); - void hideEvent(QHideEvent *event); - void showEvent(QShowEvent *event); - void appendToDeviceList(const QString deviceName); - bool appendToDeviceTypeList(const QString deviceType); - QIcon icon(); + +private: + enum devTypeSelectionList { + BtUiDevAudioDevice = 0, + BtUiDevComputer, + BtUiDevInputDevice, + BtUiDevPhone, + BtUiDevOtherDevice + }; signals: void deviceDialogClosed(); @@ -86,25 +93,30 @@ */ QStandardItemModel* mContentItemModel; - HbDialog* mViewByDialog; - HbRadioButtonList* mRbl; - QList mDeviceTypeList; - QList mDeviceList; + + HbSelectionDialog *mQuery; +// QList mDeviceTypeList; + QStringList mDevTypeList; +// QList mDeviceList; HbListView* mListView; HbLabel* mSearchLabel; HbLabel* mSearchIconLabel; HbLabel* mSearchDoneLabel; - bool mViewByChosen; - QList mDeviceLstOfType; - int mDeviceLstIdx; - int mSelectedType; - int mDeviceDialogData; +// bool mViewByChosen; +// QList mDeviceLstOfType; +// int mDeviceLstIdx; + int mSelectedDeviceType; +// int mDeviceDialogData; HbDialog *mSearchDevicesDialog; HbAction *mStopRetryAction; - HbAction *mViewByAction; + HbAction *mShowAction; + HbAction *mCancelAction; int mStopRetryFlag; + BtSendDataSource mData; + BtSendDataSource mSelectedData; + Q_DISABLE_COPY(BTDeviceSearchDialogWidget) };