equal
deleted
inserted
replaced
|
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 #include <QObject> |
|
19 #include <QTimeLine> |
|
20 #include <hbprogressdialog.h> |
|
21 #include <hbindicator.h> |
|
22 #include <download.h> |
|
23 |
|
24 using namespace WRT; |
|
25 class AppMgmtProgDialog : public QObject |
|
26 { |
|
27 Q_OBJECT |
|
28 |
|
29 public: |
|
30 AppMgmtProgDialog(QString aAppData, Download &mdl,int &aUserCancelled); |
|
31 ~AppMgmtProgDialog(); |
|
32 void startDialog(int aContentSize,int aDownloaded); |
|
33 void closeAMProgDialog(); |
|
34 void updateProgress(int aProgress); |
|
35 public slots: |
|
36 void hideAMProgDialog(); |
|
37 void cancelDialog(); |
|
38 private: |
|
39 void sendServerToBackground(); |
|
40 private: |
|
41 int iContentSize; |
|
42 int mUsrCancel; |
|
43 Download* iDl; |
|
44 QString m_Data; |
|
45 HbProgressDialog* m_Dlg; |
|
46 QString m_Name; |
|
47 QString m_SizeStr; |
|
48 HbIndicator* m_Indi; |
|
49 }; |