|
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: Grant presence to presentity group members operation |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPSCOPERATIONGRANTPRESENCETOPRESENTITYGROUPMEMBERS_H |
|
19 #define CPSCOPERATIONGRANTPRESENCETOPRESENTITYGROUPMEMBERS_H |
|
20 |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 #include <ximpbase.h> |
|
25 #include "ximpoperationbase.h" |
|
26 #include "groupmemberspresenceconfigurationitem.h" |
|
27 |
|
28 #include "presenceoperationdefs.h" |
|
29 |
|
30 class CXIMPIdentityImp; |
|
31 |
|
32 /** |
|
33 * Grant presence to presentity group members operation |
|
34 * |
|
35 * @lib ximpoperations.lib |
|
36 * @since S60 v4.0 |
|
37 */ |
|
38 class COperationGrantPresenceToPresentityGroupMembers : public CXIMPOperationBase |
|
39 { |
|
40 |
|
41 public: |
|
42 |
|
43 IMPORT_C COperationGrantPresenceToPresentityGroupMembers(); |
|
44 |
|
45 void ConstructL( const TDesC8& aParamPck ); |
|
46 |
|
47 ~COperationGrantPresenceToPresentityGroupMembers(); |
|
48 |
|
49 |
|
50 public: // from CXIMPOperationBase |
|
51 |
|
52 void ProcessL(); |
|
53 |
|
54 void RequestCompletedL(); |
|
55 |
|
56 TInt Type() const; |
|
57 |
|
58 private: // Helper methods |
|
59 |
|
60 /** |
|
61 * Synthesise event after completion |
|
62 */ |
|
63 void SynthesiseEventL(); |
|
64 |
|
65 private: // data |
|
66 |
|
67 /** |
|
68 * Presence information filter |
|
69 */ |
|
70 CPresenceInfoFilterImp* iPif; |
|
71 |
|
72 /** |
|
73 * Identity |
|
74 */ |
|
75 CXIMPIdentityImp* iGroupId; |
|
76 |
|
77 /** |
|
78 * Subscription item |
|
79 */ |
|
80 CGroupMembersPresenceConfigurationItem* iConfItem; |
|
81 |
|
82 /** |
|
83 * Presence info filter having new presence info filter for context. |
|
84 * Own. |
|
85 */ |
|
86 CPresenceInfoFilterImp* iMergedPif; |
|
87 |
|
88 /** |
|
89 * Subscription status |
|
90 */ |
|
91 CGroupMembersPresenceConfigurationItem::TConfigurationStatus iConfigurationStatus; |
|
92 |
|
93 /** |
|
94 * Don't force event. |
|
95 */ |
|
96 TBool iDoNotForce; |
|
97 |
|
98 }; |
|
99 |
|
100 |
|
101 #endif // CPSCOPERATIONGRANTPRESENCETOPRESENTITYGROUPMEMBERS_H |