sl@0: /* sl@0: * Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * CorruptionTest.CPP sl@0: * sl@0: */ sl@0: sl@0: sl@0: #include "SyntaxResult.h" sl@0: sl@0: sl@0: CSyntaxResult* CSyntaxResult::NewL(void) sl@0: { sl@0: CSyntaxResult* self = CSyntaxResult::NewLC(); sl@0: CleanupStack::Pop(self); sl@0: return self; sl@0: } sl@0: sl@0: CSyntaxResult* CSyntaxResult::NewLC(void) sl@0: { sl@0: CSyntaxResult* self = new(ELeave) CSyntaxResult(); sl@0: CleanupStack::PushL(self); sl@0: self->ConstructL(); sl@0: return self; sl@0: } sl@0: sl@0: CSyntaxResult::CSyntaxResult(void) sl@0: { sl@0: } sl@0: sl@0: CSyntaxResult::~CSyntaxResult() sl@0: sl@0: { sl@0: iResult = 0; sl@0: }; sl@0: sl@0: void CSyntaxResult::ConstructL() sl@0: { sl@0: } sl@0: sl@0: void CSyntaxResult::SetFilename(const TDesC8 &aFilename) sl@0: { sl@0: iFilename.Copy(aFilename); sl@0: }; sl@0: sl@0: void CSyntaxResult::SetResult(const TDesC8 &aResult) sl@0: { sl@0: if(aResult.CompareF(_L8("ErrArgument"))==0) sl@0: iResult = KErrArgument; sl@0: else if(aResult.CompareF(_L8("ErrNotSupported"))==0) sl@0: iResult = KErrNotSupported; sl@0: else sl@0: iResult = KErrNone; sl@0: } sl@0: