|
1 /* |
|
2 * Copyright (c) 2002-2007 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 required by Symbian OS architecture. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GSDOCUMENT_H |
|
20 #define GSDOCUMENT_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <AknDoc.h> |
|
24 #include "GSBaseDocument.h" |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CEikAppUi; |
|
30 class CGSModelCdma; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CGSDocument application class. |
|
36 * @since Series60_3.1 |
|
37 */ |
|
38 class CGSDocument : public CGSBaseDocument |
|
39 { |
|
40 public: // Constructor and destructor |
|
41 /** |
|
42 * Two-phased constructor |
|
43 * @param aApp Application. |
|
44 * @return GS document. |
|
45 */ |
|
46 static CGSDocument* NewL(CEikApplication& aApp); |
|
47 |
|
48 ~CGSDocument(); |
|
49 |
|
50 public: // New |
|
51 |
|
52 /** |
|
53 * Returns pointer to GS's CDMA model which is owned by the document. |
|
54 * @return GS CDMA model. |
|
55 */ |
|
56 CGSModelCdma* ModelCdma(); |
|
57 |
|
58 private: |
|
59 |
|
60 /** |
|
61 * C++ constructor |
|
62 */ |
|
63 inline CGSDocument( CEikApplication& aApp ) : CGSBaseDocument( aApp ) { } |
|
64 |
|
65 /** |
|
66 * Symbian OS default constructor. |
|
67 * |
|
68 */ |
|
69 void ConstructL(); |
|
70 |
|
71 private: // From CEikDocument |
|
72 |
|
73 /** |
|
74 * Create CGSUi "App UI" object. |
|
75 * @return Eikon application UI. |
|
76 */ |
|
77 CEikAppUi* CreateAppUiL(); |
|
78 |
|
79 private: // Data |
|
80 |
|
81 // CDMA model |
|
82 CGSModelCdma* iModelCdma; |
|
83 }; |
|
84 |
|
85 #endif // GSDOCUMENT_H |
|
86 // End of File |