|
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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef M_NCD_PURCHASE_OPERATION_H |
|
20 #define M_NCD_PURCHASE_OPERATION_H |
|
21 |
|
22 #include <e32cmn.h> |
|
23 |
|
24 #include "ncdoperation.h" |
|
25 #include "ncdinterfaceids.h" |
|
26 |
|
27 class MNcdPurchaseOperationObserver; |
|
28 class MNcdPurchaseOption; |
|
29 |
|
30 /** |
|
31 * Purchase operation interface. |
|
32 * |
|
33 * Purchase operation handles the purchasing of one purchasable node. |
|
34 * |
|
35 * Purchase operations will query the user for information needed to |
|
36 * complete the purchase. For example payment method, credit card number, |
|
37 * -owner, etc will be be queried during a credit card purchase. |
|
38 * |
|
39 * |
|
40 * @see MNcdNodePurchase |
|
41 * @see MNcdPurchaseOperationObserver |
|
42 */ |
|
43 class MNcdPurchaseOperation : public MNcdOperation |
|
44 { |
|
45 |
|
46 public: |
|
47 |
|
48 /** |
|
49 * Unique identifier for the interface, required for all MCatalogsBase interfaces. |
|
50 * |
|
51 * |
|
52 */ |
|
53 enum { KInterfaceUid = ENcdPurchaseOperationUid }; |
|
54 |
|
55 |
|
56 /** |
|
57 * Gets the purchase option selected for this operation. |
|
58 * |
|
59 * |
|
60 * @return Selected purchase option. Uncounted reference. |
|
61 */ |
|
62 virtual const MNcdPurchaseOption& PurchaseOption() = 0; |
|
63 |
|
64 |
|
65 protected: |
|
66 |
|
67 /** |
|
68 * Destructor. |
|
69 * |
|
70 * @see MCatalogsBase::~MCatalogsBase |
|
71 */ |
|
72 virtual ~MNcdPurchaseOperation() {} |
|
73 |
|
74 }; |
|
75 |
|
76 |
|
77 #endif // M_NCD_PURCHASE_OPERATION_H |