|
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 CIFFACTORY_H |
|
20 #define CIFFACTORY_H |
|
21 |
|
22 #include <e32def.h> |
|
23 #include <e32base.h> |
|
24 |
|
25 class CImagePrintEngine; |
|
26 class CImagePrint; |
|
27 class MDiscovery; |
|
28 class MPrintJob; |
|
29 class MPrintPreview; |
|
30 class MPrintSettings; |
|
31 class MIdlePrintEventRegisterIF; |
|
32 class RImagePrintClient; |
|
33 class MPrintEventObserver; |
|
34 class MPrintEventRegisterIF; |
|
35 |
|
36 // CLASS DEFINITION |
|
37 /** |
|
38 * |
|
39 * Base class for the factories that create the concrete classes |
|
40 * |
|
41 */ |
|
42 class CIFFactory |
|
43 : public CBase |
|
44 { |
|
45 public: // Constructors and destructors |
|
46 |
|
47 /** |
|
48 * Destructor |
|
49 */ |
|
50 virtual ~CIFFactory(); |
|
51 |
|
52 protected: // Constructors and destructors |
|
53 |
|
54 /** |
|
55 * Constructor |
|
56 */ |
|
57 CIFFactory( CImagePrintEngine* aEngine ); |
|
58 |
|
59 public: // New methods |
|
60 |
|
61 /** |
|
62 * Returns discovery interface |
|
63 * |
|
64 * @return Device discovery interface |
|
65 */ |
|
66 virtual MDiscovery* DiscoveryIF() = 0; |
|
67 |
|
68 /** |
|
69 * Returns settings interface |
|
70 * |
|
71 * @return Settings interface |
|
72 */ |
|
73 virtual MPrintSettings* SettingsIF() = 0; |
|
74 |
|
75 /** |
|
76 * Returns print job interface |
|
77 * |
|
78 * @return Print job interface |
|
79 */ |
|
80 virtual MPrintJob* PrintJobIF() = 0; |
|
81 |
|
82 /** |
|
83 * Restarts Engine |
|
84 */ |
|
85 virtual void RestartEngine() = 0; |
|
86 |
|
87 /** |
|
88 * Returns Engine |
|
89 */ |
|
90 virtual CImagePrint* Engine() = 0; |
|
91 |
|
92 /** |
|
93 * Returns Browser preview interface |
|
94 */ |
|
95 |
|
96 /** |
|
97 * Returns idle print event register interface |
|
98 */ |
|
99 virtual MIdlePrintEventRegisterIF* IdlePrintEventRegisterIF() = 0; |
|
100 |
|
101 /** |
|
102 * Returns Interface to RImagePrintClient |
|
103 * @return RImagePrintClient |
|
104 */ |
|
105 virtual RImagePrintClient ImagePrintClient() = 0; |
|
106 |
|
107 /** |
|
108 * Returns information about application status |
|
109 * @return TBool ETrue if application is already in use. |
|
110 */ |
|
111 virtual TBool IsApplicationAlreadyInUse() = 0; |
|
112 |
|
113 /** |
|
114 * Returns Interface to print event catcher |
|
115 * @return MPrintEventObserver |
|
116 */ |
|
117 virtual MPrintEventObserver* PrintEventObserverIF() = 0; |
|
118 |
|
119 /** |
|
120 * Returns Interface to print event register interface |
|
121 * @return MPrintEventRegisterIF |
|
122 */ |
|
123 virtual MPrintEventRegisterIF* PrintEventRegisterIF() = 0; |
|
124 |
|
125 protected: // Data |
|
126 |
|
127 CImagePrintEngine* iPrintEngine; |
|
128 }; |
|
129 |
|
130 #endif // CIFFACTORY_H |
|
131 |
|
132 // End of File |