diff -r 16e4b9007960 -r f5508c13dfe0 bluetoothengine/btnotif/btdevicedialogplugin/inc/btdeviceokonlydialogwidget.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bluetoothengine/btnotif/btdevicedialogplugin/inc/btdeviceokonlydialogwidget.h Tue Oct 19 15:09:34 2010 +0300 @@ -0,0 +1,75 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: BtDeviceOkOnlyDialogWidget class declaration. +* +*/ + + +#ifndef BTDEVICEOKONLYDIALOGWIDGET_H +#define BTDEVICEOKONLYDIALOGWIDGET_H + +#include + +#include +#include +#include + +/*! + \class BtDeviceOkOnlyDialogWidget + \brief Widget class with properties setting. + + BtDeviceOkOnlyDialogWidget, inherited from HbDeviceDialogInterface, + implemented using HbMessageBox. + + */ +class BtDeviceOkOnlyDialogWidget : + public QObject, public HbDeviceDialogInterface +{ + Q_OBJECT + +public: + BtDeviceOkOnlyDialogWidget(HbMessageBox::MessageBoxType type, const QVariantMap ¶meters); + + // From base class HbDeviceDialogInterface + virtual bool setDeviceDialogParameters(const QVariantMap ¶meters); + virtual int deviceDialogError() const; + virtual void closeDeviceDialog(bool byClient); + virtual HbDialog *deviceDialogWidget() const; + virtual QObject *signalSender() const; + +signals: + // Required by the framework + void deviceDialogClosed(); + void deviceDialogData(QVariantMap data); + +public slots: + void messageBoxClosed(HbAction*); + +private: + void processParam(const QVariantMap ¶meters); + bool constructQueryDialog(const QVariantMap ¶meters); + void resetProperties(); + QString& GetPasskeyEntryStatusString(int aStatus); + +private: + Q_DISABLE_COPY(BtDeviceOkOnlyDialogWidget) + + int mLastError; + int mSendAction; + bool mShowEventReceived; + + HbMessageBox *mMessageBox; +}; + +#endif // BTDEVICEOKONLYDIALOGWIDGET_H