Change-Id: I75bcae24cf9071a1adf0996df3964fa16dab60ab
Signed-off-by: Jaemin Ahn <j.m.ahn@samsung.com>
void* GetPsProfileHandleN(const Tizen::Base::String& profileName);
result ConvertToProfileInfo(void* pProfileHandle, const Tizen::Net::NetAccountInfo& netAccountInfo, int bearerType) const;
+private:
+ void* __pConnectionHandle;
};
#endif // _NET_SERVICE_H_
NetService::NetService(void)
+ : __pConnectionHandle(null)
{
-}
+ int ret = CONNECTION_ERROR_NONE;
+ ret = connection_create(&__pConnectionHandle);
+ SysLog(NID_NET, "The return value from connection_create() is %d", ret);
+}
NetService::~NetService(void)
{
+ if (__pConnectionHandle != null)
+ {
+ connection_destroy(__pConnectionHandle);
+ __pConnectionHandle = null;
+ }
}
result