bluetoothengine/btnotif/btdevicedialogplugin/inc/btmoredevicesdialogwidget.h
branchRCL_3
changeset 55 613943a21004
equal deleted inserted replaced
54:0ba996a9b75d 55:613943a21004
       
     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 "btdevicedialogutils.h"
       
    23 #include <QObject>
       
    24 #include <QVariantMap>
       
    25 #include <hbdialog.h>
       
    26 #include <hbdevicedialoginterface.h>
       
    27 #include <hbpopup.h>
       
    28 #include <hbdocumentloader.h>
       
    29 #include <qstandarditemmodel.h>
       
    30 #include <hbaction.h>
       
    31 
       
    32 class BTMoreDevicesDialogWidget : public QObject,  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  //   void setMajorProperty(
       
    59 //           BtSendDataItem& qtdev, int prop, bool addto);
       
    60     
       
    61 signals:
       
    62     void deviceDialogClosed();
       
    63     void deviceDialogData(QVariantMap  data);
       
    64     
       
    65 private:
       
    66     HbDocumentLoader *mLoader;
       
    67     int              mDeviceDialogData;
       
    68     HbDialog *mMoreDeviceDialog;
       
    69     HbAction *mMoreAction;
       
    70     HbAction *mCancelAction;
       
    71     
       
    72     /**
       
    73      * 
       
    74      * item model for content list view.
       
    75      */
       
    76     
       
    77     QStandardItemModel* mContentItemModel;
       
    78     
       
    79     BtSendDataSource mData;
       
    80     
       
    81     Q_DISABLE_COPY(BTMoreDevicesDialogWidget)
       
    82     };
       
    83 
       
    84 #endif /* BTMOREDEVICESDIALOGWIDGET_H */