First public contribution.
2 * Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
20 #include "SyntaxResult.h"
23 CSyntaxResult* CSyntaxResult::NewL(void)
25 CSyntaxResult* self = CSyntaxResult::NewLC();
26 CleanupStack::Pop(self);
30 CSyntaxResult* CSyntaxResult::NewLC(void)
32 CSyntaxResult* self = new(ELeave) CSyntaxResult();
33 CleanupStack::PushL(self);
38 CSyntaxResult::CSyntaxResult(void)
42 CSyntaxResult::~CSyntaxResult()
48 void CSyntaxResult::ConstructL()
52 void CSyntaxResult::SetFilename(const TDesC8 &aFilename)
54 iFilename.Copy(aFilename);
57 void CSyntaxResult::SetResult(const TDesC8 &aResult)
59 if(aResult.CompareF(_L8("ErrArgument"))==0)
60 iResult = KErrArgument;
61 else if(aResult.CompareF(_L8("ErrNotSupported"))==0)
62 iResult = KErrNotSupported;