core/src/parser.cpp
changeset 83 2a78c4ff2eab
parent 0 7f656887cf89
child 95 b3ffff030d5c
equal deleted inserted replaced
78:6a2083f7eeb8 83:2a78c4ff2eab
    50 
    50 
    51 void MParserObserver::LineReturned(TInt)
    51 void MParserObserver::LineReturned(TInt)
    52 	{
    52 	{
    53 	}
    53 	}
    54 
    54 
    55 CParser* CParser::NewL(TUint aMode, const TDesC& aDes, RIoSession& aIoSession, RIoReadHandle& aStdin, RIoWriteHandle& aStdout, RIoWriteHandle& aStderr, IoUtils::CEnvironment& aEnv, CCommandFactory& aFactory, MParserObserver* aObserver)
    55 CParser* CParser::NewL(TUint aMode, const TDesC& aDes, RIoSession& aIoSession, RIoReadHandle& aStdin, RIoWriteHandle& aStdout, RIoWriteHandle& aStderr, IoUtils::CEnvironment& aEnv, CCommandFactory& aFactory, MParserObserver* aObserver, TInt aStartingLineNumber)
    56 	{
    56 	{
    57 	CParser* self = new(ELeave) CParser(aMode, aDes, aIoSession, aStdin, aStdout, aStderr, aEnv, aFactory, aObserver);
    57 	CParser* self = new(ELeave) CParser(aMode, aDes, aIoSession, aStdin, aStdout, aStderr, aEnv, aFactory, aObserver, aStartingLineNumber);
    58 	CleanupStack::PushL(self);
    58 	CleanupStack::PushL(self);
    59 	self->ConstructL();
    59 	self->ConstructL();
    60 	CleanupStack::Pop();
    60 	CleanupStack::Pop();
    61 	return self;
    61 	return self;
    62 	}
    62 	}
    76 		iStdout.Close();
    76 		iStdout.Close();
    77 		iStderr.Close();
    77 		iStderr.Close();
    78 		}
    78 		}
    79 	}
    79 	}
    80 
    80 
    81 CParser::CParser(TUint aMode, const TDesC& aDes, RIoSession& aIoSession, RIoReadHandle& aStdin, RIoWriteHandle& aStdout, RIoWriteHandle& aStderr, IoUtils::CEnvironment& aEnv, CCommandFactory& aFactory, MParserObserver* aObserver)
    81 CParser::CParser(TUint aMode, const TDesC& aDes, RIoSession& aIoSession, RIoReadHandle& aStdin, RIoWriteHandle& aStdout, RIoWriteHandle& aStderr, IoUtils::CEnvironment& aEnv, CCommandFactory& aFactory, MParserObserver* aObserver, TInt aStartingLineNumber)
    82 	: iMode(aMode), iData(aDes), iIoSession(aIoSession), iStdin(aStdin), iStdout(aStdout), iStderr(aStderr), iEnv(aEnv), iFactory(aFactory), iObserver(aObserver), iCompletionError(aStderr, aEnv), iNextLineNumber(1)
    82 	: iMode(aMode), iData(aDes), iIoSession(aIoSession), iStdin(aStdin), iStdout(aStdout), iStderr(aStderr), iEnv(aEnv), iFactory(aFactory), iObserver(aObserver), iCompletionError(aStderr, aEnv), iNextLineNumber(aStartingLineNumber)
    83 	{
    83 	{
    84 	}
    84 	}
    85 
    85 
    86 void CParser::ConstructL()
    86 void CParser::ConstructL()
    87 	{
    87 	{