|
1 /* |
|
2 * Copyright (c) 2005 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: Operation handler for performing respond publish. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPENGREACTAUTHPUBLISHOP_H |
|
19 #define CPENGREACTAUTHPUBLISHOP_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <E32Base.h> |
|
23 #include <badesca.h> |
|
24 #include "CPEngAsyncOperation.h" |
|
25 |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class MPEngReactAuthTransactionObserver; |
|
29 class MPEngAdvTransactionStatus2; |
|
30 class CPEngReactAuthTransaction; |
|
31 class MPEngAuthorizationManager; |
|
32 class MPEngAuthorizationRespond; |
|
33 |
|
34 |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * Operation handler for performing reactive |
|
40 * authorization respond publish. |
|
41 * |
|
42 * @lib |
|
43 * @since 3.0 |
|
44 */ |
|
45 NONSHARABLE_CLASS( CPEngReactAuthPublishOp ) : public CPEngAsyncOperation |
|
46 { |
|
47 public: // Constructors and destructor |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. |
|
51 */ |
|
52 static CPEngReactAuthPublishOp* NewL( TInt aPriority, |
|
53 CPEngReactAuthTransaction& aInterface, |
|
54 CPEngNWSessionSlotStorageProxy& aUsedSlot, |
|
55 MPEngReactAuthTransactionObserver& aObserver, |
|
56 RPEngManagerClient& aServer, |
|
57 MPEngAuthorizationRespond* aResponds ); |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 virtual ~CPEngReactAuthPublishOp(); |
|
63 |
|
64 private: |
|
65 |
|
66 /** |
|
67 * C++ default constructor. |
|
68 */ |
|
69 CPEngReactAuthPublishOp( TInt aPriority, |
|
70 CPEngReactAuthTransaction& aInterface, |
|
71 MPEngReactAuthTransactionObserver& aObserver, |
|
72 RPEngManagerClient& aServer ); |
|
73 |
|
74 /** |
|
75 * Symbian OS constructor. |
|
76 */ |
|
77 void ConstructL( CPEngNWSessionSlotStorageProxy& aUsedSlot, |
|
78 MPEngAuthorizationRespond* aResponds ); |
|
79 |
|
80 |
|
81 public: //New services |
|
82 |
|
83 |
|
84 /** |
|
85 * |
|
86 * |
|
87 * |
|
88 * |
|
89 * @since 3.0 |
|
90 */ |
|
91 void PublishResponds(); |
|
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 private: //Helpers |
|
111 |
|
112 void CleanResponds(); |
|
113 |
|
114 |
|
115 private: |
|
116 |
|
117 //REF: The implemented interface |
|
118 CPEngReactAuthTransaction& iInterface; |
|
119 |
|
120 //REF: The observer |
|
121 MPEngReactAuthTransactionObserver& iObserver; |
|
122 |
|
123 //OWN: |
|
124 MPEngAuthorizationManager* iAuthManager; |
|
125 |
|
126 //OWN: |
|
127 MPEngAuthorizationRespond* iResponds; |
|
128 |
|
129 //OWN: |
|
130 TBool iRespondsOwned; |
|
131 }; |
|
132 |
|
133 #endif //CPENGREACTAUTHPUBLISHOP_H |
|
134 |
|
135 |
|
136 |