99
|
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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef TSDEVICEDIALOGPLUGIN_H
|
|
19 |
#define TSDEVICEDIALOGPLUGIN_H
|
|
20 |
|
|
21 |
#include <QVariantMap>
|
112
|
22 |
|
|
23 |
#include <HbDeviceDialogPlugin>
|
99
|
24 |
|
|
25 |
#include "tsdocumentloader.h"
|
|
26 |
|
112
|
27 |
class QAbstractListModel;
|
99
|
28 |
class TsTaskMonitor;
|
112
|
29 |
|
99
|
30 |
class TsDeviceDialogPlugin : public HbDeviceDialogPlugin
|
|
31 |
{
|
|
32 |
Q_OBJECT
|
|
33 |
|
|
34 |
public:
|
|
35 |
TsDeviceDialogPlugin();
|
|
36 |
~TsDeviceDialogPlugin();
|
|
37 |
|
116
|
38 |
bool accessAllowed(const QString &deviceDialogType,
|
|
39 |
const QVariantMap ¶meters,
|
107
|
40 |
const QVariantMap &securityInfo) const;
|
116
|
41 |
HbDeviceDialogInterface *createDeviceDialog(const QString &deviceDialogType,
|
107
|
42 |
const QVariantMap ¶meters);
|
116
|
43 |
bool deviceDialogInfo(const QString &deviceDialogType,
|
|
44 |
const QVariantMap ¶meters,
|
107
|
45 |
DeviceDialogInfo *info) const;
|
99
|
46 |
QStringList deviceDialogTypes() const;
|
|
47 |
PluginFlags pluginFlags() const;
|
|
48 |
int error() const;
|
|
49 |
|
|
50 |
private:
|
|
51 |
TsDocumentLoader mLoader;
|
|
52 |
QAbstractListModel *mModel;
|
|
53 |
TsTaskMonitor *mStorage;
|
|
54 |
|
|
55 |
bool mTriedToLoadTranslation;
|
116
|
56 |
|
99
|
57 |
Q_DISABLE_COPY(TsDeviceDialogPlugin)
|
|
58 |
};
|
|
59 |
|
|
60 |
#endif // TSDEVICEDIALOGPLUGIN_H
|