browserutilities/connectionmanager/Inc/ConnManActiveConnector.h
branchRCL_3
changeset 64 ac77f89b1d9e
parent 38 6297cdf66332
child 93 79859ed3eea9
equal deleted inserted replaced
62:c711bdda59f4 64:ac77f89b1d9e
    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
    82 private:
    83 private:
    83 
    84 
    84 	TRequestStatus* iExternalRequestStatus;
    85 	TRequestStatus* iExternalRequestStatus;
    85     RConnection& iConnection;
    86     RConnection& iConnection;
    86     TBool iWait;
    87     TBool iWait;
       
    88     TSetOCCPreferences occPrefs;
    87 	};
    89 	};
    88 
    90 
    89 
    91 
    90 //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
    91 NONSHARABLE_CLASS(  CActiveConnectorSyncWrapper ): public CActive
    93 NONSHARABLE_CLASS(  CActiveConnectorSyncWrapper ): public CActive
   126 	*and must not be closed before it completes
   128 	*and must not be closed before it completes
   127 	*@param aSettings the overridesettings containing the connection characteristics
   129 	*@param aSettings the overridesettings containing the connection characteristics
   128 	*@return the error code
   130 	*@return the error code
   129 	*/    
   131 	*/    
   130     TInt ConnectSnap( TConnSnapPref* aSettings );
   132     TInt ConnectSnap( TConnSnapPref* aSettings );
   131 
       
   132 public:
   133 public:
   133 	
   134 	
   134     /**
   135     /**
   135 	*Destructor
   136 	*Destructor
   136 	*/
   137 	*/
   137 	virtual ~CActiveConnectorSyncWrapper();
   138 	virtual ~CActiveConnectorSyncWrapper();
       
   139 	void SetOccPreferences(TSetOCCPreferences aOCCPreferences);
   138 
   140 
   139 private://from CActive
   141 private://from CActive
   140 
   142 
   141     /**
   143     /**
   142 	*This function will release the active scheduler loop
   144 	*This function will release the active scheduler loop