1 /* |
|
2 * ============================================================================ |
|
3 * Name : SimLockUIDocument.h |
|
4 * Part of : Sim Lock UI Application |
|
5 * Description : Create session to ETel and owns SimLock UI Delegate |
|
6 * Version : |
|
7 * |
|
8 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
|
9 * All rights reserved. |
|
10 * This component and the accompanying materials are made available |
|
11 * under the terms of "Eclipse Public License v1.0" |
|
12 * which accompanies this distribution, and is available |
|
13 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
14 * |
|
15 * Initial Contributors: |
|
16 * Nokia Corporation - initial contribution. |
|
17 * |
|
18 * Contributors: |
|
19 * |
|
20 * Description: Build info file for Ado domain appinstall |
|
21 * ============================================================================ |
|
22 */ |
|
23 |
|
24 #ifndef __SIMLOCKUI_DOCUMENT_H__ |
|
25 #define __SIMLOCKUI_DOCUMENT_H__ |
|
26 |
|
27 // INCLUDES |
|
28 #include <akndoc.h> |
|
29 #include <RMmCustomAPI.h> // RMmCustomAPI, RTelServer, RMobilePhone |
|
30 |
|
31 // CONSTANTS |
|
32 |
|
33 // MACROS |
|
34 |
|
35 // DATA TYPES |
|
36 |
|
37 // FUNCTION PROTOTYPES |
|
38 |
|
39 // FORWARD DECLARATIONS |
|
40 |
|
41 class CSimLockUIAppUi; |
|
42 class CEikApplication; |
|
43 class CSimLockDataHandlingDelegate; |
|
44 |
|
45 |
|
46 /** |
|
47 * CSimLockUIDocument |
|
48 * An instance of class CSimLockUIDocument is the Document part of the AVKON |
|
49 * application framework for the SimLockUI example application |
|
50 * |
|
51 * @lib avkon.lib |
|
52 * @lib eikcore.lib |
|
53 * @lib eiksrv.lib |
|
54 */ |
|
55 class CSimLockUIDocument : public CAknDocument |
|
56 { |
|
57 public: // Public Constructors/Destructor |
|
58 |
|
59 /** |
|
60 * NewL |
|
61 * Construct a CSimLockUIDocument 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 * @return a pointer to the created instance of CSimLockUIDocument |
|
65 */ |
|
66 static CSimLockUIDocument* NewL( CEikApplication& aApp ); |
|
67 |
|
68 /** |
|
69 * NewLC |
|
70 * Construct a CSimLockUIDocument for the AVKON application aApp |
|
71 * using two phase construction, and return a pointer to the created object, |
|
72 * leaving an instance on the Cleanup Stack. |
|
73 * |
|
74 * @param aApp application creating this document |
|
75 * @return a pointer to the created instance of CSimLockUIDocument |
|
76 */ |
|
77 static CSimLockUIDocument* NewLC( CEikApplication& aApp ); |
|
78 |
|
79 /** |
|
80 * ~CSimLockUIDocument |
|
81 * Destroy the object and release all memory objects |
|
82 */ |
|
83 virtual ~CSimLockUIDocument(); |
|
84 |
|
85 public: // from CAknDocument |
|
86 |
|
87 /** |
|
88 * CreateAppUiL |
|
89 * Create a CSimLockUIAppUi object and return a pointer to it |
|
90 * |
|
91 * @return a pointer to the created instance of the AppUi created |
|
92 */ |
|
93 virtual CEikAppUi* CreateAppUiL(); |
|
94 |
|
95 private: // Private Constructors |
|
96 |
|
97 /** |
|
98 * ConstructL |
|
99 * Perform the second phase construction of a CSimLockUIDocument object |
|
100 */ |
|
101 void ConstructL(); |
|
102 |
|
103 /** |
|
104 * CSimLockUIDocument |
|
105 * Perform the first phase of two phase construction |
|
106 * |
|
107 * @param aApp application creating this document |
|
108 */ |
|
109 CSimLockUIDocument( CEikApplication& aApp ); |
|
110 |
|
111 |
|
112 private: // Member Data |
|
113 |
|
114 /** |
|
115 * Handle to ETel Server |
|
116 */ |
|
117 RTelServer iServer; |
|
118 |
|
119 /** |
|
120 * Handle to ETel Mobile Phone Object |
|
121 */ |
|
122 RMobilePhone iPhone; |
|
123 |
|
124 /** |
|
125 * Handle to ETel Custom API Object |
|
126 */ |
|
127 RMmCustomAPI iCustomPhone; |
|
128 |
|
129 /** |
|
130 * Handle to Sim Lock Delegate |
|
131 * owns |
|
132 */ |
|
133 CSimLockDataHandlingDelegate* iSimLockDelegate; |
|
134 }; |
|
135 |
|
136 |
|
137 #endif // __SIMLOCKUI_DOCUMENT_H__ |
|
138 |
|
139 // end of file. |
|
140 |
|