|
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: Block presence for presentity operation |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPSCOPERATIONBLOCKPRESENCEFORPRESENTITY_H |
|
19 #define CPSCOPERATIONBLOCKPRESENCEFORPRESENTITY_H |
|
20 |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 #include <ximpbase.h> |
|
25 #include "ximpoperationbase.h" |
|
26 |
|
27 #include "presenceoperationdefs.h" |
|
28 |
|
29 class CXIMPIdentityImp; |
|
30 class CPresenceBlockInfoImp; |
|
31 |
|
32 /** |
|
33 * Grant presence to presentity operation |
|
34 * |
|
35 * @lib ximpoperations.lib |
|
36 * @since S60 v4.0 |
|
37 */ |
|
38 class COperationBlockPresenceForPresentity : public CXIMPOperationBase |
|
39 { |
|
40 |
|
41 public: |
|
42 |
|
43 IMPORT_C COperationBlockPresenceForPresentity(); |
|
44 |
|
45 void ConstructL( const TDesC8& aParamPck ); |
|
46 |
|
47 ~COperationBlockPresenceForPresentity(); |
|
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 * Identity |
|
69 * Own. |
|
70 */ |
|
71 CXIMPIdentityImp* iIdentity; |
|
72 |
|
73 /** |
|
74 * Block info |
|
75 * Own. |
|
76 */ |
|
77 CPresenceBlockInfoImp* iBlockInfo; |
|
78 |
|
79 }; |
|
80 |
|
81 |
|
82 #endif // CPSCOPERATIONBLOCKPRESENCEFORPRESENTITY_H |