memspy/Engine/Source/MemSpyEngine.cpp
changeset 22 a009639409f5
parent 0 a03f92240627
child 30 86a2e675b80a
equal deleted inserted replaced
17:67c6ff54ec25 22:a009639409f5
    41     RDebug::Printf( "CMemSpyEngine::~CMemSpyEngine() - END" );
    41     RDebug::Printf( "CMemSpyEngine::~CMemSpyEngine() - END" );
    42 #endif
    42 #endif
    43     }
    43     }
    44 
    44 
    45 
    45 
    46 void CMemSpyEngine::ConstructL( RFs& aFsSession )
    46 void CMemSpyEngine::ConstructL( RFs& aFsSession, TBool aStartServer )
    47     {
    47     {
    48 #ifdef _DEBUG
    48 #ifdef _DEBUG
    49     RDebug::Printf( "CMemSpyEngine::ConstructL() - START" );
    49     RDebug::Printf( "CMemSpyEngine::ConstructL() - START" );
    50 #endif
    50 #endif
    51     
    51     
    52     iImp = new(ELeave) CMemSpyEngineImp( aFsSession, *this );
    52     iImp = new(ELeave) CMemSpyEngineImp( aFsSession, *this );
    53     iImp->ConstructL();
    53     iImp->ConstructL(aStartServer);
    54 
    54 
    55 #ifdef _DEBUG
    55 #ifdef _DEBUG
    56     RDebug::Printf( "CMemSpyEngine::ConstructL() - END" );
    56     RDebug::Printf( "CMemSpyEngine::ConstructL() - END" );
    57 #endif
    57 #endif
    58     }
    58     }
    59 
    59 
    60 
    60 
    61 EXPORT_C CMemSpyEngine* CMemSpyEngine::NewL( RFs& aFsSession )
    61 EXPORT_C CMemSpyEngine* CMemSpyEngine::NewL( RFs& aFsSession )
       
    62     {
       
    63     return NewL(aFsSession, ETrue );
       
    64     }
       
    65 
       
    66 EXPORT_C CMemSpyEngine* CMemSpyEngine::NewL( RFs& aFsSession, TBool aStartServer )
    62     {
    67     {
    63     CMemSpyEngine* self = new(ELeave) CMemSpyEngine();
    68     CMemSpyEngine* self = new(ELeave) CMemSpyEngine();
    64     CleanupStack::PushL( self );
    69     CleanupStack::PushL( self );
    65     self->ConstructL( aFsSession );
    70     self->ConstructL( aFsSession, aStartServer );
    66     CleanupStack::Pop( self );
    71     CleanupStack::Pop( self );
    67     return self;
    72     return self;
    68     }
    73     }
    69 
    74 
    70 
    75