1 /* |
1 /* |
2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-2010 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 CIAUpdateWaitDialog class. |
14 * Description: This file contains the header file of the IAUpdateWaitDialog 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 <AknWaitDialog.h> |
24 #include <QObject> |
|
25 |
|
26 #include "iaupdatewaitdialog.h" |
25 |
27 |
26 |
28 |
27 // FORWARD DECLARATIONS |
29 // FORWARD DECLARATIONS |
|
30 class HbProgressDialog; |
28 class MIAUpdateWaitDialogObserver; |
31 class MIAUpdateWaitDialogObserver; |
29 |
32 |
30 // CLASS DECLARATION |
33 // CLASS DECLARATION |
31 |
34 |
32 /** |
35 /** |
33 * Wait dialog for IA Update client |
36 * Wait dialog for IA Update client |
34 */ |
37 */ |
35 class CIAUpdateWaitDialog : public CAknWaitDialog |
38 class IAUpdateWaitDialog : public QObject |
36 { |
39 { |
|
40 Q_OBJECT |
37 |
41 |
38 public: // Constructors and destructor |
42 public: // Constructors and destructor |
39 |
43 |
40 /** |
44 /** |
41 * Constructor |
45 * Constructor |
42 */ |
46 */ |
43 CIAUpdateWaitDialog( CEikDialog** aSelfPtr, TBool aVisibilityDelayOff ); |
47 IAUpdateWaitDialog(); |
44 |
48 |
45 virtual ~CIAUpdateWaitDialog(); |
49 ~IAUpdateWaitDialog(); |
46 |
50 |
47 public: |
51 public: // New functions |
|
52 |
|
53 int showDialog(const QString& text); |
48 |
54 |
49 /** |
55 void SetCallback(MIAUpdateWaitDialogObserver* callback ); |
50 * From CEikDialog, respond to softkey inputs. |
56 |
51 * @para aButtonId, type of pressed Button or Softkey |
57 void close(); |
52 * @return TBool, ETrue if exit the dialog, otherwise EFalse. |
58 |
53 */ |
59 public slots: |
54 TBool OkToExitL( TInt aButtonId ); |
|
55 |
60 |
56 public: // New functions |
61 void dialogCancelled(); |
57 void SetCallback( MIAUpdateWaitDialogObserver* aCallback ); |
|
58 |
62 |
59 private: //data |
63 private: //data |
60 |
64 |
61 MIAUpdateWaitDialogObserver* iCallback; |
65 HbProgressDialog *mWaitDialog; |
62 }; |
66 MIAUpdateWaitDialogObserver *mCallback; |
|
67 }; |
63 |
68 |
64 |
69 |
65 #endif // IAUPDATEWAITDIALOG_H |
70 #endif // IAUPDATEWAITDIALOG_H |
66 |
71 |
67 // End of file |
72 // End of file |