|
1 /* |
|
2 * Copyright (c) 2006-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: Plugin for messagingplugin information search. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "msgentrydetails.h" |
|
21 |
|
22 // ------------------------------------------------------------------------------------------------ |
|
23 // CMsgDesC::CMsgDesC() |
|
24 // constructor |
|
25 // ------------------------------------------------------------------------------------------------ |
|
26 // |
|
27 |
|
28 CMsgDesC::CMsgDesC() |
|
29 { |
|
30 |
|
31 } |
|
32 |
|
33 // ------------------------------------------------------------------------------------------------ |
|
34 // CMsgDesC::~CMsgDesC() |
|
35 // constructor |
|
36 // ------------------------------------------------------------------------------------------------ |
|
37 // |
|
38 CMsgDesC::~CMsgDesC() |
|
39 { |
|
40 delete iTitle; |
|
41 delete iBodyOfMessage; |
|
42 |
|
43 } |
|
44 |
|
45 // ------------------------------------------------------------------------------------------------ |
|
46 // Sets the title |
|
47 // ------------------------------------------------------------------------------------------------ |
|
48 // |
|
49 void CMsgDesC::SetTitleL(const TDesC& aDes ) |
|
50 { |
|
51 iTitle = aDes.AllocL(); |
|
52 } |
|
53 |
|
54 // ------------------------------------------------------------------------------------------------ |
|
55 // Sets the body of message |
|
56 // ------------------------------------------------------------------------------------------------ |
|
57 // |
|
58 void CMsgDesC::SetBodyL(const TDesC& aDes ) |
|
59 { |
|
60 /* iSummary = HBufC::NewL( aDes.Length() ); |
|
61 iSummary->Des().Copy( aDes ); */ |
|
62 |
|
63 iBodyOfMessage = aDes.AllocL(); |
|
64 } |
|
65 |
|
66 |
|
67 |
|
68 // ------------------------------------------------------------------------------------------------ |
|
69 // Sets keyword hit position |
|
70 // ------------------------------------------------------------------------------------------------ |
|
71 // |
|
72 void CMsgDesC::SetKeywordHitPosL(TInt aKeywordHitPos) |
|
73 { |
|
74 iKeywordHitPos = aKeywordHitPos; |
|
75 } |
|
76 |
|
77 // ------------------------------------------------------------------------------------------------ |
|
78 // Gets title of the message |
|
79 // ------------------------------------------------------------------------------------------------ |
|
80 // |
|
81 HBufC* CMsgDesC::GetTitle() |
|
82 { |
|
83 return iTitle; |
|
84 } |
|
85 |
|
86 // ------------------------------------------------------------------------------------------------ |
|
87 // Gets the body of the message |
|
88 // ------------------------------------------------------------------------------------------------ |
|
89 // |
|
90 HBufC* CMsgDesC::GetBody() |
|
91 { |
|
92 return iBodyOfMessage; |
|
93 } |
|
94 |
|
95 |
|
96 |
|
97 // ------------------------------------------------------------------------------------------------ |
|
98 // CMsgDesC::GetKeywordHitPosition() |
|
99 // Gets the keyword hit position |
|
100 // ------------------------------------------------------------------------------------------------ |
|
101 // |
|
102 TInt CMsgDesC::GetKeywordHitPosition() |
|
103 { |
|
104 return iKeywordHitPos; |
|
105 } |