|
1 |
|
2 /* |
|
3 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
4 * All rights reserved. |
|
5 * This component and the accompanying materials are made available |
|
6 * under the terms of "Eclipse Public License v1.0" |
|
7 * which accompanies this distribution, and is available |
|
8 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 * |
|
10 * Initial Contributors: |
|
11 * Nokia Corporation - initial contribution. |
|
12 * |
|
13 * Contributors: |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CSIPLINEDOC_H |
|
22 #define CSIPLINEDOC_H |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include <eikdoc.h> |
|
27 #include <e32base.h> |
|
28 |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CEikApplication; |
|
32 class CSIPExEngine; |
|
33 class MSIPExGameObserver; |
|
34 |
|
35 // CLASS DECLARATION |
|
36 /** |
|
37 * The document class. |
|
38 * Document part of the CKON application framework for the SIPLine. |
|
39 * Creates appui. |
|
40 */ |
|
41 class CSIPExDoc |
|
42 : public CEikDocument |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 |
|
46 /** |
|
47 * Two-phased constructor. |
|
48 * @param aApp reference to the application class instance |
|
49 */ |
|
50 static CSIPExDoc* NewL( CEikApplication& aApp ); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 virtual ~CSIPExDoc(); |
|
56 |
|
57 public: // New functions |
|
58 |
|
59 /** |
|
60 * Creates the application engine. |
|
61 * @param aObserver A reference to the game observer. |
|
62 * @return A pointer to engine. The client gets ownership of |
|
63 * the engine. |
|
64 */ |
|
65 CSIPExEngine* CreateEngineL( MSIPExGameObserver& aObserver ); |
|
66 |
|
67 public: // Functions from base classes |
|
68 |
|
69 /** |
|
70 * From CEikDocument |
|
71 * Creates instance of appui class |
|
72 * @return Pointer to the appui class instance |
|
73 */ |
|
74 CEikAppUi* CreateAppUiL(); |
|
75 |
|
76 private: |
|
77 |
|
78 /** |
|
79 * C++ default constructor. |
|
80 * @param aApp Reference to the application class |
|
81 */ |
|
82 CSIPExDoc( CEikApplication& aApp ); |
|
83 |
|
84 /** |
|
85 * By default Symbian 2nd phase constructor is private. |
|
86 */ |
|
87 void ConstructL(); |
|
88 |
|
89 |
|
90 private: // Data |
|
91 // Owned: The application engine pointer |
|
92 CSIPExEngine* iEngine; |
|
93 }; |
|
94 |
|
95 #endif // CSIPLINEDOC_H |
|
96 |
|
97 // End of File |