|
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 * Printer information reader class |
|
16 * |
|
17 */ |
|
18 |
|
19 // Protection against nested includes |
|
20 #ifndef __DIRECTPRINTPRINTERINFOREADER_H__ |
|
21 #define __DIRECTPRINTPRINTERINFOREADER_H__ |
|
22 |
|
23 // System includes |
|
24 #include <e32base.h> |
|
25 #include <xmlengdocument.h> // RXmlEngDocument |
|
26 #include <xmlengdomparser.h> // RXmlEngDOMParser |
|
27 #include <xmlengdomimplementation.h> // RXmlEngDOMImplementation |
|
28 |
|
29 // User includes |
|
30 |
|
31 // Forward declarations |
|
32 class CDirectPrintModel; |
|
33 |
|
34 // Class declaration |
|
35 /** |
|
36 * Printer information reader class |
|
37 * more_complete_description |
|
38 */ |
|
39 class CDirectPrintPrinterInfoReader : public CBase |
|
40 { |
|
41 public: |
|
42 /** Constructors */ |
|
43 static CDirectPrintPrinterInfoReader* NewL(CDirectPrintModel& aModel); |
|
44 static CDirectPrintPrinterInfoReader* NewLC(CDirectPrintModel& aModel); |
|
45 /** Destructor */ |
|
46 ~CDirectPrintPrinterInfoReader(); |
|
47 |
|
48 void ReadPrinterInfoL(); |
|
49 |
|
50 void GetManufactureL(TDes& aManufacture); |
|
51 TUid GetDriverL(TDesC& aId); |
|
52 TUid GetSettingUIPluginL(TDesC& aId); |
|
53 |
|
54 protected: |
|
55 CDirectPrintPrinterInfoReader(CDirectPrintModel& aModel); |
|
56 void ConstructL(); |
|
57 |
|
58 private: |
|
59 void ReadXmlDataL(const TDesC& aParam); |
|
60 TBool CheckManufactureL(const TDesC& aParam); |
|
61 |
|
62 private: |
|
63 // Model object |
|
64 CDirectPrintModel& iModel; |
|
65 |
|
66 RXmlEngDocument iXmlEngDoc; |
|
67 RXmlEngDOMImplementation iXmlDomImpl; |
|
68 RXmlEngDOMParser iXmlParser; |
|
69 }; |
|
70 |
|
71 #endif // __DIRECTPRINTPRINTERINFOREADER_H__ |