- * void
- * MyClass::OnTelephonyNetworkStatusChanged(const NetworkStatus& networkStatus)
- * {
- * bool isCallAvail = networkStatus.IsCallServiceAvailable();
- * bool isDataAvail = networkStatus.IsDataServiceAvailable();
- * bool isRoaming = networkStatus.IsRoaming();
- * }
+ * void
+ * MyClass::GetNetworkManagerInfo(void)
+ * {
+ * NetworkStatus networkStatus;
+ * NetworkInfo networkInfo;
+ *
+ * NetworkManager* pNetworkManager = new (std::nothrow) NetworkManager();
+ * result r = pNetworkManager->Construct(this);
+ * if (IsFailed(r))
+ * {
+ * delete pNetworkManager;
+ * return;
+ * }
+ *
+ * r = pNetworkManager->GetNetworkStatus(networkStatus);
+ * if (IsFailed(r))
+ * {
+ * delete pNetworkManager;
+ * return;
+ * }
+ *
+ * r = pNetworkManager->GetNetworkInfo(networkInfo);
+ * if (IsFailed(r))
+ * {
+ * delete pNetworkManager;
+ * return;
+ * }
+ *
+ * delete pNetworkManager;
+ * }