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 |
27 #include <mconnection.h> |
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); |
69 |
70 |
70 private://from CActive |
71 private://from CActive |
71 |
72 |
72 /** |
73 /** |
73 *This method is implemented to enable proper cancellation of the active obect |
74 *This method is implemented to enable proper cancellation of the active obect |
81 |
82 |
82 private: |
83 private: |
83 |
84 |
84 TRequestStatus* iExternalRequestStatus; |
85 TRequestStatus* iExternalRequestStatus; |
85 RConnection& iConnection; |
86 RConnection& iConnection; |
|
87 TBool iWait; |
|
88 TSetOCCPreferences occPrefs; |
86 }; |
89 }; |
87 |
90 |
88 |
91 |
89 //This is a wrapper class on top of CConnManActiveConnector enabling asynch->synch conversion |
92 //This is a wrapper class on top of CConnManActiveConnector enabling asynch->synch conversion |
90 NONSHARABLE_CLASS( CActiveConnectorSyncWrapper ): public CActive |
93 NONSHARABLE_CLASS( CActiveConnectorSyncWrapper ): public CActive |
125 *and must not be closed before it completes |
128 *and must not be closed before it completes |
126 *@param aSettings the overridesettings containing the connection characteristics |
129 *@param aSettings the overridesettings containing the connection characteristics |
127 *@return the error code |
130 *@return the error code |
128 */ |
131 */ |
129 TInt ConnectSnap( TConnSnapPref* aSettings ); |
132 TInt ConnectSnap( TConnSnapPref* aSettings ); |
130 |
|
131 public: |
133 public: |
132 |
134 |
133 /** |
135 /** |
134 *Destructor |
136 *Destructor |
135 */ |
137 */ |
136 virtual ~CActiveConnectorSyncWrapper(); |
138 virtual ~CActiveConnectorSyncWrapper(); |
|
139 void SetOccPreferences(TSetOCCPreferences aOCCPreferences); |
137 |
140 |
138 private://from CActive |
141 private://from CActive |
139 |
142 |
140 /** |
143 /** |
141 *This function will release the active scheduler loop |
144 *This function will release the active scheduler loop |