|
1 /* |
|
2 * Copyright (c) 2000 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: Implementation of applicationmanagement components |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef AMWAITPROGDIALOG_H_ |
|
19 #define AMWAITPROGDIALOG_H_ |
|
20 |
|
21 #include <QObject> |
|
22 #include <hbprogressdialog.h> |
|
23 #include <hbindicator.h> |
|
24 #include <usif/sif/sif.h> |
|
25 #include "ApplicationManagementUtility.h" |
|
26 |
|
27 class MInstallerCallBack |
|
28 { |
|
29 public: |
|
30 virtual void InstallationCancelled()=0; |
|
31 }; |
|
32 class AMWaitProgDialog : public QObject |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 public: |
|
37 AMWaitProgDialog(QString aAppName,MInstallerCallBack& aCallback ); |
|
38 ~AMWaitProgDialog(); |
|
39 |
|
40 void createWaitDialog(TInt aType); |
|
41 void closeAMWaitDialog(); |
|
42 void startIndicator(); |
|
43 void registerInstallRequest(TRequestStatus &aStat); |
|
44 public slots: |
|
45 void hideAMWaitDialog(); |
|
46 void cancelWaitDialog(); |
|
47 |
|
48 private: |
|
49 HbProgressDialog* mDlg; |
|
50 HbIndicator* mIndi; |
|
51 TRequestStatus* m_Stat; |
|
52 QString m_appname; |
|
53 TInt mType; |
|
54 int mIndicatorDeactive; |
|
55 MInstallerCallBack& m_callback; |
|
56 }; |
|
57 |
|
58 #endif |