|
1 /* |
|
2 * Copyright (c) 2004 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: Wait note container. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __CCNUIWAITNOTECONTAINER_H |
|
19 #define __CCNUIWAITNOTECONTAINER_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <E32base.h> |
|
23 #include "MCnUiUiFacade.h" |
|
24 #include <AknProgressDialog.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CAknWaitDialog; |
|
28 class MCnUiWaitNoteObserver; |
|
29 |
|
30 |
|
31 // CLASS DECLARATION |
|
32 /** |
|
33 * Wait note container. |
|
34 * |
|
35 * Wraps CAknWaitDialog behaviour. |
|
36 * |
|
37 * @since 2.1 |
|
38 */ |
|
39 NONSHARABLE_CLASS( CCnUiWaitNoteContainer ) : public CBase, |
|
40 public MCnUiConnWaitNote, |
|
41 public MProgressDialogCallback |
|
42 { |
|
43 |
|
44 public: // Two-phased constructors and destructor |
|
45 |
|
46 /** |
|
47 * Two-phased constructor. |
|
48 * |
|
49 * @since 2.1 |
|
50 * @param aNoteStructureResourceId Resource ID for wait note. |
|
51 * @param aLabelText The label text to show in UI. |
|
52 * @param aObserver The observer to notify. |
|
53 * Can be NULL, if NULL, no observer is notified from |
|
54 * note cancels. |
|
55 */ |
|
56 static CCnUiWaitNoteContainer* NewL( TInt aNoteStructureResourceId, |
|
57 const TDesC& aLabelText, |
|
58 MCnUiWaitNoteObserver* aObserver ); |
|
59 |
|
60 /** |
|
61 * Destructor. |
|
62 */ |
|
63 virtual ~CCnUiWaitNoteContainer(); |
|
64 |
|
65 private: |
|
66 |
|
67 /** |
|
68 * C++ constructor. |
|
69 * |
|
70 * @param aObserver The observer to notify. |
|
71 */ |
|
72 CCnUiWaitNoteContainer( MCnUiWaitNoteObserver* aObserver ); |
|
73 |
|
74 |
|
75 /** |
|
76 * Symbian OS constructor. |
|
77 * @param aLabelText The label text to show in UI. |
|
78 * @param aNoteStructureResourceId Resource ID for wait note. |
|
79 */ |
|
80 void ConstructL( const TDesC& aLabelText, TInt aNoteStructureResourceId ); |
|
81 |
|
82 |
|
83 public: //from MCnUiConnWaitNote |
|
84 /** |
|
85 * @see MCnUiConnWaitNote |
|
86 * @since 2.1 |
|
87 */ |
|
88 void PushLC(); |
|
89 |
|
90 |
|
91 public: //from MProgressDialogCallback |
|
92 /** |
|
93 * @see MProgressDialogCallback |
|
94 * @since 2.1 |
|
95 */ |
|
96 void DialogDismissedL( TInt aButtonId ); |
|
97 |
|
98 |
|
99 private: // data |
|
100 |
|
101 ///<The observer, not owned, can be NULL |
|
102 MCnUiWaitNoteObserver* iObserver; |
|
103 |
|
104 |
|
105 ///<The wait note, owned |
|
106 CAknWaitDialog* iWaitNote; |
|
107 }; |
|
108 |
|
109 #endif // __CCNUIWAITNOTECONTAINER_H |
|
110 |
|
111 // End of File |
|
112 |