|
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: CNcdRequestPurchase declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_NCD_REQUEST_MANAGESUBSCRIPTION_HH |
|
20 #define C_NCD_REQUEST_MANAGESUBSCRIPTION_HH |
|
21 |
|
22 #include <e32std.h> |
|
23 #include <e32base.h> |
|
24 #include "ncdrequestbase.h" |
|
25 #include "ncdrequestconstants.h" |
|
26 #include "ncdprotocoltypes.h" |
|
27 |
|
28 class CNcdSubscriptionManagement : public CBase |
|
29 { |
|
30 public: |
|
31 void ConstructL(); |
|
32 ~CNcdSubscriptionManagement(); |
|
33 CNcdSubscriptionManagement(); |
|
34 const TDesC& EntityId() const; |
|
35 const TDesC& PurchaseOptionId() const; |
|
36 TNcdSubscriptionOperation Operation() const; |
|
37 public: |
|
38 HBufC* iEntityId; |
|
39 HBufC* iPurchaseOptionId; |
|
40 TNcdSubscriptionOperation iOperation; |
|
41 }; |
|
42 |
|
43 |
|
44 class CNcdRequestManageSubscriptions : public CNcdRequestBase |
|
45 { |
|
46 |
|
47 public: |
|
48 |
|
49 |
|
50 HBufC8* CreateRequestL(); |
|
51 |
|
52 |
|
53 public: |
|
54 static CNcdRequestManageSubscriptions* NewL(); |
|
55 static CNcdRequestManageSubscriptions* NewLC(); |
|
56 |
|
57 void ConstructL(); |
|
58 |
|
59 ~CNcdRequestManageSubscriptions(); |
|
60 |
|
61 |
|
62 void AddSubscriptionL( const TDesC& aEntityId, |
|
63 const TDesC& aPurchaseOptionId, |
|
64 const TNcdSubscriptionOperation aOperation ); |
|
65 |
|
66 private: |
|
67 CNcdRequestManageSubscriptions(); |
|
68 |
|
69 |
|
70 |
|
71 private: |
|
72 |
|
73 TXmlEngString iName; |
|
74 TXmlEngString iNamespaceUri; |
|
75 TXmlEngString iPrefix; |
|
76 |
|
77 RPointerArray<CNcdSubscriptionManagement> iSubscriptions; |
|
78 }; |
|
79 |
|
80 #endif //C_NCD_REQUEST_MANAGESUBSCRIPTION_HH |
|
81 |