diff -r 0ba996a9b75d -r 613943a21004 bluetoothengine/btnotif/btdevicedialogplugin/inc/btdevicedialogplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bluetoothengine/btnotif/btdevicedialogplugin/inc/btdevicedialogplugin.h Tue Aug 31 15:25:10 2010 +0300 @@ -0,0 +1,75 @@ +/* +* 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: BtDeviceDialogPlugin class declaration. +* +*/ + + +#ifndef BTDEVICEDIALOGPLUGIN_P_H +#define BTDEVICEDIALOGPLUGIN_P_H + +#include +#include + +#include + +// Forward declarations +class BtDeviceDialogPluginPrivate; +class HbTranslator; + +/*! + \class BtDeviceDialogPlugin + \brief Device dialog widget plugin providing generic input dialog. + + BtDeviceDialogPlugin implements interface HbDeviceDialogPlugin and + creates device dialog widget, which allows user's input. + Currently this plugin implements only one dialog type, identified by + "com.nokia.hb.btdevicedialog/1.0". + + ToDo: create widget base on dialog types when multiple dialog types available. + */ +class BtDeviceDialogPlugin : public HbDeviceDialogPlugin +{ + Q_OBJECT + +public: + friend class BtDeviceDialogPluginPrivate; + + BtDeviceDialogPlugin(); + ~BtDeviceDialogPlugin(); + + // from base HbDeviceDialogPluginInterface + virtual HbDeviceDialogInterface *createDeviceDialog(const QString &deviceDialogType, + const QVariantMap ¶meters); + + // from base HbDeviceDialogPlugin + virtual bool accessAllowed(const QString &deviceDialogType, + const QVariantMap ¶meters, const QVariantMap &securityInfo) const; + virtual bool deviceDialogInfo(const QString &deviceDialogType, + const QVariantMap ¶meters, DeviceDialogInfo *info) const; + virtual QStringList deviceDialogTypes() const; + virtual PluginFlags pluginFlags() const; + virtual int error() const; + +private: + HbDeviceDialogInterface *checkDialogType( const QVariantMap ¶meters ); + +private: + Q_DISABLE_COPY(BtDeviceDialogPlugin) + BtDeviceDialogPluginPrivate *d; + HbTranslator* mDialogTranslator; + HbTranslator* mViewTranslator; +}; + +#endif // BTDEVICEDIALOGPLUGIN_P_H