|
1 /* |
|
2 * Copyright (c) 2009 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: Declares document class for application. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __NEWCONTACTLAUNCHERDOCUMENT_h__ |
|
19 #define __NEWCONTACTLAUNCHERDOCUMENT_h__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <AknDoc.h> |
|
23 #include <apgwgnam.h> |
|
24 // FORWARD DECLARATIONS |
|
25 class CNewContactLauncherAppUi; |
|
26 class CEikApplication; |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * CNewContactLauncherDocument application class. |
|
32 * An instance of class CNewContactLauncherDocument is the Document part of the |
|
33 * AVKON application framework for the NewContactLauncher example application. |
|
34 */ |
|
35 class CNewContactLauncherDocument : public CAknDocument |
|
36 { |
|
37 public: |
|
38 // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * NewL. |
|
42 * Two-phased constructor. |
|
43 * Construct a CNewContactLauncherDocument for the AVKON application aApp |
|
44 * using two phase construction, and return a pointer |
|
45 * to the created object. |
|
46 * @param aApp Application creating this document. |
|
47 * @return A pointer to the created instance of CNewContactLauncherDocument. |
|
48 */ |
|
49 static CNewContactLauncherDocument* NewL(CEikApplication& aApp); |
|
50 |
|
51 /** |
|
52 * NewLC. |
|
53 * Two-phased constructor. |
|
54 * Construct a CNewContactLauncherDocument for the AVKON application aApp |
|
55 * using two phase construction, and return a pointer |
|
56 * to the created object. |
|
57 * @param aApp Application creating this document. |
|
58 * @return A pointer to the created instance of CNewContactLauncherDocument. |
|
59 */ |
|
60 static CNewContactLauncherDocument* NewLC(CEikApplication& aApp); |
|
61 |
|
62 /** |
|
63 * ~CNewContactLauncherDocument |
|
64 * Virtual Destructor. |
|
65 */ |
|
66 virtual ~CNewContactLauncherDocument(); |
|
67 |
|
68 public: |
|
69 // Functions from base classes |
|
70 |
|
71 /** |
|
72 * CreateAppUiL |
|
73 * From CEikDocument, CreateAppUiL. |
|
74 * Create a CNewContactLauncherAppUi object and return a pointer to it. |
|
75 * The object returned is owned by the Uikon framework. |
|
76 * @return Pointer to created instance of AppUi. |
|
77 */ |
|
78 CEikAppUi* CreateAppUiL(); |
|
79 public: // new methods |
|
80 |
|
81 /** |
|
82 * Updates the task in fast swap windows |
|
83 * |
|
84 * @param aWgName the window group name |
|
85 */ |
|
86 void UpdateTaskNameL( CApaWindowGroupName* aWgName ); |
|
87 |
|
88 |
|
89 private: |
|
90 // Constructors |
|
91 |
|
92 /** |
|
93 * ConstructL |
|
94 * 2nd phase constructor. |
|
95 */ |
|
96 void ConstructL(); |
|
97 |
|
98 /** |
|
99 * CNewContactLauncherDocument. |
|
100 * C++ default constructor. |
|
101 * @param aApp Application creating this document. |
|
102 */ |
|
103 CNewContactLauncherDocument(CEikApplication& aApp); |
|
104 |
|
105 }; |
|
106 |
|
107 #endif // __NEWCONTACTLAUNCHERDOCUMENT_h__ |
|
108 // End of File |