|
1 /* |
|
2 * Copyright (c) 2007 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: Implementation of class CFsRichTextSmiley |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "emailtrace.h" |
|
20 #include "fsrichtextsmiley.h" |
|
21 #include "fsrichtexttext.h" |
|
22 #include "fsrichtextpicture.h" |
|
23 |
|
24 // --------------------------------------------------------------------------- |
|
25 // NewL |
|
26 // --------------------------------------------------------------------------- |
|
27 // |
|
28 CFsRichTextSmiley* CFsRichTextSmiley::NewL() |
|
29 { |
|
30 FUNC_LOG; |
|
31 CFsRichTextSmiley* self = new ( ELeave ) CFsRichTextSmiley(); |
|
32 CleanupStack::PushL( self ); |
|
33 self->ConstructL(); |
|
34 CleanupStack::Pop( self ); |
|
35 return self; |
|
36 } |
|
37 |
|
38 CFsRichTextSmiley* CFsRichTextSmiley::NewL( |
|
39 CFsRichTextText* aRichTextText, |
|
40 CFsRichTextPicture* aRichTextPicture ) |
|
41 { |
|
42 FUNC_LOG; |
|
43 CFsRichTextSmiley* self = new ( ELeave ) CFsRichTextSmiley( |
|
44 aRichTextText, |
|
45 aRichTextPicture); |
|
46 CleanupStack::PushL( self ); |
|
47 self->ConstructL(); |
|
48 CleanupStack::Pop( self ); |
|
49 return self; |
|
50 } |
|
51 |
|
52 CFsRichTextSmiley::~CFsRichTextSmiley() |
|
53 { |
|
54 FUNC_LOG; |
|
55 delete iRichTextText; |
|
56 delete iRichTextPicture; |
|
57 } |
|
58 |
|
59 void CFsRichTextSmiley::SetTextObject(CFsRichTextText* aRichTextText) |
|
60 { |
|
61 FUNC_LOG; |
|
62 iRichTextText = aRichTextText; |
|
63 } |
|
64 |
|
65 void CFsRichTextSmiley::SetPictureObject(CFsRichTextPicture* aRichTextPicture) |
|
66 { |
|
67 FUNC_LOG; |
|
68 iRichTextPicture = aRichTextPicture; |
|
69 } |
|
70 |
|
71 CFsRichTextText* CFsRichTextSmiley::GetTextObject() |
|
72 { |
|
73 FUNC_LOG; |
|
74 return iRichTextText; |
|
75 } |
|
76 |
|
77 CFsRichTextPicture* CFsRichTextSmiley::GetPictureObject() |
|
78 { |
|
79 FUNC_LOG; |
|
80 return iRichTextPicture; |
|
81 } |
|
82 |
|
83 void CFsRichTextSmiley::ConstructL() |
|
84 { |
|
85 FUNC_LOG; |
|
86 |
|
87 } |
|
88 |
|
89 CFsRichTextSmiley::CFsRichTextSmiley() |
|
90 : iRichTextText(NULL), iRichTextPicture(NULL) |
|
91 { |
|
92 FUNC_LOG; |
|
93 iType = EFsSmiley; |
|
94 } |
|
95 |
|
96 CFsRichTextSmiley::CFsRichTextSmiley( |
|
97 CFsRichTextText* aRichTextText, |
|
98 CFsRichTextPicture* aRichTextPicture ) |
|
99 : iRichTextText(aRichTextText), iRichTextPicture(aRichTextPicture) |
|
100 { |
|
101 FUNC_LOG; |
|
102 iType = EFsSmiley; |
|
103 } |
|
104 |
|
105 |
|
106 |