bluetoothengine/btnotif/btdevicedialogplugin/inc/btdevicedialoginputwidget.h
author hgs
Fri, 03 Sep 2010 16:17:59 +0300
changeset 57 5ebadcda06cb
parent 29 48ae3789ce00
permissions -rw-r--r--
201035_7

/*
* Copyright (c) 2009 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:  BtDeviceDialogWidget class declaration.
*
*/


#ifndef BTDEVICEDIALOGINPUTWIDGET_H
#define BTDEVICEDIALOGINPUTWIDGET_H

#include <QVariantMap>

#include <hbdevicedialoginterface.h>
#include <hbdevicedialog.h>
#include <hbinputdialog.h>

/*!
    \class BtDeviceDialogInputWidget
    \brief Widget class with properties setting. 

    BtDeviceDialogInputWidget, inherited from HbDeviceDialogInterface , 
    uses HbInputDialog. 
    
 */
class BtDeviceDialogInputWidget :
    public QObject, public HbDeviceDialogInterface
{
    Q_OBJECT

public:
    BtDeviceDialogInputWidget(const QVariantMap &parameters);
    
    // From base class HbDeviceDialogInterface
    virtual bool setDeviceDialogParameters(const QVariantMap &parameters);
    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 inputClosed(HbAction *action);
    
private:
    void processParam(const QVariantMap &parameters);
    bool constructInputDialog(const QVariantMap &parameters);
    void resetProperties();

private:
    Q_DISABLE_COPY(BtDeviceDialogInputWidget)

    int mLastError;
    int mSendAction;
    bool mShowEventReceived;
    HbInputDialog *mInputDialog;
};

#endif // BTDEVICEDIALOGINPUTWIDGET_H