25
|
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 manager.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef __EASYDIALINGCONTACTDATA_H__
|
|
20 |
#define __EASYDIALINGCONTACTDATA_H__
|
|
21 |
|
|
22 |
class CFbsBitmap;
|
|
23 |
class MVPbkContactLink;
|
|
24 |
|
|
25 |
/**
|
|
26 |
* Container for easy dialing contact data for one contact.
|
|
27 |
*/
|
|
28 |
class CEasyDialingContactData : public CBase
|
|
29 |
{
|
|
30 |
public:
|
|
31 |
|
|
32 |
/**
|
|
33 |
* Constructor.
|
|
34 |
*/
|
|
35 |
CEasyDialingContactData(MVPbkContactLink* aContactLink);
|
|
36 |
|
|
37 |
/**
|
|
38 |
* Destructor.
|
|
39 |
*/
|
|
40 |
~CEasyDialingContactData();
|
|
41 |
|
|
42 |
|
|
43 |
/**
|
|
44 |
* Gets a pointer to contact link.
|
|
45 |
* @return Pointer to contact link object.
|
|
46 |
*/
|
|
47 |
MVPbkContactLink* ContactLink();
|
|
48 |
|
|
49 |
|
|
50 |
/**
|
|
51 |
* Get's contact's thumbnail bitmap.
|
|
52 |
* @return Pointer to bitmap object.
|
|
53 |
*/
|
|
54 |
CFbsBitmap* Thumbnail();
|
|
55 |
|
|
56 |
|
|
57 |
/**
|
|
58 |
* Setting function for contact thumbnail.
|
|
59 |
* @param aThumnail Thumbnail to set.
|
|
60 |
*/
|
|
61 |
void SetThumbnail(CFbsBitmap* aThumbnail);
|
|
62 |
|
|
63 |
|
|
64 |
/**
|
|
65 |
* Get favourite status of the contact.
|
|
66 |
* @return ETrue, if contact is a favourite, EFalse otherwise.
|
|
67 |
*/
|
|
68 |
TBool Fav();
|
|
69 |
|
|
70 |
|
|
71 |
/**
|
|
72 |
* Sets favourite status of the contact.
|
|
73 |
* @param aFav Boolean value containing the status.
|
|
74 |
*/
|
|
75 |
void SetFav(TBool aFav);
|
|
76 |
|
|
77 |
|
|
78 |
/**
|
|
79 |
* Gets SIM contact status of the contact
|
|
80 |
* @return ETrue, if contact is a SIM contact, EFalse otherwise.
|
|
81 |
*/
|
|
82 |
TBool IsSimContact();
|
|
83 |
|
|
84 |
|
|
85 |
/**
|
|
86 |
* Sets SIM contact status of the contact
|
|
87 |
* @param aSim Boolean value containing the status.
|
|
88 |
*/
|
|
89 |
void SetSimContact(TBool aSim);
|
|
90 |
|
|
91 |
|
|
92 |
/**
|
|
93 |
* Gets Service Dialing Number status of the contact
|
|
94 |
* @return ETrue, if contact is a SDN contact, EFalse otherwise.
|
|
95 |
*/
|
|
96 |
TBool IsSdnContact();
|
|
97 |
|
|
98 |
|
|
99 |
/**
|
|
100 |
* Sets Service Dialing Number status of the contact
|
|
101 |
* @param aSdn Boolean value containing the status.
|
|
102 |
*/
|
|
103 |
void SetSdnContact(TBool aSdn);
|
|
104 |
|
|
105 |
|
|
106 |
/**
|
|
107 |
* Returns the loading status of the contact.
|
|
108 |
* @return ETrue, if contact data loading has completed, EFalse otherwise.
|
|
109 |
*/
|
|
110 |
TBool IsLoaded();
|
|
111 |
|
|
112 |
|
|
113 |
/**
|
|
114 |
* Sets loading status to complete.
|
|
115 |
*/
|
|
116 |
void LoadingComplete();
|
|
117 |
|
|
118 |
|
|
119 |
/**
|
|
120 |
* Deletes the thumbnail image of the contact.
|
|
121 |
*/
|
|
122 |
void DeleteThumbnail();
|
|
123 |
|
|
124 |
|
|
125 |
/**
|
|
126 |
* Return ETrue if voice call is available.
|
|
127 |
*/
|
|
128 |
TBool VoiceCallAvailable();
|
|
129 |
|
|
130 |
|
|
131 |
/**
|
|
132 |
* Sets voice call availability status.
|
|
133 |
* @param aVailable Availability of voice call.
|
|
134 |
*/
|
|
135 |
void SetVoiceCallAvailable( TBool aVailable );
|
|
136 |
|
|
137 |
|
|
138 |
/**
|
|
139 |
* Return ETrue if video call is available.
|
|
140 |
*/
|
|
141 |
TBool VideoCallAvailable();
|
|
142 |
|
|
143 |
|
|
144 |
/**
|
|
145 |
* Sets video call availability status.
|
|
146 |
* @param aVailable Availability of video call.
|
|
147 |
*/
|
|
148 |
void SetVideoCallAvailable( TBool aVailable );
|
|
149 |
|
|
150 |
|
|
151 |
/**
|
|
152 |
* Return ETrue if uni-editor (SMS, MMS, e-mail) is available.
|
|
153 |
*/
|
|
154 |
TBool UniEditorAvailable();
|
|
155 |
|
|
156 |
|
|
157 |
/**
|
|
158 |
* Sets uni-editor availability status.
|
|
159 |
* @param aVailable Availability of uni-editor.
|
|
160 |
*/
|
|
161 |
void SetUniEditorAvailable( TBool aVailable );
|
|
162 |
|
|
163 |
private:
|
|
164 |
|
|
165 |
/** Contact link. Owned. */
|
|
166 |
MVPbkContactLink* iContactLink;
|
|
167 |
|
|
168 |
/** Thumbnail bitmap. Owned. */
|
|
169 |
CFbsBitmap* iThumbnail;
|
|
170 |
|
|
171 |
/** ETrue if this is a favourite contact. */
|
|
172 |
TBool iFav;
|
|
173 |
|
|
174 |
/** ETrue if this is a normal SIM contact. */
|
|
175 |
TBool iSimContact;
|
|
176 |
|
|
177 |
/** ETrue if this is a service number contact. */
|
|
178 |
TBool iSdnContact;
|
|
179 |
|
|
180 |
/** ETrue is asynchronous loading of contact data is complete. */
|
|
181 |
TBool iLoaded;
|
|
182 |
|
|
183 |
/** ETrue if voice call is a possible action with this contact. */
|
|
184 |
TBool iVoiceCallAvailable;
|
|
185 |
|
|
186 |
/** ETrue if video call is a possible action with this contact. */
|
|
187 |
TBool iVideoCallAvailable;
|
|
188 |
|
|
189 |
/** ETrue if SMS or MMS is a possible action with this contact. */
|
|
190 |
TBool iUniEditorAvailable;
|
|
191 |
};
|
|
192 |
|
|
193 |
#endif //__EASYDIALINGCONTACTDATA_H__
|