|
1 |
|
2 // Copyright (c) 2004-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: |
|
15 // INCLUDE FILES |
|
16 // |
|
17 |
|
18 |
|
19 |
|
20 #include "SIPExDoc.h" |
|
21 #include "SIPExAppUi.h" |
|
22 #include "SIPExGameEngine.h" |
|
23 |
|
24 // CONSTANTS |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // CSIPExDoc::CSIPSettinsgDoc |
|
30 // C++ default constructor can NOT contain any code, that |
|
31 // might leave. |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 CSIPExDoc::CSIPExDoc( CEikApplication& aApp ) |
|
35 : CEikDocument( aApp ) |
|
36 { |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CSIPExDoc::ConstructL |
|
41 // Symbian 2nd phase constructor can leave. |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 void CSIPExDoc::ConstructL() |
|
45 { |
|
46 } |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // CSIPExDoc::NewL |
|
50 // Two-phased constructor. |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 CSIPExDoc* CSIPExDoc::NewL( CEikApplication& aApp ) |
|
54 { |
|
55 CSIPExDoc* self = new( ELeave ) CSIPExDoc( aApp ); |
|
56 |
|
57 CleanupStack::PushL( self ); |
|
58 self->ConstructL(); |
|
59 CleanupStack::Pop(); |
|
60 |
|
61 return self; |
|
62 } |
|
63 |
|
64 // ----------------------------------------------------------------------------- |
|
65 // CSIPExDoc::~CSIPExDoc |
|
66 // Destructor |
|
67 // ----------------------------------------------------------------------------- |
|
68 // |
|
69 CSIPExDoc::~CSIPExDoc() |
|
70 { |
|
71 delete iEngine; |
|
72 } |
|
73 |
|
74 // ----------------------------------------------------------------------------- |
|
75 // CSIPExDoc::CreateAppUiL |
|
76 // Creates the application user interface and return a pointer to it |
|
77 // ----------------------------------------------------------------------------- |
|
78 // |
|
79 CEikAppUi* CSIPExDoc::CreateAppUiL() |
|
80 { |
|
81 CSIPExAppUi* appUi = new ( ELeave ) CSIPExAppUi; |
|
82 return appUi; |
|
83 } |
|
84 |
|
85 // ----------------------------------------------------------------------------- |
|
86 // CSIPExDoc::CreateEngineL |
|
87 // Creates the application engine |
|
88 // ----------------------------------------------------------------------------- |
|
89 // |
|
90 CSIPExEngine* CSIPExDoc::CreateEngineL( MSIPExGameObserver& aObserver ) |
|
91 { |
|
92 iEngine = CSIPExEngine::NewL( aObserver ); |
|
93 return iEngine; |
|
94 } |
|
95 |
|
96 // End of File |