platform/shared/rubyext/GeoLocation.h in rhodes-2.3.0 vs platform/shared/rubyext/GeoLocation.h in rhodes-2.3.1.beta.1

- old
+ new

@@ -14,11 +14,11 @@ { public: DEFINE_LOGCLASS; private: - common::CAutoPtr<net::INetRequest> m_NetRequest; + NetRequest m_NetRequest; int m_nGeoPingTimeoutSec; struct CGeoNotification { String m_strUrl, m_strParams; @@ -33,15 +33,15 @@ CGeoNotification m_ViewNotify, m_Notify; common::CMutex m_mxNotify; static CGeoLocation* m_pInstance; - CGeoLocation(common::IRhoClassFactory* pFactory); + CGeoLocation(); public: - static CGeoLocation* Create(common::IRhoClassFactory* factory); + static CGeoLocation* Create(); static void Destroy(); static CGeoLocation* getInstance(){ return m_pInstance; } void setGeoCallback(const char *url, char* params, int timeout_sec, boolean bView); void callGeoCallback(boolean bError, boolean bRunInThread=false); @@ -53,10 +53,10 @@ int getDefaultPingTimeoutSec(); void setPingTimeoutSec( int nTimeout ); void callGeoCallback(const CGeoNotification& oNotify, boolean bError, boolean bRunInThread); - net::INetRequest& getNet(){ return *m_NetRequest; } + net::CNetRequestWrapper getNet(){ return getNetRequest(&m_NetRequest); } }; } }