|
1 /* |
|
2 * Copyright (c) 2007 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: XIMP framework presence operation definitions. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef PRESENCEOPERATIONDEFS_H |
|
19 #define PRESENCEOPERATIONDEFS_H |
|
20 |
|
21 #include <e32std.h> |
|
22 |
|
23 // TODO: use ranges for operations types, that will make sure that |
|
24 // the core, presence and IM operations won't overlap |
|
25 |
|
26 /** |
|
27 * PSC operations. |
|
28 */ |
|
29 namespace NPresenceOps |
|
30 { |
|
31 enum TPresenceOpTypes |
|
32 { |
|
33 // ----------------------------------------------- |
|
34 // From client |
|
35 // |
|
36 EPrPublishOwnPresence = 10, // 10 |
|
37 EPrSubscribeOwnPresence, // 11 |
|
38 EPrUnsubscribeOwnPresence, // 12 |
|
39 |
|
40 EPrSubscribeGroupList, // 13 |
|
41 EPrUnsubscribeGroupList, // 14 |
|
42 |
|
43 EPrCreatePresentityGroup, // 15 |
|
44 |
|
45 EPrSubscribePresentityPresence, // 16 |
|
46 EPrUnsubscribePresentityPresence, // 17 |
|
47 |
|
48 EPrDeletePresentityGroup, // 18 |
|
49 EPrUpdatePresentityGroupDisplayName, // 19 |
|
50 |
|
51 EPrSubscribePresentityGroupContent, // 20 |
|
52 EPrUnsubscribePresentityGroupContent, // 21 |
|
53 |
|
54 EPrAddPresentityGroupMember, // 22 |
|
55 EPrRemovePresentityGroupMember, // 23 |
|
56 EPrUpdatePresentityGroupMemberDisplayName, // 24 |
|
57 EPrSynthesisePresenceSubscription, // 25 |
|
58 EPrSubscribeGroupContent, // 26 |
|
59 EPrUnsubscribeGroupContent, // 27 |
|
60 |
|
61 EPrPresentityGroupChange, // 28 |
|
62 EPrPresentityGroupContentChange, // 29 |
|
63 |
|
64 EPrSubscribePresenceWatcherList, // 30 |
|
65 EPrUnsubscribePresenceWatcherList, // 31 |
|
66 |
|
67 EPrSubscribePresentityGroupMembersPresence, // 32 |
|
68 EPrUnsubscribePresentityGroupMembersPresence, // 33 |
|
69 |
|
70 EPrSubscribePresenceGrantRequestList, // 34 |
|
71 EPrUnsubscribePresenceGrantRequestList, // 35 |
|
72 |
|
73 EPrGrantPresenceToPresentity, // 36 |
|
74 EPrWithdrawPresenceFromPresentity, // 37 |
|
75 EPrGrantPresenceToPresentityGroupMembers, // 38 |
|
76 EPrWithdrawPresenceFromPresentityGroupMembers, // 39 |
|
77 EPrGrantPresenceToEveryone, // 40 |
|
78 EPrWithdrawPresenceFromEveryone, // 41 |
|
79 |
|
80 EPrSubscribeBlockList, // 42 |
|
81 EPrUnsubscribeBlockList, // 43 |
|
82 EPrBlockPresenceForPresentity, // 44 |
|
83 EPrCancelPresenceBlockFromPresentity, // 45 |
|
84 |
|
85 // ----------------------------------------------- |
|
86 // From adaptation |
|
87 // |
|
88 EPrHandleOwnPresence = 50, // 50 |
|
89 EPrSetOwnPresenceDataSubscriptionState, // 51 |
|
90 EPrHandlePresentityPresence, // 52 |
|
91 EPrSetPresentityPresenceDataSubscriptionState, // 53 |
|
92 EPrHandlePresentityPresenceTerminated, // 54 |
|
93 EPrHandlePresenceWatcherList, // 55 |
|
94 EPrSetPresenceWatcherListDataSubscriptionState, // 56 |
|
95 |
|
96 // Following map internally to the same operation |
|
97 EPrHandlePresenceGrantRequestList, // 57 |
|
98 EPrHandlePresenceGrantRequestReceived, // 58 |
|
99 EPrHandlePresenceGrantRequestObsoleted, // 59 |
|
100 EPrSetPresenceGrantRequestDataSubscriptionState, // 60 |
|
101 |
|
102 // these map internally to the same operation |
|
103 EPrHandlePresenceBlockList, // 61 |
|
104 EPrHandlePresenceBlocked, // 62 |
|
105 EPrHandlePresenceBlockCanceled, // 63 |
|
106 EPrSetPresenceBlockDataSubscriptionState, // 64 |
|
107 |
|
108 // these map internally to the same operation |
|
109 EPrHandlePresentityGroupList = 70, // 70 - new list |
|
110 EPrHandlePresentityGroupCreated, // 71 - created/updated groups |
|
111 EPrHandlePresentityGroupDeleted, // 72 - deleted groups |
|
112 EPrHandlePresentityGroupDisplayNameUpdated, // 73 - display name updated |
|
113 EPrSetPresentityGroupListDataSubscriptionState,// 74 |
|
114 |
|
115 EPrHandlePresentityGroupContent = 80, // 80 |
|
116 EPrHandlePresentityGroupMemberAdded, // 81 |
|
117 EPrHandlePresentityGroupMemberRemoved, // 82 |
|
118 EPrHandlePresentityGroupMemberDisplayNameUpdated, // 83 |
|
119 EPrSetPresentityGroupContentDataSubscriptionState, // 84 |
|
120 |
|
121 EXIMPCleaner = 90, // 90 - Internal operation for cleaning. |
|
122 |
|
123 }; |
|
124 } |
|
125 |
|
126 #endif //PRESENCEOPERATIONDEFS_H |
|
127 |
|
128 |
|
129 |
|
130 |
|
131 |