|
1 /*------------------------------------------------------------------ |
|
2 - |
|
3 * Software Name : UserEmulator |
|
4 * Version : v4.2.1309 |
|
5 * |
|
6 * Copyright (c) 2009 France Telecom. All rights reserved. |
|
7 * This software is distributed under the License |
|
8 * "Eclipse Public License - v 1.0" the text of which is available |
|
9 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
10 * |
|
11 * Initial Contributors: |
|
12 * France Telecom |
|
13 * |
|
14 * Contributors: |
|
15 *------------------------------------------------------------------ |
|
16 - |
|
17 * File Name: UserEmulatorDocument.cpp |
|
18 * |
|
19 * Created: 13/08/2009 |
|
20 * Author(s): Marcell Kiss, Reshma Sandeep Das |
|
21 * |
|
22 * Description: |
|
23 * Declares document class for application |
|
24 *------------------------------------------------------------------ |
|
25 - |
|
26 * |
|
27 */ |
|
28 |
|
29 // User Includes |
|
30 #include "UserEmulatorAppUi.h" |
|
31 #include "UserEmulatorDocument.h" |
|
32 |
|
33 // ============================ MEMBER FUNCTIONS =============================== |
|
34 |
|
35 // ----------------------------------------------------------------------------- |
|
36 // CUserEmulatorDocument::NewL() |
|
37 // Two-phased constructor. |
|
38 // ----------------------------------------------------------------------------- |
|
39 // |
|
40 CUserEmulatorDocument* CUserEmulatorDocument::NewL(CEikApplication& aApp) |
|
41 { |
|
42 CUserEmulatorDocument* self = NewLC(aApp); |
|
43 CleanupStack::Pop(self); |
|
44 return self; |
|
45 } |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // CUserEmulatorDocument::NewLC() |
|
49 // Two-phased constructor. |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 CUserEmulatorDocument* CUserEmulatorDocument::NewLC(CEikApplication& aApp) |
|
53 { |
|
54 CUserEmulatorDocument* self = new ( ELeave ) CUserEmulatorDocument( aApp ); |
|
55 CleanupStack::PushL(self); |
|
56 return self; |
|
57 } |
|
58 |
|
59 // ----------------------------------------------------------------------------- |
|
60 // CUserEmulatorDocument::CUserEmulatorDocument() |
|
61 // C++ default constructor can NOT contain any code, that might leave. |
|
62 // ----------------------------------------------------------------------------- |
|
63 // |
|
64 CUserEmulatorDocument::CUserEmulatorDocument(CEikApplication& aApp) : |
|
65 CAknDocument(aApp) |
|
66 { |
|
67 // No implementation required |
|
68 } |
|
69 |
|
70 // --------------------------------------------------------------------------- |
|
71 // CUserEmulatorDocument::~CUserEmulatorDocument() |
|
72 // Destructor. |
|
73 // --------------------------------------------------------------------------- |
|
74 // |
|
75 CUserEmulatorDocument::~CUserEmulatorDocument() |
|
76 { |
|
77 // No implementation required |
|
78 } |
|
79 |
|
80 // --------------------------------------------------------------------------- |
|
81 // CUserEmulatorDocument::CreateAppUiL() |
|
82 // Constructs CreateAppUi. |
|
83 // --------------------------------------------------------------------------- |
|
84 // |
|
85 CEikAppUi* CUserEmulatorDocument::CreateAppUiL() |
|
86 { |
|
87 // Create the application user interface, and return a pointer to it |
|
88 // the framework takes ownership of this object |
|
89 return new ( ELeave )CUserEmulatorAppUi(CCoeEnv::Static()->WsSession()); |
|
90 } |
|
91 |
|
92 // End of File |