author | Fionntina Carville <fionntinac@symbian.org> |
Mon, 15 Nov 2010 11:44:32 +0000 | |
branch | RCL_3 |
changeset 84 | 1dabaed15bcd |
parent 81 | c26cc2a7c548 |
permissions | -rw-r--r-- |
62 | 1 |
/* |
2 |
* Copyright (c) 2010 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: Easy dialing contact data container. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#include <e32std.h> |
|
19 |
#include <MVPbkContactLink.h> |
|
20 |
#include <fbs.h> |
|
21 |
||
22 |
#include "easydialingcontactdata.h" |
|
23 |
||
24 |
// --------------------------------------------------------------------------- |
|
25 |
// CEasyDialingContactData::CEasyDialingContactData |
|
26 |
// --------------------------------------------------------------------------- |
|
27 |
// |
|
28 |
CEasyDialingContactData::CEasyDialingContactData(MVPbkContactLink* aContactLink) |
|
81
c26cc2a7c548
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
62
diff
changeset
|
29 |
: iContactLink(aContactLink), iThumbnail(NULL),iFav(EFalse), iLoaded(EFalse) |
62 | 30 |
{ |
31 |
} |
|
32 |
||
33 |
// --------------------------------------------------------------------------- |
|
34 |
// CEasyDialingContactData::~CEasyDialingContactData |
|
35 |
// --------------------------------------------------------------------------- |
|
36 |
// |
|
37 |
CEasyDialingContactData::~CEasyDialingContactData() |
|
38 |
{ |
|
39 |
delete iThumbnail; |
|
40 |
delete iContactLink; |
|
41 |
} |
|
42 |
||
43 |
// --------------------------------------------------------------------------- |
|
44 |
// CEasyDialingContactData::Id |
|
45 |
// --------------------------------------------------------------------------- |
|
46 |
// |
|
47 |
MVPbkContactLink* CEasyDialingContactData::ContactLink() |
|
48 |
{ |
|
49 |
return iContactLink; |
|
50 |
} |
|
51 |
||
52 |
// --------------------------------------------------------------------------- |
|
53 |
// CEasyDialingContactData::Thumbnail |
|
54 |
// --------------------------------------------------------------------------- |
|
55 |
// |
|
56 |
CFbsBitmap* CEasyDialingContactData::Thumbnail() |
|
57 |
{ |
|
58 |
return iThumbnail; |
|
59 |
} |
|
60 |
||
61 |
// --------------------------------------------------------------------------- |
|
62 |
// CEasyDialingContactData::SetThumbnail |
|
63 |
// --------------------------------------------------------------------------- |
|
64 |
// |
|
65 |
void CEasyDialingContactData::SetThumbnail(CFbsBitmap* aThumbnail) |
|
66 |
{ |
|
81
c26cc2a7c548
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
62
diff
changeset
|
67 |
if (iThumbnail) |
c26cc2a7c548
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
62
diff
changeset
|
68 |
{ |
c26cc2a7c548
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
62
diff
changeset
|
69 |
delete iThumbnail; |
c26cc2a7c548
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
62
diff
changeset
|
70 |
} |
62 | 71 |
iThumbnail = aThumbnail; |
72 |
} |
|
73 |
||
74 |
// --------------------------------------------------------------------------- |
|
75 |
// CEasyDialingContactData::Fav |
|
76 |
// --------------------------------------------------------------------------- |
|
77 |
// |
|
78 |
TBool CEasyDialingContactData::Fav() |
|
79 |
{ |
|
80 |
return iFav; |
|
81 |
} |
|
82 |
||
83 |
// --------------------------------------------------------------------------- |
|
84 |
// CEasyDialingContactData::SetFav |
|
85 |
// --------------------------------------------------------------------------- |
|
86 |
// |
|
87 |
void CEasyDialingContactData::SetFav(TBool aFav) |
|
88 |
{ |
|
89 |
iFav = aFav; |
|
90 |
} |
|
91 |
||
92 |
// --------------------------------------------------------------------------- |
|
93 |
// CEasyDialingContactData::IsLoaded |
|
94 |
// --------------------------------------------------------------------------- |
|
95 |
// |
|
96 |
TBool CEasyDialingContactData::IsLoaded() |
|
97 |
{ |
|
98 |
return iLoaded; |
|
99 |
} |
|
100 |
||
101 |
// --------------------------------------------------------------------------- |
|
102 |
// CEasyDialingContactData::LoadingComplete |
|
103 |
// --------------------------------------------------------------------------- |
|
104 |
// |
|
105 |
void CEasyDialingContactData::LoadingComplete() |
|
106 |
{ |
|
107 |
iLoaded = ETrue; |
|
108 |
} |
|
109 |
||
110 |
||
111 |
// --------------------------------------------------------------------------- |
|
112 |
// CEasyDialingContactData::DeleteThumbnail |
|
113 |
// --------------------------------------------------------------------------- |
|
114 |
// |
|
115 |
void CEasyDialingContactData::DeleteThumbnail() |
|
116 |
{ |
|
117 |
delete iThumbnail; |
|
118 |
iThumbnail = NULL; |
|
119 |
iLoaded = EFalse; |
|
120 |
} |
|
121 |
||
122 |
||
123 |
// --------------------------------------------------------------------------- |
|
124 |
// CEasyDialingContactData::VoiceCallAvailable |
|
125 |
// --------------------------------------------------------------------------- |
|
126 |
// |
|
127 |
TBool CEasyDialingContactData::VoiceCallAvailable() |
|
128 |
{ |
|
129 |
return iVoiceCallAvailable; |
|
130 |
} |
|
131 |
||
132 |
||
133 |
// --------------------------------------------------------------------------- |
|
134 |
// CEasyDialingContactData::SetVoiceCallAvailable |
|
135 |
// --------------------------------------------------------------------------- |
|
136 |
// |
|
137 |
void CEasyDialingContactData::SetVoiceCallAvailable( TBool aVailable ) |
|
138 |
{ |
|
139 |
iVoiceCallAvailable = aVailable; |
|
140 |
} |
|
141 |
||
142 |
||
143 |
// --------------------------------------------------------------------------- |
|
144 |
// CEasyDialingContactData::VideoCallAvailable |
|
145 |
// --------------------------------------------------------------------------- |
|
146 |
// |
|
147 |
TBool CEasyDialingContactData::VideoCallAvailable() |
|
148 |
{ |
|
149 |
return iVideoCallAvailable; |
|
150 |
} |
|
151 |
||
152 |
||
153 |
// --------------------------------------------------------------------------- |
|
154 |
// CEasyDialingContactData::SetVideoCallAvailable |
|
155 |
// --------------------------------------------------------------------------- |
|
156 |
// |
|
157 |
void CEasyDialingContactData::SetVideoCallAvailable( TBool aVailable ) |
|
158 |
{ |
|
159 |
iVideoCallAvailable = aVailable; |
|
160 |
} |
|
161 |
||
162 |
||
163 |
// --------------------------------------------------------------------------- |
|
164 |
// CEasyDialingContactData::UniEditorAvailable |
|
165 |
// --------------------------------------------------------------------------- |
|
166 |
// |
|
167 |
TBool CEasyDialingContactData::UniEditorAvailable() |
|
168 |
{ |
|
169 |
return iUniEditorAvailable; |
|
170 |
} |
|
171 |
||
172 |
||
173 |
// --------------------------------------------------------------------------- |
|
174 |
// CEasyDialingContactData::SetUniEditorAvailable |
|
175 |
// --------------------------------------------------------------------------- |
|
176 |
// |
|
177 |
void CEasyDialingContactData::SetUniEditorAvailable( TBool aVailable ) |
|
178 |
{ |
|
179 |
iUniEditorAvailable = aVailable; |
|
180 |
} |
|
181 |
||
81
c26cc2a7c548
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
62
diff
changeset
|
182 |
|
c26cc2a7c548
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
62
diff
changeset
|
183 |
|
c26cc2a7c548
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
62
diff
changeset
|
184 |
|
c26cc2a7c548
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
62
diff
changeset
|
185 |