|
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 __CPresenceNotificationHandler_H__ |
|
20 #define __CPresenceNotificationHandler_H__ |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <ximpbase.h> |
|
26 #include "impsdebugprint.h" |
|
27 |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class MImpsPrtPluginConnectionManager; |
|
31 class MPEngXMLParser; |
|
32 class MPEngXmlSerializer; |
|
33 |
|
34 /** |
|
35 * CPresenceNotificationHandler |
|
36 * |
|
37 * Issue Subscribe Presentity Group List Request to Network Server |
|
38 * |
|
39 * @lib ?library |
|
40 * @since S60 v4.0 |
|
41 */ |
|
42 |
|
43 class CPresenceNotificationHandler: public CActive |
|
44 |
|
45 |
|
46 { |
|
47 |
|
48 public: |
|
49 |
|
50 static CPresenceNotificationHandler* NewL( |
|
51 MImpsPrtPluginConnectionManager& aConnMan |
|
52 ); |
|
53 |
|
54 static CPresenceNotificationHandler* NewLC( |
|
55 MImpsPrtPluginConnectionManager& aConnMan |
|
56 ); |
|
57 |
|
58 virtual ~CPresenceNotificationHandler(); |
|
59 |
|
60 private: |
|
61 |
|
62 CPresenceNotificationHandler( MImpsPrtPluginConnectionManager& aConnMan ); |
|
63 void ConstructL(); |
|
64 |
|
65 private: // from CActive |
|
66 |
|
67 void DoCancel(); |
|
68 void RunL(); |
|
69 TInt RunError( TInt aError ); |
|
70 |
|
71 public: |
|
72 |
|
73 void StartListeningL(); |
|
74 |
|
75 void HandleIncomingDataL(); |
|
76 |
|
77 void ProcessIncomingDataL(); |
|
78 |
|
79 private: // data |
|
80 |
|
81 /** |
|
82 * Send data request to pure data handler generates the id |
|
83 */ |
|
84 TInt iSendId; |
|
85 HBufC8* iResponse; |
|
86 HBufC16* iListId; |
|
87 |
|
88 |
|
89 /** |
|
90 * ?description_of_pointer_member |
|
91 * Own. *** Write "Own" if this class owns the object pointed to; in |
|
92 other words, if this class is responsible for deleting it. |
|
93 */ |
|
94 |
|
95 MPEngXMLParser* iParser; |
|
96 |
|
97 /** |
|
98 * Imps Protocol Plugin Connection Manager |
|
99 * Not own. *** Write "Not own" if some other class owns this object. |
|
100 */ |
|
101 MImpsPrtPluginConnectionManager& iConnMan; |
|
102 |
|
103 }; |
|
104 |
|
105 |
|
106 #endif // __CPresenceNotificationHandler_H__ |
|
107 |