bluetoothengine/btnotif/btdevicedialogplugin/inc/btdeviceokonlydialogwidget.h
changeset 70 f5508c13dfe0
equal deleted inserted replaced
67:16e4b9007960 70:f5508c13dfe0
       
     1 /*
       
     2 * Copyright (c) 2010 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:  BtDeviceOkOnlyDialogWidget class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BTDEVICEOKONLYDIALOGWIDGET_H
       
    20 #define BTDEVICEOKONLYDIALOGWIDGET_H
       
    21 
       
    22 #include <QVariantMap>
       
    23 
       
    24 #include <hbdevicedialoginterface.h>
       
    25 #include <hbdevicedialog.h>
       
    26 #include <hbmessagebox.h>
       
    27 
       
    28 /*!
       
    29     \class BtDeviceOkOnlyDialogWidget
       
    30     \brief Widget class with properties setting. 
       
    31 
       
    32     BtDeviceOkOnlyDialogWidget, inherited from HbDeviceDialogInterface, 
       
    33     implemented using HbMessageBox. 
       
    34     
       
    35  */
       
    36 class BtDeviceOkOnlyDialogWidget :
       
    37     public QObject, public HbDeviceDialogInterface
       
    38 {
       
    39     Q_OBJECT
       
    40     
       
    41 public:
       
    42     BtDeviceOkOnlyDialogWidget(HbMessageBox::MessageBoxType type, const QVariantMap &parameters);
       
    43     
       
    44     // From base class HbDeviceDialogInterface
       
    45     virtual bool setDeviceDialogParameters(const QVariantMap &parameters);
       
    46     virtual int deviceDialogError() const;
       
    47     virtual void closeDeviceDialog(bool byClient);
       
    48     virtual HbDialog *deviceDialogWidget() const;
       
    49     virtual QObject *signalSender() const;
       
    50     
       
    51 signals: 
       
    52     // Required by the framework
       
    53     void deviceDialogClosed();
       
    54     void deviceDialogData(QVariantMap data);
       
    55 
       
    56 public slots:
       
    57     void messageBoxClosed(HbAction*);
       
    58     
       
    59 private:
       
    60     void processParam(const QVariantMap &parameters);
       
    61     bool constructQueryDialog(const QVariantMap &parameters);
       
    62     void resetProperties();
       
    63     QString& GetPasskeyEntryStatusString(int aStatus);
       
    64         
       
    65 private:
       
    66     Q_DISABLE_COPY(BtDeviceOkOnlyDialogWidget)
       
    67 
       
    68     int mLastError;
       
    69     int mSendAction;
       
    70     bool mShowEventReceived;
       
    71     
       
    72     HbMessageBox *mMessageBox;
       
    73 };
       
    74 
       
    75 #endif // BTDEVICEOKONLYDIALOGWIDGET_H