|
1 /* |
|
2 * Copyright (c) 2010 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: Software install progress indicator |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SIFUIINSTALLINDICATORPLUGIN_H |
|
19 #define SIFUIINSTALLINDICATORPLUGIN_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <hbindicatorplugininterface.h> |
|
23 |
|
24 |
|
25 /** |
|
26 * Software install progress indicator plugin for the status indicator area |
|
27 * and/or in universal indicator popup. |
|
28 */ |
|
29 class SifUiInstallIndicatorPlugin : public QObject, public HbIndicatorPluginInterface |
|
30 { |
|
31 Q_OBJECT |
|
32 Q_INTERFACES(HbIndicatorPluginInterface) |
|
33 |
|
34 public: // constructor and destructor |
|
35 SifUiInstallIndicatorPlugin(); |
|
36 ~SifUiInstallIndicatorPlugin(); |
|
37 |
|
38 public: // from HbIndicatorPluginInterface |
|
39 QStringList indicatorTypes() const; |
|
40 bool accessAllowed(const QString &indicatorType, const QVariantMap &securityInfo) const; |
|
41 HbIndicatorInterface* createIndicator(const QString &indicatorType); |
|
42 int error() const; |
|
43 |
|
44 private: // new functions |
|
45 Q_DISABLE_COPY(SifUiInstallIndicatorPlugin) |
|
46 |
|
47 private: // data |
|
48 int mError; |
|
49 }; |
|
50 |
|
51 #endif // SIFUIINSTALLINDICATORPLUGIN_H |
|
52 |