|
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 __CIMPSPLUGINREQUESTBASE_H__ |
|
20 #define __CIMPSPLUGINREQUESTBASE_H__ |
|
21 |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <ximpbase.h> |
|
25 |
|
26 #include "impsdebugprint.h" |
|
27 |
|
28 |
|
29 class MImpsPrtPluginConnectionManager; |
|
30 |
|
31 |
|
32 /** |
|
33 * ?one_line_short_description |
|
34 * |
|
35 * ?more_complete_description |
|
36 * |
|
37 * @lib ?library |
|
38 * @since S60 v4.0 |
|
39 */ |
|
40 |
|
41 class CImpsPluginRequestBase: public CActive |
|
42 |
|
43 |
|
44 { |
|
45 |
|
46 public: |
|
47 |
|
48 static CImpsPluginRequestBase* NewL( MImpsPrtPluginConnectionManager& aConnMan, |
|
49 TXIMPRequestId aRequestId ); |
|
50 virtual ~CImpsPluginRequestBase(); |
|
51 |
|
52 |
|
53 private: |
|
54 |
|
55 CImpsPluginRequestBase( MImpsPrtPluginConnectionManager& aConnMan, |
|
56 TXIMPRequestId aRequestId ); |
|
57 void ConstructL(); |
|
58 |
|
59 |
|
60 private: // from CActive |
|
61 |
|
62 void DoCancel(); |
|
63 void RunL(); |
|
64 TInt RunError( TInt aError ); |
|
65 |
|
66 public: |
|
67 |
|
68 virtual void ManufactureXMLMessageL() = 0; |
|
69 virtual void ParseXMLMessageL() = 0; |
|
70 |
|
71 |
|
72 private: // data |
|
73 |
|
74 /** |
|
75 * ?description_of_member |
|
76 */ |
|
77 |
|
78 TXIMPRequestId iRequestId; |
|
79 |
|
80 /** |
|
81 * ?description_of_pointer_member |
|
82 * Own. *** Write "Own" if this class owns the object pointed to; in |
|
83 other words, if this class is responsible for deleting it. |
|
84 */ |
|
85 |
|
86 |
|
87 /** |
|
88 * ?description_of_pointer_member |
|
89 * Not own. *** Write "Not own" if some other class owns this object. |
|
90 */ |
|
91 MImpsPrtPluginConnectionManager& iConnMan; |
|
92 }; |
|
93 |
|
94 |
|
95 #endif // __CIMPSPLUGINREQUESTBASE_H__ |
|
96 |