|
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: Document class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef TSDOCUMENT_H |
|
20 #define TSDOCUMENT_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <AknDoc.h> |
|
24 |
|
25 class CTsDocument : public CAknDocument |
|
26 { |
|
27 public: |
|
28 /** |
|
29 * Construct a CTsDocument for the AVKON application aApp |
|
30 * using two phase construction, and return a pointer to the created object |
|
31 * aApp application creating this document |
|
32 * |
|
33 * @since S60 v5.0 |
|
34 * @return a pointer to the created instance of CTsDocument |
|
35 */ |
|
36 static CTsDocument* NewL( CEikApplication& aApp ); |
|
37 |
|
38 /** |
|
39 * Construct a CTsDocument for the AVKON application aApp |
|
40 * using two phase construction, and return a pointer to the created object |
|
41 * |
|
42 * @since S60 v5.0 |
|
43 * @param aApp application creating this document |
|
44 * @return a pointer to the created instance of CTsDocument |
|
45 */ |
|
46 static CTsDocument* NewLC( CEikApplication& aApp ); |
|
47 |
|
48 /** |
|
49 * Destroy the object and release all memory objects |
|
50 * |
|
51 * @since S60 v5.0 |
|
52 */ |
|
53 ~CTsDocument( ); |
|
54 |
|
55 /** |
|
56 * Makes Startup-application hidden in menu shell and fastswap window |
|
57 * |
|
58 * @since S60 v5.0 |
|
59 * @param aWgName application windows group name |
|
60 */ |
|
61 void UpdateTaskNameL( CApaWindowGroupName* aWgName ); |
|
62 |
|
63 public: |
|
64 // from CAknDocument |
|
65 /** |
|
66 * Create a CTsAppUi object and return a pointer to it |
|
67 * |
|
68 * @since S60 v5.0 |
|
69 * @return a pointer to the created instance of the AppUi created |
|
70 */ |
|
71 CEikAppUi* CreateAppUiL( ); |
|
72 |
|
73 private: |
|
74 /** |
|
75 * Perform the second phase construction of a CTsDocument object |
|
76 * |
|
77 * @since S60 v5.0 |
|
78 */ |
|
79 void ConstructL( ); |
|
80 |
|
81 /** |
|
82 * Perform the first phase of two phase construction |
|
83 * |
|
84 * @since S60 v5.0 |
|
85 * @param aApp application creating this document |
|
86 */ |
|
87 CTsDocument( CEikApplication& aApp ); |
|
88 }; |
|
89 |
|
90 #endif // TSDOCUMENT_H |