equal
deleted
inserted
replaced
22 #ifndef ConnMan_Active_Connector_H |
22 #ifndef ConnMan_Active_Connector_H |
23 #define ConnMan_Active_Connection_H |
23 #define ConnMan_Active_Connection_H |
24 |
24 |
25 #include <e32base.h> |
25 #include <e32base.h> |
26 #include <nifman.h> |
26 #include <nifman.h> |
27 #include <mconnection.h> |
27 |
28 |
28 |
29 class TCommDbConnPref; |
29 class TCommDbConnPref; |
30 class TConnSnapPref; |
30 class TConnSnapPref; |
31 |
31 |
32 const TInt KStageGoingBackwardsError = 10602; |
32 const TInt KStageGoingBackwardsError = 10602; |
64 *and must not be closed before it completes |
64 *and must not be closed before it completes |
65 *@param aSettings the overridesettings containing the connection characteristics |
65 *@param aSettings the overridesettings containing the connection characteristics |
66 *@param aStatus the status of the observer Active object |
66 *@param aStatus the status of the observer Active object |
67 */ |
67 */ |
68 void StartConnection( TConnSnapPref* aSettings, TRequestStatus& aStatus); |
68 void StartConnection( TConnSnapPref* aSettings, TRequestStatus& aStatus); |
69 void SetOccPreferences(TSetOCCPreferences aOCCPreferences); |
|
70 |
69 |
71 private://from CActive |
70 private://from CActive |
72 |
71 |
73 /** |
72 /** |
74 *This method is implemented to enable proper cancellation of the active obect |
73 *This method is implemented to enable proper cancellation of the active obect |
82 |
81 |
83 private: |
82 private: |
84 |
83 |
85 TRequestStatus* iExternalRequestStatus; |
84 TRequestStatus* iExternalRequestStatus; |
86 RConnection& iConnection; |
85 RConnection& iConnection; |
87 TBool iWait; |
|
88 TSetOCCPreferences occPrefs; |
|
89 }; |
86 }; |
90 |
87 |
91 |
88 |
92 //This is a wrapper class on top of CConnManActiveConnector enabling asynch->synch conversion |
89 //This is a wrapper class on top of CConnManActiveConnector enabling asynch->synch conversion |
93 NONSHARABLE_CLASS( CActiveConnectorSyncWrapper ): public CActive |
90 NONSHARABLE_CLASS( CActiveConnectorSyncWrapper ): public CActive |
128 *and must not be closed before it completes |
125 *and must not be closed before it completes |
129 *@param aSettings the overridesettings containing the connection characteristics |
126 *@param aSettings the overridesettings containing the connection characteristics |
130 *@return the error code |
127 *@return the error code |
131 */ |
128 */ |
132 TInt ConnectSnap( TConnSnapPref* aSettings ); |
129 TInt ConnectSnap( TConnSnapPref* aSettings ); |
|
130 |
133 public: |
131 public: |
134 |
132 |
135 /** |
133 /** |
136 *Destructor |
134 *Destructor |
137 */ |
135 */ |
138 virtual ~CActiveConnectorSyncWrapper(); |
136 virtual ~CActiveConnectorSyncWrapper(); |
139 void SetOccPreferences(TSetOCCPreferences aOCCPreferences); |
|
140 |
137 |
141 private://from CActive |
138 private://from CActive |
142 |
139 |
143 /** |
140 /** |
144 *This function will release the active scheduler loop |
141 *This function will release the active scheduler loop |