|
1 /* |
|
2 * Copyright (c) 2008 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 |
|
20 |
|
21 #ifndef __ALFEXSTICKERS_DOCUMENT_H__ |
|
22 #define __ALFEXSTICKERS_DOCUMENT_H__ |
|
23 |
|
24 |
|
25 #include <akndoc.h> |
|
26 |
|
27 /* Forward declarations. */ |
|
28 class CAlfExStickersAppUi; |
|
29 class CEikApplication; |
|
30 |
|
31 |
|
32 /** |
|
33 * @class CAlfExStickersDocument |
|
34 |
|
35 * @discussion An instance of class CAlfExStickersDocument is the Document part of the AVKON |
|
36 * application framework for the AlfExStickers example application |
|
37 */ |
|
38 class CAlfExStickersDocument : public CAknDocument |
|
39 { |
|
40 public: |
|
41 |
|
42 /** |
|
43 * @function NewL |
|
44 * @discussion Construct a CAlfExStickersDocument for the AVKON application aApp |
|
45 * using two phase construction, and return a pointer to the created object |
|
46 * @param aApp application creating this document |
|
47 * @result a pointer to the created instance of CAlfExStickersDocument |
|
48 */ |
|
49 static CAlfExStickersDocument* NewL(CEikApplication& aApp); |
|
50 |
|
51 /** |
|
52 * @function NewLC |
|
53 * @discussion Construct a CAlfExStickersDocument for the AVKON application aApp |
|
54 * using two phase construction, and return a pointer to the created object |
|
55 * @param aApp application creating this document |
|
56 * @result a pointer to the created instance of CAlfExStickersDocument |
|
57 */ |
|
58 static CAlfExStickersDocument* NewLC(CEikApplication& aApp); |
|
59 |
|
60 /** |
|
61 * @function ~CAlfExStickersDocument |
|
62 * @discussion Destroy the object and release all memory objects |
|
63 */ |
|
64 ~CAlfExStickersDocument(); |
|
65 |
|
66 public: // from CAknDocument |
|
67 /** |
|
68 * @function CreateAppUiL |
|
69 * @discussion Create a CAlfExStickersAppUi object and return a pointer to it |
|
70 * @result a pointer to the created instance of the AppUi created |
|
71 */ |
|
72 CEikAppUi* CreateAppUiL(); |
|
73 |
|
74 private: |
|
75 |
|
76 /** |
|
77 * @function ConstructL |
|
78 * @discussion Perform the second phase construction of a CAlfExStickersDocument object |
|
79 */ |
|
80 void ConstructL(); |
|
81 |
|
82 /** |
|
83 * @function CAlfExStickersDocument |
|
84 * @discussion Perform the first phase of two phase construction |
|
85 * @param aApp application creating this document |
|
86 */ |
|
87 CAlfExStickersDocument(CEikApplication& aApp); |
|
88 |
|
89 }; |
|
90 |
|
91 |
|
92 #endif // __ALFEXSTICKERS_DOCUMENT_H__ |