|
1 /* |
|
2 * Copyright (c) 2006, 2007 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: Header file for notes |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CNOTES_H |
|
19 #define CNOTES_H |
|
20 |
|
21 |
|
22 #include <aknview.h> |
|
23 #include <AknProgressDialog.h> |
|
24 #include <AknWaitDialog.h> |
|
25 #include <e32base.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class MProgressDialogCallback; |
|
29 class CEikProgressInfo; |
|
30 class CImagePrintUiAppUi; |
|
31 |
|
32 |
|
33 |
|
34 /** |
|
35 * Class for showing different notes |
|
36 */ |
|
37 class CNotes : public CBase, public MProgressDialogCallback |
|
38 { |
|
39 |
|
40 public: |
|
41 |
|
42 |
|
43 /** |
|
44 * Factory method NewL |
|
45 * @param aPrintUiAppUi the pointer to AppUi class |
|
46 * @return the new object |
|
47 */ |
|
48 static CNotes* NewL(CImagePrintUiAppUi* aPrintUiAppUi); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CNotes(); |
|
54 |
|
55 |
|
56 /** |
|
57 * Shows all string based info notes |
|
58 * @return none |
|
59 */ |
|
60 void ShowInfoNoteL(TInt aResourceId ); |
|
61 /** |
|
62 * Shows all string based wait notes |
|
63 * @return none |
|
64 */ |
|
65 void ShowNoteL(TUint aNoteType); |
|
66 |
|
67 /** |
|
68 * Shows print progress note |
|
69 * @return none |
|
70 */ |
|
71 void ShowProgressNoteL(); |
|
72 |
|
73 /** |
|
74 * Informs printing progress |
|
75 * @return none |
|
76 */ |
|
77 void PrintProgress(TUint aProgress ); |
|
78 |
|
79 /** |
|
80 * Informs printing progrees |
|
81 * @return none |
|
82 */ |
|
83 void PrintProgressL(TUint aProgress ); |
|
84 |
|
85 /** |
|
86 * Prepare print progress note |
|
87 * @return none |
|
88 */ |
|
89 void PrepareShowProgressNoteL(); |
|
90 |
|
91 /** |
|
92 * Shows all string based error messages |
|
93 * @return none |
|
94 */ |
|
95 void ShowErrorMsgL(TUint aErr ); |
|
96 |
|
97 /** |
|
98 * Stop shows all string based notes |
|
99 * @return none |
|
100 */ |
|
101 void StopShowNote(TUint aNoteType); |
|
102 |
|
103 /** |
|
104 * Start show printing note |
|
105 * @return none |
|
106 */ |
|
107 void StartPrintingNotesL(); |
|
108 |
|
109 /** |
|
110 * Finish print progress note |
|
111 * @return none |
|
112 */ |
|
113 void PrintFinished(); |
|
114 |
|
115 /** |
|
116 * Sat cancel state |
|
117 * @return none |
|
118 */ |
|
119 void SetCancelState(TBool aCancel); |
|
120 |
|
121 /** |
|
122 * Set disconnect state |
|
123 * @return none |
|
124 */ |
|
125 void SetDisconnectState(TBool aDisconnect); |
|
126 |
|
127 |
|
128 public: |
|
129 |
|
130 /** |
|
131 * From MProgressDialogCallback |
|
132 * Get's called when a dialog is dismissed. |
|
133 * @param aButtonId Id of the pressed button. |
|
134 * @return None. |
|
135 */ |
|
136 void DialogDismissedL( TInt aButtonId ); |
|
137 |
|
138 private: |
|
139 |
|
140 /** |
|
141 * C++ default constructor |
|
142 * @param aPrintUiAppUi the pointer to AppUi class |
|
143 */ |
|
144 CNotes(CImagePrintUiAppUi* aPrintUiAppUi ); |
|
145 |
|
146 private: // data |
|
147 |
|
148 /** |
|
149 * Wait dialog for telling the user to connect the cable |
|
150 * Own |
|
151 */ |
|
152 CAknWaitDialog* iWaitNote; |
|
153 |
|
154 CAknProgressDialog* iProgressDialog; |
|
155 CImagePrintUiAppUi* iPrintUiAppUi; |
|
156 TBool iDisconnect; |
|
157 TBool iCancelling; |
|
158 |
|
159 }; |
|
160 |
|
161 #endif // CNOTES_H |