1 /* |
1 /* |
2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: This file contains the header file of the IAUpdateWaitDialog class. |
14 * Description: This file contains the header file of the CIAUpdateWaitDialog class. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 |
19 |
20 #ifndef IAUPDATEWAITDIALOG_H |
20 #ifndef IAUPDATEWAITDIALOG_H |
21 #define IAUPDATEWAITDIALOG_H |
21 #define IAUPDATEWAITDIALOG_H |
22 |
22 |
23 // INCLUDES |
23 // INCLUDES |
24 #include <QObject> |
24 #include <AknWaitDialog.h> |
25 |
|
26 #include "iaupdatewaitdialog.h" |
|
27 |
25 |
28 |
26 |
29 // FORWARD DECLARATIONS |
27 // FORWARD DECLARATIONS |
30 class HbProgressDialog; |
|
31 class MIAUpdateWaitDialogObserver; |
28 class MIAUpdateWaitDialogObserver; |
32 |
29 |
33 // CLASS DECLARATION |
30 // CLASS DECLARATION |
34 |
31 |
35 /** |
32 /** |
36 * Wait dialog for IA Update client |
33 * Wait dialog for IA Update client |
37 */ |
34 */ |
38 class IAUpdateWaitDialog : public QObject |
35 class CIAUpdateWaitDialog : public CAknWaitDialog |
39 { |
36 { |
40 Q_OBJECT |
|
41 |
37 |
42 public: // Constructors and destructor |
38 public: // Constructors and destructor |
43 |
39 |
44 /** |
40 /** |
45 * Constructor |
41 * Constructor |
46 */ |
42 */ |
47 IAUpdateWaitDialog(); |
43 CIAUpdateWaitDialog( CEikDialog** aSelfPtr, TBool aVisibilityDelayOff ); |
48 |
44 |
49 ~IAUpdateWaitDialog(); |
45 virtual ~CIAUpdateWaitDialog(); |
50 |
46 |
51 public: // New functions |
47 public: |
52 |
|
53 int showDialog(const QString& text); |
|
54 |
48 |
55 void SetCallback(MIAUpdateWaitDialogObserver* callback ); |
49 /** |
56 |
50 * From CEikDialog, respond to softkey inputs. |
57 void close(); |
51 * @para aButtonId, type of pressed Button or Softkey |
58 |
52 * @return TBool, ETrue if exit the dialog, otherwise EFalse. |
59 public slots: |
53 */ |
|
54 TBool OkToExitL( TInt aButtonId ); |
60 |
55 |
61 void dialogCancelled(); |
56 public: // New functions |
|
57 void SetCallback( MIAUpdateWaitDialogObserver* aCallback ); |
62 |
58 |
63 private: //data |
59 private: //data |
64 |
60 |
65 HbProgressDialog *mWaitDialog; |
61 MIAUpdateWaitDialogObserver* iCallback; |
66 MIAUpdateWaitDialogObserver *mCallback; |
62 }; |
67 }; |
|
68 |
63 |
69 |
64 |
70 #endif // IAUPDATEWAITDIALOG_H |
65 #endif // IAUPDATEWAITDIALOG_H |
71 |
66 |
72 // End of file |
67 // End of file |