|
1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "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 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /* ==================================================================== |
|
21 * File: TrimForMmsDocument.h |
|
22 * Created: 04/18/06 |
|
23 * Author: |
|
24 * |
|
25 * ==================================================================== */ |
|
26 |
|
27 #ifndef __TRIMFORMMS_DOCUMENT_H__ |
|
28 #define __TRIMFORMMS_DOCUMENT_H__ |
|
29 |
|
30 |
|
31 #include <akndoc.h> |
|
32 |
|
33 // Forward references |
|
34 class CTrimForMmsAppUi; |
|
35 class CEikApplication; |
|
36 |
|
37 |
|
38 /*! |
|
39 @class CTrimForMmsDocument |
|
40 |
|
41 @discussion An instance of class CTrimForMmsDocument is the Document part of the AVKON |
|
42 application framework for the TrimForMms example application |
|
43 */ |
|
44 class CTrimForMmsDocument : public CAknDocument |
|
45 { |
|
46 public: |
|
47 |
|
48 /*! |
|
49 @function NewL |
|
50 |
|
51 @discussion Construct a CTrimForMmsDocument for the AVKON application aApp |
|
52 using two phase construction, and return a pointer to the created object |
|
53 @param aApp application creating this document |
|
54 @result a pointer to the created instance of CTrimForMmsDocument |
|
55 */ |
|
56 static CTrimForMmsDocument* NewL(CEikApplication& aApp); |
|
57 |
|
58 /*! |
|
59 @function NewLC |
|
60 |
|
61 @discussion Construct a CTrimForMmsDocument for the AVKON application aApp |
|
62 using two phase construction, and return a pointer to the created object |
|
63 @param aApp application creating this document |
|
64 @result a pointer to the created instance of CTrimForMmsDocument |
|
65 */ |
|
66 static CTrimForMmsDocument* NewLC(CEikApplication& aApp); |
|
67 |
|
68 /*! |
|
69 @function ~CTrimForMmsDocument |
|
70 |
|
71 @discussion Destroy the object and release all memory objects |
|
72 */ |
|
73 ~CTrimForMmsDocument(); |
|
74 |
|
75 public: // from CAknDocument |
|
76 /*! |
|
77 @function CreateAppUiL |
|
78 |
|
79 @discussion Create a CTrimForMmsAppUi object and return a pointer to it |
|
80 @result a pointer to the created instance of the AppUi created |
|
81 */ |
|
82 CEikAppUi* CreateAppUiL(); |
|
83 |
|
84 |
|
85 void OpenFileL(CFileStore*& /*aFileStore*/, RFile& aFile); |
|
86 |
|
87 private: |
|
88 |
|
89 /*! |
|
90 @function ConstructL |
|
91 |
|
92 @discussion Perform the second phase construction of a CTrimForMmsDocument object |
|
93 */ |
|
94 void ConstructL(); |
|
95 |
|
96 /*! |
|
97 @function CTrimForMmsDocument |
|
98 |
|
99 @discussion Perform the first phase of two phase construction |
|
100 @param aApp application creating this document |
|
101 */ |
|
102 CTrimForMmsDocument(CEikApplication& aApp); |
|
103 |
|
104 }; |
|
105 |
|
106 |
|
107 #endif // __TRIMFORMMS_DOCUMENT_H__ |