+_NetworkManagerImpl::IsDataAvailable(void)
+{
+ int err = NETWORK_INFO_ERROR_NONE;
+ connection_cellular_state_e dataServiceState = CONNECTION_CELLULAR_STATE_OUT_OF_SERVICE;
+ bool isDataAvailable = false;
+
+ err = connection_get_cellular_state(__pConnectionHandle.get(), &dataServiceState);
+
+ SysLog(NID_TEL, "The return value of connection_get_cellular_state() is 0x%x and the dataServiceState is %d", err, dataServiceState);
+
+ if (dataServiceState == CONNECTION_CELLULAR_STATE_AVAILABLE || dataServiceState == CONNECTION_CELLULAR_STATE_CONNECTED)
+ {
+ isDataAvailable = true;
+ }
+ else
+ {
+ isDataAvailable = false;
+ }
+
+ return isDataAvailable;
+}
+
+bool
+_NetworkManagerImpl::IsRoaming(void)
+{
+ int err = NETWORK_INFO_ERROR_NONE;
+ bool isRoaming = false;
+
+ err = network_info_is_roaming(&isRoaming);
+ SysLog(NID_TEL, "The return value of network_info_is_roaming() is 0x%x and the roming state is %s", err, isRoaming ? "True" : "False");
+
+ return isRoaming;
+}
+
+bool