|
1 /* |
|
2 * Copyright (c) 2006 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: The document class for ConnTest, stores the settings |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CONNTESTDOCUMENT_H |
|
19 #define CONNTESTDOCUMENT_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <AknDoc.h> |
|
23 |
|
24 #include "conntest.hrh" |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CEikAppUi; |
|
30 class CSettingData; |
|
31 class CCustomPrefsData; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * CConnTestDocument document class. |
|
37 * Note! Base class is CEikDocument, because CAknDocument does |
|
38 * not provide support for storing persistent data into file. |
|
39 */ |
|
40 class CConnTestDocument : public CEikDocument |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 |
|
44 /** |
|
45 * Two-phased constructor. |
|
46 */ |
|
47 static CConnTestDocument* NewL(CEikApplication& aApp); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 virtual ~CConnTestDocument(); |
|
53 |
|
54 protected: // Functions from base classes |
|
55 |
|
56 /** |
|
57 * Store current connection settings to file. Uses default file name, |
|
58 * which is \\private\\101F6D2B\\ConnTest. |
|
59 */ |
|
60 void StoreL(CStreamStore& aStore, CStreamDictionary& aStreamDic) const; |
|
61 |
|
62 /** |
|
63 * Read previous connection settings from file. |
|
64 */ |
|
65 void RestoreL(const CStreamStore& aStore, const CStreamDictionary& aStreamDic); |
|
66 |
|
67 private: |
|
68 |
|
69 /** |
|
70 * Symbian default constructor. |
|
71 */ |
|
72 CConnTestDocument(CEikApplication& aApp); |
|
73 void ConstructL(); |
|
74 |
|
75 private: |
|
76 |
|
77 /** |
|
78 * From CEikDocument, create CConnTestAppUi "App UI" object. |
|
79 */ |
|
80 CEikAppUi* CreateAppUiL(); |
|
81 |
|
82 private: // Data |
|
83 TFixedArray<CSettingData*, KConnTestViews> iSettingDataArray; |
|
84 TFixedArray<CCustomPrefsData*, KConnTestViews> iCustomPrefsDataArray; |
|
85 |
|
86 }; |
|
87 |
|
88 #endif |
|
89 |
|
90 // End of File |
|
91 |