diff -r ccab7f1f8266 -r a71a3e32a2ae memspy/Engine/Source/MemSpyEngine.cpp --- a/memspy/Engine/Source/MemSpyEngine.cpp Mon May 03 13:58:41 2010 +0300 +++ b/memspy/Engine/Source/MemSpyEngine.cpp Thu May 13 23:59:27 2010 +0300 @@ -43,14 +43,14 @@ } -void CMemSpyEngine::ConstructL( RFs& aFsSession ) +void CMemSpyEngine::ConstructL( RFs& aFsSession, TBool aStartServer ) { #ifdef _DEBUG RDebug::Printf( "CMemSpyEngine::ConstructL() - START" ); #endif iImp = new(ELeave) CMemSpyEngineImp( aFsSession, *this ); - iImp->ConstructL(); + iImp->ConstructL(aStartServer); #ifdef _DEBUG RDebug::Printf( "CMemSpyEngine::ConstructL() - END" ); @@ -60,9 +60,14 @@ EXPORT_C CMemSpyEngine* CMemSpyEngine::NewL( RFs& aFsSession ) { + return NewL(aFsSession, ETrue ); + } + +EXPORT_C CMemSpyEngine* CMemSpyEngine::NewL( RFs& aFsSession, TBool aStartServer ) + { CMemSpyEngine* self = new(ELeave) CMemSpyEngine(); CleanupStack::PushL( self ); - self->ConstructL( aFsSession ); + self->ConstructL( aFsSession, aStartServer ); CleanupStack::Pop( self ); return self; }