equal
deleted
inserted
replaced
|
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: Definition of MNcdSubscriptionOperation interface |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef M_NCDSUBSCRIPTIONOPERATION_H |
|
20 #define M_NCDSUBSCRIPTIONOPERATION_H |
|
21 |
|
22 #include <e32cmn.h> |
|
23 |
|
24 #include "ncdoperation.h" |
|
25 |
|
26 class MNcdSubscriptionOperationObserver; |
|
27 |
|
28 /** |
|
29 * Subscription operation interface |
|
30 */ |
|
31 class MNcdSubscriptionOperation : public MNcdOperation |
|
32 { |
|
33 |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Unique identifier for the interface, required for all MCatalogsBase interfaces. |
|
38 * |
|
39 * |
|
40 */ |
|
41 enum { KInterfaceUid = ENcdSubscriptionOperationUid }; |
|
42 |
|
43 /** |
|
44 * Subscription operation type. |
|
45 * |
|
46 * |
|
47 */ |
|
48 enum TType |
|
49 { |
|
50 |
|
51 /** Stop an active subscription */ |
|
52 EUnsubscribe, |
|
53 |
|
54 /** Refresh subscriptions from service providers */ |
|
55 ERefreshSubscriptions |
|
56 |
|
57 }; |
|
58 |
|
59 |
|
60 /** |
|
61 * Return the operation type. |
|
62 * |
|
63 * |
|
64 * @return Type of the operation. |
|
65 */ |
|
66 virtual TType SubscriptionOperationType() const = 0; |
|
67 |
|
68 protected: |
|
69 |
|
70 /** |
|
71 * Destructor. |
|
72 * |
|
73 * @see MCatalogsBase::~MCatalogsBase |
|
74 */ |
|
75 virtual ~MNcdSubscriptionOperation() {} |
|
76 |
|
77 }; |
|
78 |
|
79 |
|
80 #endif // M_NCDSUBSCRIPTIONOPERATION_H |