bluetoothengine/btnotif/btdevicedialogplugin/inc/btmoredevicesdialogwidget.h
changeset 33 837dcc42fd6a
child 40 997690c3397a
child 42 b72428996822
equal deleted inserted replaced
19:43824b19ee35 33:837dcc42fd6a
       
     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 
       
    19 #ifndef BTMOREDEVICESDIALOGWIDGET_H_
       
    20 #define BTMOREDEVICESDIALOGWIDGET_H_
       
    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 
       
    30 
       
    31 class BTMoreDevicesDialogWidget : public HbDialog,
       
    32                                 public HbDeviceDialogInterface
       
    33     {
       
    34     Q_OBJECT
       
    35     
       
    36 public:
       
    37     BTMoreDevicesDialogWidget(const QVariantMap &parameters);
       
    38     ~BTMoreDevicesDialogWidget();
       
    39     
       
    40 public: // from HbDeviceDialogInterface
       
    41     bool setDeviceDialogParameters(const QVariantMap &parameters);
       
    42     int deviceDialogError() const;
       
    43     void closeDeviceDialog(bool byClient);
       
    44     HbPopup *deviceDialogWidget() const;
       
    45   //  virtual QObject *signalSender() const;
       
    46     
       
    47 public slots:
       
    48     void moreDevicesClicked();
       
    49     void cancelClicked();
       
    50     void deviceSelected(const QModelIndex& modelIndex);
       
    51  //   void inputClosed(HbAction *action);
       
    52     
       
    53 private:
       
    54     bool constructDialog(const QVariantMap &parameters);
       
    55     void hideEvent(QHideEvent *event);
       
    56     void showEvent(QShowEvent *event);
       
    57     QIcon icon(/*QString deviceType*/);
       
    58     
       
    59 signals:
       
    60     void deviceDialogClosed();
       
    61     void deviceDialogData(QVariantMap  data);
       
    62     
       
    63 private:
       
    64     HbDocumentLoader *mLoader;
       
    65     int              mDeviceDialogData;
       
    66 //    HbAction *mMoreAction;
       
    67 //    HbAction *mCancelAction;
       
    68     
       
    69     /**
       
    70      * 
       
    71      * item model for content list view.
       
    72      */
       
    73     
       
    74     QStandardItemModel* mContentItemModel;
       
    75     
       
    76     Q_DISABLE_COPY(BTMoreDevicesDialogWidget)
       
    77     };
       
    78 
       
    79 #endif /* BTMOREDEVICESDIALOGWIDGET_H_ */