|
1 /* |
|
2 * Copyright (c) 2008 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: Presence traffic light observer API |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MPRESENCETRAFFICLIGHTSOBS_H |
|
19 #define MPRESENCETRAFFICLIGHTSOBS_H |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <badesca.h> |
|
23 |
|
24 class MVPbkContactLink; |
|
25 |
|
26 class MPresenceServiceIconInfo |
|
27 { |
|
28 public: |
|
29 |
|
30 |
|
31 virtual TPtrC8 BrandId() = 0; |
|
32 |
|
33 virtual TPtrC8 ElementId() = 0; |
|
34 |
|
35 virtual TPtrC ServiceName() = 0; |
|
36 |
|
37 virtual TInt BrandLanguage() = 0; |
|
38 }; |
|
39 |
|
40 |
|
41 |
|
42 /** |
|
43 * MPresenceIconNotifier |
|
44 * |
|
45 * Presence icons observer |
|
46 * |
|
47 * @lib cmsserver |
|
48 * @since s60 v5.0 |
|
49 */ |
|
50 |
|
51 class MPresenceIconNotifier |
|
52 { |
|
53 public: |
|
54 |
|
55 /** |
|
56 * icon has changed for a contact, common traffic light logic here. |
|
57 * |
|
58 * @param aLink contactlink |
|
59 * @param aBrandId brand id |
|
60 * @param aElementId element id |
|
61 * @param aId id given in SubscribeBrandingForContactL |
|
62 * @param aBrandLanguage - Brand Language ID |
|
63 */ |
|
64 virtual void NewIconForContact( |
|
65 MVPbkContactLink* aLink, |
|
66 const TDesC8& aBrandId, |
|
67 const TDesC8& aElementId, |
|
68 TInt aId, |
|
69 TInt aBrandLanguage ) = 0; |
|
70 |
|
71 /** |
|
72 * Get all icons at once, all service specific icons, no common traffic light logic here. |
|
73 * |
|
74 * @param aLink contactlink |
|
75 * @param aInfoArray array of incons infos, ownership is not transferred |
|
76 * @param aId id given in SubscribeBrandingForContactL |
|
77 */ |
|
78 virtual void NewIconsForContact( |
|
79 MVPbkContactLink* aLink, |
|
80 RPointerArray <MPresenceServiceIconInfo>& aInfoArray, |
|
81 TInt aId ) = 0; |
|
82 |
|
83 }; |
|
84 |
|
85 #endif // MPRESENCETRAFFICLIGHTSOBS_H |
|
86 |
|
87 |
|
88 |