|
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: Presence interest registration operation |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPSCOPERATIONUNSUBSCRIBEOWNPRESENCE_H |
|
19 #define CPSCOPERATIONUNSUBSCRIBEOWNPRESENCE_H |
|
20 |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <ximpbase.h> |
|
24 |
|
25 #include "ximpoperationbase.h" |
|
26 #include "ownpresencesubscriptionitem.h" |
|
27 #include "presenceoperationdefs.h" |
|
28 |
|
29 /** |
|
30 * Presence interest registration operation. |
|
31 * |
|
32 * @lib ximpoperations.lib |
|
33 * @since S60 v4.0 |
|
34 */ |
|
35 class COperationUnsubscribeOwnPresence : public CXIMPOperationBase |
|
36 { |
|
37 public: |
|
38 |
|
39 IMPORT_C COperationUnsubscribeOwnPresence(); |
|
40 |
|
41 void ConstructL( const TDesC8& aParamPck ); |
|
42 |
|
43 ~COperationUnsubscribeOwnPresence(); |
|
44 |
|
45 |
|
46 public: // from CXIMPOperationBase |
|
47 |
|
48 void ProcessL(); |
|
49 |
|
50 void RequestCompletedL(); |
|
51 |
|
52 TInt Type() const; |
|
53 |
|
54 private: // Helper methods |
|
55 |
|
56 /** |
|
57 * Synthesise event after completion |
|
58 */ |
|
59 void SynthesiseEventL(); |
|
60 |
|
61 private: // data |
|
62 |
|
63 /** |
|
64 * |
|
65 */ |
|
66 COwnPresenceSubscriptionItem::TSubscriptionStatus iSubscriptionStatus; |
|
67 |
|
68 /** |
|
69 * |
|
70 */ |
|
71 COwnPresenceSubscriptionItem* iOwnPresence; |
|
72 |
|
73 /** |
|
74 * |
|
75 */ |
|
76 CPresenceInfoFilterImp* iPifWithoutCtx; |
|
77 |
|
78 |
|
79 }; |
|
80 |
|
81 |
|
82 #endif // CPSCOPERATIONUNSUBSCRIBEOWNPRESENCE_H |