webservices/wscore/inc/senmobilityobserver.h
changeset 23 a1df79fa35b4
parent 15 0aea830faa24
equal deleted inserted replaced
16:abb636afedf7 23:a1df79fa35b4
    20 
    20 
    21 #ifndef M_SEN_MOBILITY_OBSERVER_H
    21 #ifndef M_SEN_MOBILITY_OBSERVER_H
    22 #define M_SEN_MOBILITY_OBSERVER_H
    22 #define M_SEN_MOBILITY_OBSERVER_H
    23 
    23 
    24 //  INCLUDES
    24 //  INCLUDES
    25 #include <flogger.h>
       
    26 #include <e32std.h>
    25 #include <e32std.h>
    27 #include <in_sock.h>
    26 #include <in_sock.h>
    28 #include <es_enum.h>
    27 #include <es_enum.h>
    29 #include <CommDbConnPref.h>
       
    30 #include <comms-infras/cs_mobility_apiext.h>
    28 #include <comms-infras/cs_mobility_apiext.h>
    31 #include <connpref.h>
       
    32 #include "SenXmlReader.h"
    29 #include "SenXmlReader.h"
    33 #include "MSenTransport.h"
    30 #include "MSenTransport.h"
    34 #include "SenWSDescription.h"
    31 #include "SenWSDescription.h"
    35 
    32 
    36 class CALRObserver  : public CActive, public MMobilityProtocolResp
    33 class CALRObserver  : public CActive, public MMobilityProtocolResp
    74 
    71 
    75 	//functions for Client session usage
    72 	//functions for Client session usage
    76 	TUint32 GetActiveIap() ;
    73 	TUint32 GetActiveIap() ;
    77 	HBufC8* GetNewIapAsTransportPropertyL() ;
    74 	HBufC8* GetNewIapAsTransportPropertyL() ;
    78 	TUint32 GetActiveSnap() ;
    75 	TUint32 GetActiveSnap() ;
    79 	void SetDialogPref(TBool aDialogPref) ;
       
    80 	TInt OpenConnectionL(TDesC8& aAppTransportProperties,
    76 	TInt OpenConnectionL(TDesC8& aAppTransportProperties,
    81 							 MSenTransport &aTransport,
    77 							 MSenTransport &aTransport,
    82 							 CSenWSDescription& aInitializer,
    78 							 CSenWSDescription& aInitializer,
    83 							 HBufC8*& aNewTransportProperties) ;
    79 							 HBufC8*& aNewTransportProperties) ;
    84 
    80 
    90 	*/
    86 	*/
    91 	CALRObserver(MMobilityProtocolResp &aMobilityObserver, CSenXmlReader &aReader)  ;
    87 	CALRObserver(MMobilityProtocolResp &aMobilityObserver, CSenXmlReader &aReader)  ;
    92 	TInt StartConnection(TUint32& aId, TBool aIsSnapId) ;
    88 	TInt StartConnection(TUint32& aId, TBool aIsSnapId) ;
    93 	TInt OpenSocketSever() ;
    89 	TInt OpenSocketSever() ;
    94 	void RefreshAvailabilityL() ;
    90 	void RefreshAvailabilityL() ;
       
    91 	TInt SetID(TUint32 aId, TBool aDialogPref, RConnection& aConnection, RSocketServ& aSocketServer, TBool aSNAP);
       
    92 	TBool IsOCCImplementedSDK();
       
    93 	TInt GetS60PlatformVersion(TUint& aMajor, TUint& aMinor);
    95 
    94 
    96 	/**
    95 	/**
    97 	* By default Symbian OS constructor is private.
    96 	* By default Symbian OS constructor is private.
    98 	*/
    97 	*/
    99 	void ConstructL();
    98 	void ConstructL();
   102 	MMobilityProtocolResp &iMobilityObserver ;
   101 	MMobilityProtocolResp &iMobilityObserver ;
   103 	CActiveCommsMobilityApiExt*   iMobility;
   102 	CActiveCommsMobilityApiExt*   iMobility;
   104 	TUint32 iIapId;
   103 	TUint32 iIapId;
   105 	TUint32 iNewIapId;
   104 	TUint32 iNewIapId;
   106 	TUint32 iSnapId;
   105 	TUint32 iSnapId;
   107 	TCommDbConnPref iPrefs;      
   106 	CSenXmlReader &iReader ;
   108 	TConnSnapPref iSNAPPrefs;      
   107 	TBool iOCCenabled;
   109 	 CSenXmlReader &iReader ;
   108 	private:    // Data	      
   110 	private:    // Data
       
   111 	};
   109 	};
   112     
   110     
   113 #endif /*M_SEN_MOBILITY_OBSERVER_H    */
   111 #endif /*M_SEN_MOBILITY_OBSERVER_H    */