|
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: Presence reactive authorization transactions. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPENGREACTAUTHTRANSACTIONIMP_H |
|
19 #define CPENGREACTAUTHTRANSACTIONIMP_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <E32Base.h> |
|
23 #include <CPEngReactAuthTransaction.h> |
|
24 #include "MPEngAsyncOperationOwner.h" |
|
25 #include "RPEngManagerClient.h" |
|
26 |
|
27 |
|
28 //FORWARD DECLARATIONS |
|
29 class CPEngReactAuthTransaction; |
|
30 class CPEngAsyncOperation; |
|
31 class CPEngNWSessionSlotID2; |
|
32 class CPEngNWSessionSlotStorageProxy; |
|
33 class MPEngAuthorizationRespond; |
|
34 |
|
35 |
|
36 /** |
|
37 * Presence reactive authorization transactions. |
|
38 * |
|
39 * @since 3.0 |
|
40 */ |
|
41 NONSHARABLE_CLASS( CPEngReactAuthTransactionImp ): public CBase, |
|
42 public MPEngAsyncOperationOwner |
|
43 |
|
44 { |
|
45 public: /* Construction */ |
|
46 |
|
47 |
|
48 /** |
|
49 * Instantiates CPEngReactAuthTransactionImp object. |
|
50 * |
|
51 * @return New CPEngReactAuthTransactionImp instance. |
|
52 */ |
|
53 static CPEngReactAuthTransactionImp* NewL( |
|
54 CPEngReactAuthTransaction& aInterface, |
|
55 TInt aPriority, |
|
56 const CPEngNWSessionSlotID2& aNWSessionSlotID ); |
|
57 |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 ~CPEngReactAuthTransactionImp(); |
|
63 |
|
64 |
|
65 |
|
66 protected: |
|
67 |
|
68 /** |
|
69 * C++ constructor. |
|
70 */ |
|
71 CPEngReactAuthTransactionImp( |
|
72 CPEngReactAuthTransaction& aInterface, |
|
73 TInt aPriority ); |
|
74 |
|
75 |
|
76 /** |
|
77 * Symbian OS constructor. |
|
78 */ |
|
79 void ConstructL( const CPEngNWSessionSlotID2& aNWSessionSlotID ); |
|
80 |
|
81 |
|
82 |
|
83 public: /* Reactive authorization implementation */ |
|
84 |
|
85 TBool IsPublishReactAuthRespondsActive() const; |
|
86 TInt PublishReactAuthResponds( MPEngAuthorizationRespond*& aResponds, |
|
87 MPEngReactAuthTransactionObserver& aObserver ); |
|
88 void CancelPublishReactAuthResponds(); |
|
89 |
|
90 |
|
91 private: //from MPEngAsyncOperationOwner |
|
92 |
|
93 |
|
94 /** |
|
95 * Notifies from async operation destruction. |
|
96 * @since 3.0 |
|
97 * @param aOperation The dying operation. |
|
98 */ |
|
99 void HandleAsyncOperationDestruction( CPEngAsyncOperation* aOperation ); |
|
100 |
|
101 |
|
102 |
|
103 |
|
104 private: //Data |
|
105 |
|
106 //REF: Implemented interface |
|
107 CPEngReactAuthTransaction& iInterface; |
|
108 |
|
109 //OWN: The priority |
|
110 TInt iCActivePriority; |
|
111 |
|
112 //OWN: |
|
113 CPEngNWSessionSlotStorageProxy* iUsedSlot; |
|
114 |
|
115 // OWN: Server |
|
116 RPEngManagerClient iTransactionServer; |
|
117 |
|
118 // OWN: |
|
119 CPEngAsyncOperation *iReactAuthRespondOp; |
|
120 |
|
121 }; |
|
122 |
|
123 #endif //CPENGREACTAUTHTRANSACTIONIMP_H |
|
124 |
|
125 // End of File |