|
1 /* |
|
2 * Copyright (c) 2010 Kanrikogaku Kenkyusho, Ltd. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "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 * Kanrikogaku Kenkyusho, Ltd. - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * {Description of the file} |
|
16 * |
|
17 */ |
|
18 |
|
19 // Protection against nested includes |
|
20 #ifndef __DIRECTPRINTBEARERMNGOBSERVER_H__ |
|
21 #define __DIRECTPRINTBEARERMNGOBSERVER_H__ |
|
22 |
|
23 // System includes |
|
24 #include <e32base.h> |
|
25 |
|
26 // Class declaration |
|
27 /** |
|
28 * Bearer manager observer mix-in class |
|
29 * more_complete_description |
|
30 */ |
|
31 class MDirectPrintBearerMngObserver |
|
32 { |
|
33 public: |
|
34 /** The ID of bearer event. */ |
|
35 enum TDirectPrintBearerMngEvents |
|
36 { |
|
37 EDirectPrintBearerMngErrorConnectBearer, |
|
38 EDirectPrintBearerMngConnectedBearer, |
|
39 // add any events, if needed |
|
40 |
|
41 // end of event |
|
42 EDirectPrintBearerMngEventEnd |
|
43 }; |
|
44 |
|
45 public: |
|
46 /** |
|
47 * Handles user events. |
|
48 * @param aEvent The ID of the event. |
|
49 * @param aError Error code. |
|
50 * @param aParam Parameter. |
|
51 */ |
|
52 virtual void HandleBearerMngEventL( |
|
53 TDirectPrintBearerMngEvents aEvent, |
|
54 TInt aError, |
|
55 const TDesC& aParam) = 0; |
|
56 |
|
57 /** |
|
58 * Handles user events. |
|
59 * @param aStatus The ID of the status. |
|
60 * @param aPercentCompletion Percentage of progress. |
|
61 * @param aJobStateCode The ID of job states. |
|
62 */ |
|
63 virtual void PrintJobProgressEvent( TInt aStatus, |
|
64 TInt aPercentCompletion, |
|
65 TInt aJobStateCode ) = 0; |
|
66 |
|
67 /** |
|
68 * Handles user events. |
|
69 * @param aError The ID of the error. |
|
70 * @param aErrorStringCode The ID of error strings. |
|
71 */ |
|
72 virtual void PrintJobErrorEvent( TInt aError, |
|
73 TInt aErrorStringCode ) = 0; |
|
74 |
|
75 /** |
|
76 * Handles user events. |
|
77 * @param aError The ID of the error. |
|
78 * @param aErrorStringCode The ID of error strings. |
|
79 */ |
|
80 virtual void PrinterStatusEvent( TInt aError, |
|
81 TInt aErrorStringCode ) = 0; |
|
82 |
|
83 /** |
|
84 * Handles user events. |
|
85 * @param aFsBitmapHandle The Handle of the bitmap. |
|
86 */ |
|
87 virtual void PreviewImageEvent( TInt aFsBitmapHandle ) = 0; |
|
88 |
|
89 /** |
|
90 * Show messages. |
|
91 * @param aMsgLine1Code The ID of message. |
|
92 * @param aMsgLine2Code The ID of message. |
|
93 */ |
|
94 virtual void ShowMessageL( TInt aMsgLine1Code, |
|
95 TInt aMsgLine2Code ) = 0; |
|
96 |
|
97 /** |
|
98 * Show Yes/No question. |
|
99 * @param aMsgLine1Code The ID of message. |
|
100 * @param aMsgLine2Code The ID of message. |
|
101 * @return ETrue is Yes. EFalse is No. |
|
102 */ |
|
103 virtual TBool AskYesNoQuestionL( TInt aMsgLine1Code, |
|
104 TInt aMsgLine2Code ) = 0; |
|
105 |
|
106 /** |
|
107 * input. |
|
108 * @param aMsgLine1Code The ID of message. |
|
109 * @param aMsgLine2Code The ID of message. |
|
110 * @return Inputed strings. |
|
111 */ |
|
112 virtual const TDesC& AskForInputL( TInt aMsgLine1Code, |
|
113 TInt aMsgLine2Code ) = 0; |
|
114 }; |
|
115 |
|
116 #endif // __DIRECTPRINTBEARERMNGOBSERVER_H__ |
|
117 // End of file |