equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * CorruptionTest.CPP |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #include "SyntaxResult.h" |
|
21 |
|
22 |
|
23 CSyntaxResult* CSyntaxResult::NewL(void) |
|
24 { |
|
25 CSyntaxResult* self = CSyntaxResult::NewLC(); |
|
26 CleanupStack::Pop(self); |
|
27 return self; |
|
28 } |
|
29 |
|
30 CSyntaxResult* CSyntaxResult::NewLC(void) |
|
31 { |
|
32 CSyntaxResult* self = new(ELeave) CSyntaxResult(); |
|
33 CleanupStack::PushL(self); |
|
34 self->ConstructL(); |
|
35 return self; |
|
36 } |
|
37 |
|
38 CSyntaxResult::CSyntaxResult(void) |
|
39 { |
|
40 } |
|
41 |
|
42 CSyntaxResult::~CSyntaxResult() |
|
43 |
|
44 { |
|
45 iResult = 0; |
|
46 }; |
|
47 |
|
48 void CSyntaxResult::ConstructL() |
|
49 { |
|
50 } |
|
51 |
|
52 void CSyntaxResult::SetFilename(const TDesC8 &aFilename) |
|
53 { |
|
54 iFilename.Copy(aFilename); |
|
55 }; |
|
56 |
|
57 void CSyntaxResult::SetResult(const TDesC8 &aResult) |
|
58 { |
|
59 if(aResult.CompareF(_L8("ErrArgument"))==0) |
|
60 iResult = KErrArgument; |
|
61 else if(aResult.CompareF(_L8("ErrNotSupported"))==0) |
|
62 iResult = KErrNotSupported; |
|
63 else |
|
64 iResult = KErrNone; |
|
65 } |