33 #include <mcontactpresenceinfo.h> |
33 #include <mcontactpresenceinfo.h> |
34 // FORWARD DECLARATIONS |
34 // FORWARD DECLARATIONS |
35 class CVPbkContactManager; |
35 class CVPbkContactManager; |
36 class MVPbkContactLink; |
36 class MVPbkContactLink; |
37 class MContactPresence; |
37 class MContactPresence; |
|
38 class CFbsBitmap; |
|
39 class CBSFactory; |
38 |
40 |
39 // CLASS DECLARATION |
41 // CLASS DECLARATION |
40 |
42 |
41 /** |
43 /** |
42 * Phonebook 2 ECE Presence Engine. |
44 * Phonebook 2 ECE Presence Engine. |
97 * Creates an icon instance. Call only after a succesfull call to GetIconIdForContactL(). |
99 * Creates an icon instance. Call only after a succesfull call to GetIconIdForContactL(). |
98 * |
100 * |
99 * @exception Panics if called when icon is not available. See GetIconIdForContactL(). |
101 * @exception Panics if called when icon is not available. See GetIconIdForContactL(). |
100 */ |
102 */ |
101 CGulIcon* CreateIconCopyLC( const TPbk2IconId& aIconId ); |
103 CGulIcon* CreateIconCopyLC( const TPbk2IconId& aIconId ); |
|
104 |
|
105 /** |
|
106 * Gets the bitmap and mask for the element from the Branding Server |
|
107 * @param aLanguageId - Language for which Brand is requested |
|
108 * @param aBrandedBitmap - Ptr to the Bitmap Ownership is transferred to the caller |
|
109 * @param aBrandedMask - Ptr to the BitmapMask Ownership is transferred to the caller |
|
110 * @param aBSFactory - interface for access brandingserver |
|
111 * @param aBrandId - brandingId, |
|
112 * @param aElementId - elementId |
|
113 */ |
|
114 void GetBitmapFromBrandingServerL( |
|
115 TLanguage aLanguageId, |
|
116 CFbsBitmap*& aBrandedBitmap, |
|
117 CFbsBitmap*& aBrandedMask, |
|
118 CBSFactory& aBSFactory, |
|
119 const TDesC8& aBrandId, |
|
120 const TDesC8& aElementId) ; |
|
121 |
|
122 /** |
|
123 * Loops thro the ServiceTable/SpSettings and finds the |
|
124 * BrandLanguage associated to the BrandId (aBrandId) |
|
125 * @param aBrandId - BrandId mentioned in the ServiceTable |
|
126 * @return TLanguage - Returns the matched Language Id, else 47(ELangInternationalEnglish) |
|
127 */ |
|
128 TLanguage CPbk2EcePresenceEngine::FindBrandLanguageIdL( const TDesC8& aBrandId ); |
102 |
129 |
103 |
130 |
104 private: // from MContactPresenceObs |
131 private: // from MContactPresenceObs |
105 void ReceiveIconInfoL( |
132 void ReceiveIconInfoL( |
106 const TDesC8& aPackedLink, |
133 const TDesC8& aPackedLink, |