|
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 __DIRECTPRINTAPPDOCUMENT_h__ |
|
21 #define __DIRECTPRINTAPPDOCUMENT_h__ |
|
22 |
|
23 // System includes |
|
24 #include <akndoc.h> |
|
25 |
|
26 // Forward declarations |
|
27 class CDirectPrintAppAppUi; |
|
28 class CEikApplication; |
|
29 |
|
30 // Class declaration |
|
31 class CDirectPrintModel; |
|
32 |
|
33 /** |
|
34 * CDirectPrintAppDocument application class. |
|
35 * An instance of class CDirectPrintAppDocument is the Document part of the |
|
36 * AVKON application framework for the DirectPrintApp example application. |
|
37 */ |
|
38 class CDirectPrintAppDocument : public CAknDocument |
|
39 { |
|
40 public: |
|
41 // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * NewL. |
|
45 * Two-phased constructor. |
|
46 * Construct a CDirectPrintAppDocument for the AVKON application aApp |
|
47 * using two phase construction, and return a pointer |
|
48 * to the created object. |
|
49 * @param aApp Application creating this document. |
|
50 * @return A pointer to the created instance of CDirectPrintAppDocument. |
|
51 */ |
|
52 static CDirectPrintAppDocument* NewL(CEikApplication& aApp); |
|
53 |
|
54 /** |
|
55 * NewLC. |
|
56 * Two-phased constructor. |
|
57 * Construct a CDirectPrintAppDocument for the AVKON application aApp |
|
58 * using two phase construction, and return a pointer |
|
59 * to the created object. |
|
60 * @param aApp Application creating this document. |
|
61 * @return A pointer to the created instance of CDirectPrintAppDocument. |
|
62 */ |
|
63 static CDirectPrintAppDocument* NewLC(CEikApplication& aApp); |
|
64 |
|
65 /** |
|
66 * ~CDirectPrintAppDocument |
|
67 * Virtual Destructor. |
|
68 */ |
|
69 virtual ~CDirectPrintAppDocument(); |
|
70 |
|
71 public: |
|
72 // Functions from base classes |
|
73 |
|
74 /** |
|
75 * CreateAppUiL |
|
76 * From CEikDocument, CreateAppUiL. |
|
77 * Create a CDirectPrintAppAppUi object and return a pointer to it. |
|
78 * The object returned is owned by the Uikon framework. |
|
79 * @return Pointer to created instance of AppUi. |
|
80 */ |
|
81 CEikAppUi* CreateAppUiL(); |
|
82 public: |
|
83 // New functions |
|
84 CDirectPrintModel& Model(); |
|
85 |
|
86 private: |
|
87 // Constructors |
|
88 |
|
89 /** |
|
90 * ConstructL |
|
91 * 2nd phase constructor. |
|
92 */ |
|
93 void ConstructL(); |
|
94 |
|
95 /** |
|
96 * CDirectPrintAppDocument. |
|
97 * C++ default constructor. |
|
98 * @param aApp Application creating this document. |
|
99 */ |
|
100 CDirectPrintAppDocument(CEikApplication& aApp); |
|
101 |
|
102 |
|
103 private: |
|
104 /** Model class */ |
|
105 CDirectPrintModel* iModel; |
|
106 |
|
107 |
|
108 }; |
|
109 |
|
110 #endif // __DIRECTPRINTAPPDOCUMENT_h__ |
|
111 // End of File |