memspyui/ui/avkon/inc/MemSpySettings.h
branchRCL_3
changeset 21 b3cee849fa46
equal deleted inserted replaced
20:48060abbbeaf 21:b3cee849fa46
       
     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 #include <memspy/engine/memspyenginehelpersysmemtrackerconfig.h>
       
    29 
       
    30 // Classes referenced
       
    31 class CMemSpyEngine;
       
    32 
       
    33 //cigasto
       
    34 class RMemSpySession;
       
    35 
       
    36 
       
    37 class CMemSpySettings : public CBase
       
    38     {
       
    39 public:
       
    40     //static CMemSpySettings* NewL( RFs& aFsSession, CMemSpyEngine& aEngine );
       
    41 	static CMemSpySettings* NewL( RFs& aFsSession, RMemSpySession& aSession );
       
    42     ~CMemSpySettings();
       
    43 
       
    44 private:
       
    45     //CMemSpySettings( RFs& aFsSession, CMemSpyEngine& aEngine );
       
    46     CMemSpySettings( RFs& aFsSession, RMemSpySession& aSession );
       
    47     void ConstructL();
       
    48 
       
    49 public: // API
       
    50     inline RFs& FsSession() { return iFsSession; }
       
    51     void StoreSettingsL();
       
    52     
       
    53     void SetSinkType( TMemSpySinkType aType ) { iSinkType = aType; }
       
    54 
       
    55 private: // Settings methods
       
    56     void RestoreSettingsL();
       
    57     void GetSettingsFileNameL( TDes& aFileName );
       
    58     void GetSettingsPathL( TDes& aPath );
       
    59     RFile SettingsFileLC( TBool aReplace = EFalse );
       
    60 
       
    61 private: // Data members
       
    62     RFs& iFsSession;    
       
    63     RMemSpySession& iMemSpySession;
       
    64     
       
    65 private: //Settings
       
    66     TMemSpySinkType iSinkType;
       
    67     TMemSpyEngineHelperSysMemTrackerConfig iSwmtConfig;
       
    68     RArray<TUid> iUidList;
       
    69     };
       
    70 
       
    71 
       
    72 #endif