|
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 * Returns the loading status of the contact. |
|
80 * @return ETrue, if contact data loading has completed, EFalse otherwise. |
|
81 */ |
|
82 TBool IsLoaded(); |
|
83 |
|
84 |
|
85 /** |
|
86 * Sets loading status to complete. |
|
87 */ |
|
88 void LoadingComplete(); |
|
89 |
|
90 |
|
91 /** |
|
92 * Deletes the thumbnail image of the contact. |
|
93 */ |
|
94 void DeleteThumbnail(); |
|
95 |
|
96 |
|
97 /** |
|
98 * Return ETrue if voice call is available. |
|
99 */ |
|
100 TBool VoiceCallAvailable(); |
|
101 |
|
102 |
|
103 /** |
|
104 * Sets voice call availability status. |
|
105 * @param aVailable Availability of voice call. |
|
106 */ |
|
107 void SetVoiceCallAvailable( TBool aVailable ); |
|
108 |
|
109 |
|
110 /** |
|
111 * Return ETrue if video call is available. |
|
112 */ |
|
113 TBool VideoCallAvailable(); |
|
114 |
|
115 |
|
116 /** |
|
117 * Sets video call availability status. |
|
118 * @param aVailable Availability of video call. |
|
119 */ |
|
120 void SetVideoCallAvailable( TBool aVailable ); |
|
121 |
|
122 |
|
123 /** |
|
124 * Return ETrue if uni-editor (SMS, MMS, e-mail) is available. |
|
125 */ |
|
126 TBool UniEditorAvailable(); |
|
127 |
|
128 |
|
129 /** |
|
130 * Sets uni-editor availability status. |
|
131 * @param aVailable Availability of uni-editor. |
|
132 */ |
|
133 void SetUniEditorAvailable( TBool aVailable ); |
|
134 |
|
135 private: |
|
136 |
|
137 /** Contact link. Owned. */ |
|
138 MVPbkContactLink* iContactLink; |
|
139 |
|
140 /** Thumbnail bitmap. Owned. */ |
|
141 CFbsBitmap* iThumbnail; |
|
142 |
|
143 /** ETrue if this is a favourite contact. */ |
|
144 TBool iFav; |
|
145 |
|
146 /** ETrue is asynchronous loading of contact data is complete. */ |
|
147 TBool iLoaded; |
|
148 |
|
149 /** ETrue if voice call is a possible action with this contact. */ |
|
150 TBool iVoiceCallAvailable; |
|
151 |
|
152 /** ETrue if video call is a possible action with this contact. */ |
|
153 TBool iVideoCallAvailable; |
|
154 |
|
155 /** ETrue if SMS or MMS is a possible action with this contact. */ |
|
156 TBool iUniEditorAvailable; |
|
157 }; |
|
158 |
|
159 #endif //__EASYDIALINGCONTACTDATA_H__ |