|
1 /* |
|
2 * Copyright (c) 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 * |
|
16 */ |
|
17 |
|
18 #ifndef MEMSPYSETTINGS_H |
|
19 #define MEMSPYSETTINGS_H |
|
20 |
|
21 // System includes |
|
22 #include <e32base.h> |
|
23 #include <badesca.h> |
|
24 #include <f32file.h> |
|
25 |
|
26 // Engine includes |
|
27 #include <memspy/engine/memspyengineoutputsink.h> |
|
28 |
|
29 // Classes referenced |
|
30 class CMemSpyEngine; |
|
31 |
|
32 //cigasto |
|
33 class RMemSpySession; |
|
34 |
|
35 |
|
36 class CMemSpySettings : public CBase |
|
37 { |
|
38 public: |
|
39 //static CMemSpySettings* NewL( RFs& aFsSession, CMemSpyEngine& aEngine ); |
|
40 static CMemSpySettings* NewL( RFs& aFsSession, RMemSpySession& aSession ); |
|
41 ~CMemSpySettings(); |
|
42 |
|
43 private: |
|
44 //CMemSpySettings( RFs& aFsSession, CMemSpyEngine& aEngine ); |
|
45 CMemSpySettings( RFs& aFsSession, RMemSpySession& aSession ); |
|
46 void ConstructL(); |
|
47 |
|
48 public: // API |
|
49 inline RFs& FsSession() { return iFsSession; } |
|
50 void StoreSettingsL(); |
|
51 |
|
52 private: // Settings methods |
|
53 void RestoreSettingsL(); |
|
54 void GetSettingsFileNameL( TDes& aFileName ); |
|
55 void GetSettingsPathL( TDes& aPath ); |
|
56 RFile SettingsFileLC( TBool aReplace = EFalse ); |
|
57 |
|
58 private: // Data members |
|
59 RFs& iFsSession; |
|
60 //CMemSpyEngine& iEngine; |
|
61 //RMemSpySession& iMemSpySession; |
|
62 }; |
|
63 |
|
64 |
|
65 #endif |