1 /* |
|
2 * Copyright (c) 2006 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: IETF SIMPLE Protocol implementation for XIMP Framework |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef PRESENCEPLUGINCOMMON_H |
|
19 #define PRESENCEPLUGINCOMMON_H |
|
20 |
|
21 #include <e32std.h> |
|
22 |
|
23 /** |
|
24 * common definitions for Presence Plugin |
|
25 */ |
|
26 |
|
27 //Define max tuple and person id integer |
|
28 const TInt KMaxNumber = 99999999; |
|
29 |
|
30 //Buf size defines |
|
31 |
|
32 const TInt KBufSize100 = 100; |
|
33 const TInt KBufSize200 = 200; |
|
34 const TInt KBufSize255 = 255; |
|
35 const TInt KBufSize20 = 20; |
|
36 const TInt KBufSize10 = 10; |
|
37 |
|
38 // Presence Plugin specifications |
|
39 |
|
40 _LIT( KPluginName, "CPresencePlugin"); |
|
41 |
|
42 /** Nothing subscribed */ |
|
43 const TUint KPresencePluginSubsNone = 0x00000000; |
|
44 /** Grant list subscribed */ |
|
45 const TUint KPresencePluginSubsGrant = 0x00000001; |
|
46 /** Block list subscribed */ |
|
47 const TUint KPresencePluginSubsBlock = 0x00000002; |
|
48 /** Winfo list subscribed */ |
|
49 const TUint KPresencePluginSubsWinfo = 0x00000004; |
|
50 |
|
51 //XDM Resourcelist |
|
52 /** buddy list id */ |
|
53 _LIT( KPresenceBuddyList, "buddylist"); |
|
54 /** blocked list id */ |
|
55 _LIT( KPresenceBlockedList, "blockedcontacts"); |
|
56 /** for virtual online buddy group */ |
|
57 _LIT( KPresenceOnlineBuddy ,"online_buddies"); |
|
58 /** Subscribed buddys */ |
|
59 _LIT( KPresenceSubcribedBuddys, "subs_buddys"); |
|
60 |
|
61 //XDM Presencerules list |
|
62 /** Presence XDM block rule id */ |
|
63 _LIT( KPresenceXdmBlockRule, "pres_blacklist"); |
|
64 /** Presence XDM whitelist*/ |
|
65 _LIT( KPresenceXdmWhiteList, "pres_whitelist"); |
|
66 /** Presence XDM grant rule id */ |
|
67 _LIT( KPresenceXdmGrantRule, "pres_whitelist"); |
|
68 /** S60 Shared XDM list for granted entities */ |
|
69 _LIT( KPresenceS60GrantedList, "s60_granted_list"); |
|
70 |
|
71 //For localmode check |
|
72 _LIT(KLocalhost, "http://localhost"); |
|
73 |
|
74 // when contact goes offline this is content of aBasicElement->ContentUnicodeL() |
|
75 _LIT( KClose ,"close"); |
|
76 |
|
77 //For own presence status NOTIFY |
|
78 _LIT(KIndent, "t"); // for tupleId |
|
79 _LIT(KPersonId, "p"); // for person |
|
80 |
|
81 // Temporary hard coded values for presence cache 2 support. Common definitions needed! |
|
82 _LIT( KDefaultAvailableStatus, "available" ); |
|
83 |
|
84 |
|
85 namespace NPresencePlugin |
|
86 { |
|
87 namespace NPresence |
|
88 { |
|
89 _LIT( KPresenceDisplayName, "display-name"); |
|
90 _LIT( KPresenceIndex, "index"); |
|
91 _LIT( KPresenceResourceLists, "resource-lists"); |
|
92 _LIT( KPresenceResourceList, "resource-list.xml"); |
|
93 _LIT( KPresenceConditions, "conditions"); |
|
94 _LIT( KPresenceIdentity, "identity"); |
|
95 _LIT( KPresenceRuleset, "ruleset" ); |
|
96 _LIT( KPresenceRule, "rule"); |
|
97 _LIT( KPresenceAction, "actions"); |
|
98 _LIT( KPresenceAllow, "allow"); |
|
99 _LIT8( KPresenceAllow8, "allow"); |
|
100 _LIT( KPresenceBlock, "block"); |
|
101 _LIT8( KPresenceBlock8, "block"); |
|
102 _LIT( KPresenceSub, "sub-handling"); |
|
103 _LIT( KPresencePresRules, "presrules"); |
|
104 _LIT( KPresenceList, "list"); |
|
105 _LIT( KPresenceName, "name"); |
|
106 _LIT( KPresenceEntry, "entry"); |
|
107 _LIT( KPresenceOne , "one"); |
|
108 _LIT( KPresencePerson, "person"); |
|
109 _LIT8( KPresencePerson8, "person"); |
|
110 _LIT8( KPresenceWatcher8, "watcher"); |
|
111 _LIT8( KPresenceWatherInfo8, "watcherinfo"); |
|
112 _LIT8( KPresenceWatcherList8, "watcher-list"); |
|
113 _LIT8( KPresenceStatus8, "status"); |
|
114 _LIT8( KPresenceActive8, "active"); |
|
115 _LIT8( KPresenceEvent8, "event"); |
|
116 _LIT8( KPresencePending8, "pending"); |
|
117 _LIT8( KPresenceBasic8, "basic"); |
|
118 _LIT( KPresenceBasic, "basic"); |
|
119 _LIT8( KPresenceStatusicon8, "status-icon"); |
|
120 _LIT8( KPresenceNote8, "note"); |
|
121 _LIT8( KPresenceSubscribe8, "subscribe"); |
|
122 _LIT( KPresenceUri, "uri"); |
|
123 _LIT8( KPresenceUri8, "uri"); |
|
124 _LIT8( KPresenceState8, "state"); |
|
125 _LIT8( KPresenceInstance8, "instance"); |
|
126 _LIT8( KPresenceTerminated8, "terminated"); |
|
127 _LIT8( KPresenceResource8, "resource"); |
|
128 _LIT8( KPresenceList8, "list"); |
|
129 _LIT8( KPresenceTuple8, "tuple"); |
|
130 _LIT( KPresenceTuple, "tuple"); |
|
131 _LIT( KPresenceId, "id"); |
|
132 _LIT8( KPresenceId8, "id"); |
|
133 _LIT( KPresenceActivities, "activities"); |
|
134 _LIT8( KPresenceActivities8, "activities"); |
|
135 _LIT8( KPresenceFull8, "full"); |
|
136 _LIT( KPresencePartial, "partial"); |
|
137 _LIT8( KPresencePartial8, "partial"); |
|
138 } |
|
139 namespace NPresenceStates |
|
140 { |
|
141 _LIT( KPresenceOpen, "open"); |
|
142 _LIT( KPresenceClosed, "closed"); |
|
143 _LIT( KPresenceClose, "close"); |
|
144 _LIT( KPresenceOffline, "offline"); |
|
145 _LIT8( KPresenceOffline8, "offline"); |
|
146 _LIT( KPresenceAvailable, "available"); |
|
147 _LIT8( KPresenceAvailable8, "available"); |
|
148 _LIT( KPresenceUnknow, "unknown"); |
|
149 _LIT8( KPresenceUnknow8, "unknown"); |
|
150 _LIT( KPresenceBusy, "busy"); |
|
151 _LIT8( KPresenceBusy8, "busy"); |
|
152 _LIT( KPresenceOnThePhone, "on-the-phone"); |
|
153 _LIT8( KPresenceOnThePhone8, "on-the-phone"); |
|
154 _LIT( KPresenceAway, "away"); |
|
155 _LIT8( KPresenceAway8, "away"); |
|
156 _LIT( KPresenceDoNotDisturb, "do-not-disturb"); |
|
157 _LIT8( KPresenceDoNotDisturb8, "do-not-disturb"); |
|
158 _LIT( KPresencePending, "pending" ); |
|
159 } |
|
160 namespace NPresenceTransformations |
|
161 { |
|
162 _LIT( KPresenceTRUE, "TRUE"); |
|
163 _LIT( KPresenceFALSE, "FALSE"); |
|
164 _LIT( KPresenceTrasformations, "transformations"); |
|
165 _LIT( KPresenceProvideServices, "provide-services"); |
|
166 _LIT( KPresenceAllServices, "all-services"); |
|
167 _LIT( KPresenceProvidePersons, "provide-persons"); |
|
168 _LIT( KPresenceAllPersons, "all-persons"); |
|
169 _LIT( KPresenceProvidedevices, "provide-devices"); |
|
170 _LIT( KPresenceAlldevices, "all-devices"); |
|
171 _LIT( KPresenceProvideAllAttributes, "provide-all-attributes"); |
|
172 _LIT( KPresenceProvideActivities, "provide-activities"); |
|
173 _LIT( KPresenceProvideNote, "provide-note"); |
|
174 } |
|
175 } |
|
176 |
|
177 #endif // PRESENCEPLUGINCOMMON_H |
|