|
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: Set subscription data |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPSCOPERATIONSETSUBSCRIPTIONDATA_H |
|
19 #define CPSCOPERATIONSETSUBSCRIPTIONDATA_H |
|
20 |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <ximpbase.h> |
|
24 |
|
25 #include "ximpoperationbase.h" |
|
26 #include "presenceoperationdefs.h" |
|
27 |
|
28 class CXIMPIdentityImp; |
|
29 |
|
30 class CXIMPDataSubscriptionStateImp; |
|
31 |
|
32 /** |
|
33 * Set subscription data for items |
|
34 * |
|
35 * @lib ximpoperations.lib |
|
36 * @since S60 v4.0 |
|
37 */ |
|
38 class COperationSetSubscriptionData : public CXIMPOperationBase |
|
39 { |
|
40 public: // Definitions |
|
41 |
|
42 public: |
|
43 |
|
44 IMPORT_C COperationSetSubscriptionData( NPresenceOps::TPresenceOpTypes aType ); |
|
45 |
|
46 void ConstructL( const TDesC8& aParamPck ); |
|
47 |
|
48 ~COperationSetSubscriptionData(); |
|
49 |
|
50 public: // from CXIMPOperationBase |
|
51 |
|
52 void ProcessL(); |
|
53 |
|
54 void RequestCompletedL(); |
|
55 |
|
56 TInt Type() const; |
|
57 |
|
58 private: // data |
|
59 |
|
60 /** |
|
61 * Identity for presentity presence synthetization. |
|
62 */ |
|
63 CXIMPIdentityImp* iIdentity; |
|
64 |
|
65 /** |
|
66 * Type of operation |
|
67 */ |
|
68 NPresenceOps::TPresenceOpTypes iType; |
|
69 |
|
70 /** |
|
71 * New subscription state |
|
72 */ |
|
73 CXIMPDataSubscriptionStateImp* iSubscriptionState; |
|
74 |
|
75 /** |
|
76 * Status reason for change. |
|
77 */ |
|
78 CXIMPStatusImp* iStatus; |
|
79 |
|
80 }; |
|
81 |
|
82 |
|
83 #endif // CPSCOPERATIONSETSUBSCRIPTIONDATA_H |