memspyui/include/MemSpySettings.h
branchRCL_3
changeset 22 fad26422216a
parent 0 d6fe6244b863
equal deleted inserted replaced
21:b3cee849fa46 22:fad26422216a
       
     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 
       
    33 class CMemSpySettings : public CBase
       
    34     {
       
    35 public:
       
    36     static CMemSpySettings* NewL( RFs& aFsSession, CMemSpyEngine& aEngine );
       
    37     ~CMemSpySettings();
       
    38 
       
    39 private:
       
    40     CMemSpySettings( RFs& aFsSession, CMemSpyEngine& aEngine );
       
    41     void ConstructL();
       
    42 
       
    43 public: // API
       
    44     inline RFs& FsSession() { return iFsSession; }
       
    45     void StoreSettingsL();
       
    46 
       
    47 private: // Settings methods
       
    48     void RestoreSettingsL();
       
    49     void GetSettingsFileNameL( TDes& aFileName );
       
    50     void GetSettingsPathL( TDes& aPath );
       
    51     RFile SettingsFileLC( TBool aReplace = EFalse );
       
    52 
       
    53 private: // Data members
       
    54     RFs& iFsSession;
       
    55     CMemSpyEngine& iEngine;
       
    56     };
       
    57 
       
    58 
       
    59 #endif