29
|
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: BtDeviceDialogPlugin class declaration.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef BTDEVICEDIALOGPLUGIN_P_H
|
|
20 |
#define BTDEVICEDIALOGPLUGIN_P_H
|
|
21 |
|
|
22 |
#include <QObject>
|
|
23 |
#include <QVariantMap>
|
|
24 |
|
|
25 |
#include <hbdevicedialogplugin.h>
|
|
26 |
|
|
27 |
// Forward declarations
|
|
28 |
class BtDeviceDialogPluginPrivate;
|
42
|
29 |
class HbTranslator;
|
29
|
30 |
|
|
31 |
/*!
|
|
32 |
\class BtDeviceDialogPlugin
|
|
33 |
\brief Device dialog widget plugin providing generic input dialog.
|
|
34 |
|
|
35 |
BtDeviceDialogPlugin implements interface HbDeviceDialogPlugin and
|
|
36 |
creates device dialog widget, which allows user's input.
|
|
37 |
Currently this plugin implements only one dialog type, identified by
|
|
38 |
"com.nokia.hb.btdevicedialog/1.0".
|
|
39 |
|
|
40 |
ToDo: create widget base on dialog types when multiple dialog types available.
|
|
41 |
*/
|
|
42 |
class BtDeviceDialogPlugin : public HbDeviceDialogPlugin
|
|
43 |
{
|
|
44 |
Q_OBJECT
|
|
45 |
|
|
46 |
public:
|
|
47 |
friend class BtDeviceDialogPluginPrivate;
|
|
48 |
|
|
49 |
BtDeviceDialogPlugin();
|
|
50 |
~BtDeviceDialogPlugin();
|
|
51 |
|
|
52 |
// from base HbDeviceDialogPluginInterface
|
|
53 |
virtual HbDeviceDialogInterface *createDeviceDialog(const QString &deviceDialogType,
|
|
54 |
const QVariantMap ¶meters);
|
|
55 |
|
|
56 |
// from base HbDeviceDialogPlugin
|
|
57 |
virtual bool accessAllowed(const QString &deviceDialogType,
|
|
58 |
const QVariantMap ¶meters, const QVariantMap &securityInfo) const;
|
|
59 |
virtual bool deviceDialogInfo(const QString &deviceDialogType,
|
|
60 |
const QVariantMap ¶meters, DeviceDialogInfo *info) const;
|
|
61 |
virtual QStringList deviceDialogTypes() const;
|
|
62 |
virtual PluginFlags pluginFlags() const;
|
|
63 |
virtual int error() const;
|
|
64 |
|
|
65 |
private:
|
|
66 |
HbDeviceDialogInterface *checkDialogType( const QVariantMap ¶meters );
|
|
67 |
|
|
68 |
private:
|
|
69 |
Q_DISABLE_COPY(BtDeviceDialogPlugin)
|
|
70 |
BtDeviceDialogPluginPrivate *d;
|
42
|
71 |
HbTranslator* mDialogTranslator;
|
|
72 |
HbTranslator* mViewTranslator;
|
57
|
73 |
HbTranslator* mCommonErrorsTranslator;
|
29
|
74 |
};
|
|
75 |
|
|
76 |
#endif // BTDEVICEDIALOGPLUGIN_P_H
|