Fix TC failure. (NetStatistics)
authorJaemin Ahn <j.m.ahn@samsung.com>
Tue, 30 Apr 2013 05:18:16 +0000 (14:18 +0900)
committerJaemin Ahn <j.m.ahn@samsung.com>
Tue, 30 Apr 2013 05:18:16 +0000 (14:18 +0900)
Change-Id: I75bcae24cf9071a1adf0996df3964fa16dab60ab
Signed-off-by: Jaemin Ahn <j.m.ahn@samsung.com>
inc/NetService.h
src/NetService.cpp

index 8e016ee..03121d2 100644 (file)
@@ -54,6 +54,8 @@ private:
     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_
index 0649fff..8925e39 100644 (file)
@@ -35,12 +35,21 @@ using namespace Tizen::Net;
 
 
 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