|
1 /* |
|
2 * Copyright (c) 2004 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: this class is an operation handler for performing attribute |
|
15 * list publish operation. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef CPENGATTRLSTPUBLISHSYNCOP_H |
|
20 #define CPENGATTRLSTPUBLISHSYNCOP_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <E32Base.h> |
|
24 #include <badesca.h> |
|
25 #include "CPEngAsyncOperation.h" |
|
26 |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class MPEngAttributeListTransactionObserver2; |
|
30 class MPEngAdvTransactionStatus2; |
|
31 class CPEngAttributeListTransaction2; |
|
32 |
|
33 |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 |
|
38 /** |
|
39 * Operation handler for performing attribute |
|
40 * list publish operation. |
|
41 * |
|
42 * @lib |
|
43 * @since 3.0 |
|
44 */ |
|
45 NONSHARABLE_CLASS( CPEngAttrLstPublishSyncOp ) : public CPEngAsyncOperation |
|
46 { |
|
47 public: // Constructors and destructor |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. |
|
51 */ |
|
52 static CPEngAttrLstPublishSyncOp* NewL( |
|
53 TInt aPriority, |
|
54 CPEngAttributeListTransaction2& aInterface, |
|
55 CPEngNWSessionSlotStorageProxy& aUsedSlot, |
|
56 MPEngAttributeListTransactionObserver2& aObserver, |
|
57 RPEngManagerClient& aServer ); |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 virtual ~CPEngAttrLstPublishSyncOp(); |
|
63 |
|
64 private: |
|
65 |
|
66 /** |
|
67 * C++ default constructor. |
|
68 */ |
|
69 CPEngAttrLstPublishSyncOp( |
|
70 TInt aPriority, |
|
71 CPEngAttributeListTransaction2& aInterface, |
|
72 MPEngAttributeListTransactionObserver2& aObserver, |
|
73 RPEngManagerClient& aServer ); |
|
74 |
|
75 /** |
|
76 * Symbian OS constructor. |
|
77 */ |
|
78 void ConstructL( CPEngNWSessionSlotStorageProxy& aUsedSlot ); |
|
79 |
|
80 |
|
81 public: //New services |
|
82 |
|
83 |
|
84 /** |
|
85 * |
|
86 * |
|
87 * |
|
88 * |
|
89 * @since 3.0 |
|
90 */ |
|
91 void Publish(); |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 private: //Template method from base |
|
97 |
|
98 /** |
|
99 * Notifies from operation complete. |
|
100 */ |
|
101 void DoHandleOpSuccessL( MPEngAdvTransactionStatus2& aStatus, |
|
102 TInt aTransactionOperation ); |
|
103 |
|
104 void DoHandleOpFailure( MPEngAdvTransactionStatus2& aStatus, |
|
105 TInt aTransactionOperation ); |
|
106 |
|
107 TPEngAsyncOpResult DoNotifyObserver( MPEngAdvTransactionStatus2& aStatus, |
|
108 TInt aTransactionOperation ); |
|
109 |
|
110 |
|
111 |
|
112 |
|
113 private: |
|
114 |
|
115 //REF: The implemented interface |
|
116 CPEngAttributeListTransaction2& iInterface; |
|
117 |
|
118 //REF: The observer |
|
119 MPEngAttributeListTransactionObserver2& iObserver; |
|
120 |
|
121 }; |
|
122 |
|
123 #endif //CPENGATTRLSTPUBLISHSYNCOP_H |
|
124 |
|
125 |
|
126 |