|
1 /* |
|
2 * Copyright (c) 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 "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: This file implements class CFsSmileyParser. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "emailtrace.h" |
|
19 #include "fssmileyparser.h" |
|
20 #include "fssmileydictionary.h" |
|
21 |
|
22 CFsSmileyParser* CFsSmileyParser::NewL() |
|
23 { |
|
24 FUNC_LOG; |
|
25 CFsSmileyParser* self = new(ELeave)CFsSmileyParser(); |
|
26 CleanupStack::PushL(self); |
|
27 self->ConstructL(); |
|
28 CleanupStack::Pop(self); |
|
29 return self; |
|
30 } |
|
31 |
|
32 CFsSmileyParser::~CFsSmileyParser() |
|
33 { |
|
34 FUNC_LOG; |
|
35 } |
|
36 |
|
37 void CFsSmileyParser::ConstructL() |
|
38 { |
|
39 FUNC_LOG; |
|
40 |
|
41 } |
|
42 |
|
43 CFsSmileyParser::CFsSmileyParser() |
|
44 { |
|
45 FUNC_LOG; |
|
46 |
|
47 } |
|
48 |
|
49 TInt CFsSmileyParser::GetSmileyLength(TInt aSmileyIndex) |
|
50 { |
|
51 FUNC_LOG; |
|
52 return iSmileyDictionary->GetSmileyLength(aSmileyIndex); |
|
53 } |
|
54 |
|
55 TFileName CFsSmileyParser::GetSmileyFileName(TInt aSmileyIndex) |
|
56 { |
|
57 FUNC_LOG; |
|
58 return iSmileyDictionary->GetSmileyFileName(aSmileyIndex); |
|
59 } |
|
60 |
|
61 TInt CFsSmileyParser::GetSmileyIndex() |
|
62 { |
|
63 FUNC_LOG; |
|
64 return iSmileyDictionary->GetSmileyIndex(); |
|
65 } |
|
66 |
|
67 TBool CFsSmileyParser::IsPartOfSmileyL(TBuf<1> someCharacter) |
|
68 { |
|
69 FUNC_LOG; |
|
70 return iSmileyDictionary->CheckDictionaryL(someCharacter); |
|
71 } |
|
72 |
|
73 TBool CFsSmileyParser::IsSmiley() |
|
74 { |
|
75 FUNC_LOG; |
|
76 return iSmileyDictionary->IsSmiley(); |
|
77 } |
|
78 |
|
79 void CFsSmileyParser::SetSmileyDictionary( |
|
80 CFsSmileyDictionary* aSmileyDictionary) |
|
81 { |
|
82 FUNC_LOG; |
|
83 iSmileyDictionary = aSmileyDictionary; |
|
84 } |
|
85 |
|
86 |