|
1 /* |
|
2 * Copyright (c) 2004-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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MIDLEPRINTEVENTOBSERVER_H |
|
20 #define MIDLEPRINTEVENTOBSERVER_H |
|
21 |
|
22 #include <e32def.h> |
|
23 #include <e32std.h> |
|
24 |
|
25 enum TImgPrintUSBState |
|
26 { |
|
27 EUSBUndefined = 0, |
|
28 EUSBConnected, |
|
29 ENOUSBEvent |
|
30 }; |
|
31 |
|
32 // CLASS DEFINITION |
|
33 /** |
|
34 * |
|
35 * Interface to notify UI about idle state events |
|
36 * |
|
37 */ |
|
38 class MIdlePrintEventObserver |
|
39 { |
|
40 public: // Abstract methods |
|
41 |
|
42 /** |
|
43 * Called when usb printer is disconnected |
|
44 */ |
|
45 virtual void UsbPrinterDisconnected() = 0; |
|
46 |
|
47 /** |
|
48 * Called when usb printer is connected |
|
49 */ |
|
50 virtual void UsbPrinterConnected() = 0; |
|
51 |
|
52 /** |
|
53 * Notifies about USB state changes. Method is also used for other events |
|
54 * @param aState information about usb state |
|
55 */ |
|
56 virtual void UsbStateChanged( TImgPrintUSBState aState, TInt aError ) = 0; |
|
57 |
|
58 virtual void ReadyToContinue() = 0; |
|
59 |
|
60 /** |
|
61 * Notifies that there's happened an asynchronous leave in server process, |
|
62 * which in practice means that any ongoing printing should be cancelled |
|
63 * |
|
64 * @param aError leave code |
|
65 */ |
|
66 virtual void AsynchronousServerLeave( TInt aError ) = 0; |
|
67 }; |
|
68 |
|
69 #endif // MIDLEPRINTEVENTOBSERVER_H |
|
70 |
|
71 // End of File |