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: IMPS Protocol implementation for Presence Framework |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __COSSSPROTOCOLPRESENCEPUBLISHING_H__ |
|
20 #define __COSSSPROTOCOLPRESENCEPUBLISHING_H__ |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <ximpcontext.h> |
|
25 #include <protocolpresencepublishing.h> |
|
26 #include <ximpprotocolconnection.h> |
|
27 #include <ximpbase.h> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class MXIMPServiceInfo; |
|
31 class MOSSProtocolConnectionManager; |
|
32 class CPresenceNotificationHandler; |
|
33 class MProtocolPresencePublishing; |
|
34 |
|
35 /** |
|
36 * COssProtocolPresencePublishing |
|
37 * |
|
38 * Oss Protocol presence publishing Request Handling |
|
39 * |
|
40 */ |
|
41 class COssProtocolPresencePublishing: |
|
42 public CBase, |
|
43 public MProtocolPresencePublishing |
|
44 { |
|
45 |
|
46 public: |
|
47 |
|
48 static COssProtocolPresencePublishing* NewL(MOSSProtocolConnectionManager& aConnManager); |
|
49 |
|
50 |
|
51 ~COssProtocolPresencePublishing(); |
|
52 |
|
53 |
|
54 private: |
|
55 |
|
56 COssProtocolPresencePublishing(MOSSProtocolConnectionManager& aConnManager); |
|
57 |
|
58 |
|
59 void ConstructL(); |
|
60 |
|
61 public: //from MXIMPBase |
|
62 /** |
|
63 * @see MXIMPBase |
|
64 */ |
|
65 TAny* GetInterface( TInt32 aInterfaceId, |
|
66 TIfGetOps aOptions ); |
|
67 /** |
|
68 * @see MXIMPBase |
|
69 */ |
|
70 const TAny* GetInterface( TInt32 aInterfaceId, |
|
71 TIfGetOps aOptions ) const; |
|
72 |
|
73 /** |
|
74 * @see MXIMPBase |
|
75 */ |
|
76 TInt32 GetInterfaceId() const; |
|
77 |
|
78 public: // From MProtocolPresencePublishing |
|
79 |
|
80 /** |
|
81 * @see MProtocolPresencePublishing |
|
82 */ |
|
83 void DoPublishOwnPresenceL( const MPresenceInfo& aPresence, |
|
84 TXIMPRequestId aReqId ); |
|
85 /** |
|
86 * @see MProtocolPresencePublishing |
|
87 */ |
|
88 void DoSubscribeOwnPresenceL( const MPresenceInfoFilter& aPif, |
|
89 TXIMPRequestId aReqId ); |
|
90 /** |
|
91 * @see MProtocolPresencePublishing |
|
92 */ |
|
93 void DoUpdateOwnPresenceSubscriptionPifL( const MPresenceInfoFilter& aPif, |
|
94 TXIMPRequestId aReqId ); |
|
95 /** |
|
96 * @see MProtocolPresencePublishing |
|
97 */ |
|
98 void DoUnsubscribeOwnPresenceL( TXIMPRequestId aReqId ); |
|
99 |
|
100 /** |
|
101 * @see MProtocolPresencePublishing |
|
102 */ |
|
103 void DoSubscribePresenceWatcherListL( TXIMPRequestId aReqId ); |
|
104 |
|
105 /** |
|
106 * @see MProtocolPresencePublishing |
|
107 */ |
|
108 void DoUnsubscribePresenceWatcherListL( TXIMPRequestId aReqId ); |
|
109 |
|
110 |
|
111 private: |
|
112 |
|
113 /** |
|
114 * Request Id from PrFw |
|
115 */ |
|
116 TXIMPRequestId iRequestId; |
|
117 |
|
118 /** |
|
119 * Oss Protocol Plugin Connection Manager |
|
120 * Not own. |
|
121 *** Write "Not own" if some other class owns this object. |
|
122 */ |
|
123 MOSSProtocolConnectionManager& iConnMan; |
|
124 |
|
125 CPresenceNotificationHandler* iNotificationHandler; |
|
126 |
|
127 }; |
|
128 |
|
129 #endif // __COSSSPROTOCOLPRESENCEPUBLISHING_H__ |
|