NetworkManager r3978 - in trunk: . include introspection src
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r3978 - in trunk: . include introspection src
- Date: Sun, 17 Aug 2008 23:41:42 +0000 (UTC)
Author: dcbw
Date: Sun Aug 17 23:41:41 2008
New Revision: 3978
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3978&view=rev
Log:
2008-08-17 Dan Williams <dcbw redhat com>
* include/NetworkManager.h
introspection/nm-device.xml
src/nm-gsm-device.c
- Finer-grained GSM registration failure error codes
Modified:
trunk/ChangeLog
trunk/include/NetworkManager.h
trunk/introspection/nm-device.xml
trunk/src/nm-gsm-device.c
Modified: trunk/include/NetworkManager.h
==============================================================================
--- trunk/include/NetworkManager.h (original)
+++ trunk/include/NetworkManager.h Sun Aug 17 23:41:41 2008
@@ -307,6 +307,15 @@
/* Failed to select the specified APN */
NM_DEVICE_STATE_REASON_GSM_APN_FAILED,
+ /* Not searching for networks */
+ NM_DEVICE_STATE_REASON_GSM_REGISTRATION_NOT_SEARCHING,
+
+ /* Network registration denied */
+ NM_DEVICE_STATE_REASON_GSM_REGISTRATION_DENIED,
+
+ /* Network registration timed out */
+ NM_DEVICE_STATE_REASON_GSM_REGISTRATION_TIMEOUT,
+
/* Failed to register with the requested network */
NM_DEVICE_STATE_REASON_GSM_REGISTRATION_FAILED,
Modified: trunk/introspection/nm-device.xml
==============================================================================
--- trunk/introspection/nm-device.xml (original)
+++ trunk/introspection/nm-device.xml Sun Aug 17 23:41:41 2008
@@ -290,12 +290,27 @@
Failed to select the specified GSM APN.
</tp:docstring>
</tp:enumvalue>
- <tp:enumvalue suffix="GSM_REGISTRATION_FAILED" value="30">
+ <tp:enumvalue suffix="GSM_REGISTRATION_NOT_SEARCHING" value="30">
+ <tp:docstring>
+ Not searching for networks.
+ </tp:docstring>
+ </tp:enumvalue>
+ <tp:enumvalue suffix="GSM_REGISTRATION_DENIED" value="31">
+ <tp:docstring>
+ Network registration was denied.
+ </tp:docstring>
+ </tp:enumvalue>
+ <tp:enumvalue suffix="GSM_REGISTRATION_TIMEOUT" value="32">
+ <tp:docstring>
+ Network registration timed out.
+ </tp:docstring>
+ </tp:enumvalue>
+ <tp:enumvalue suffix="GSM_REGISTRATION_FAILED" value="33">
<tp:docstring>
Failed to register with the requested GSM network.
</tp:docstring>
</tp:enumvalue>
- <tp:enumvalue suffix="GSM_PIN_CHECK_FAILED" value="31">
+ <tp:enumvalue suffix="GSM_PIN_CHECK_FAILED" value="34">
<tp:docstring>
PIN check failed.
</tp:docstring>
Modified: trunk/src/nm-gsm-device.c
==============================================================================
--- trunk/src/nm-gsm-device.c (original)
+++ trunk/src/nm-gsm-device.c Sun Aug 17 23:41:41 2008
@@ -241,7 +241,7 @@
nm_warning ("Manual registration timed out");
nm_device_state_changed (NM_DEVICE (device),
NM_DEVICE_STATE_FAILED,
- NM_DEVICE_STATE_REASON_GSM_REGISTRATION_FAILED);
+ NM_DEVICE_STATE_REASON_GSM_REGISTRATION_TIMEOUT);
break;
default:
nm_warning ("Manual registration failed");
@@ -304,7 +304,7 @@
nm_warning ("Automatic registration failed: not registered and not searching.");
nm_device_state_changed (NM_DEVICE (device),
NM_DEVICE_STATE_FAILED,
- NM_DEVICE_STATE_REASON_GSM_REGISTRATION_FAILED);
+ NM_DEVICE_STATE_REASON_GSM_REGISTRATION_NOT_SEARCHING);
break;
case 1:
nm_info ("Registered on Home network");
@@ -317,7 +317,7 @@
nm_warning ("Automatic registration failed: registration denied.");
nm_device_state_changed (NM_DEVICE (device),
NM_DEVICE_STATE_FAILED,
- NM_DEVICE_STATE_REASON_GSM_REGISTRATION_FAILED);
+ NM_DEVICE_STATE_REASON_GSM_REGISTRATION_DENIED);
break;
case 4:
nm_info ("Registered on Roaming network");
@@ -327,7 +327,7 @@
nm_warning ("Automatic registration timed out");
nm_device_state_changed (NM_DEVICE (device),
NM_DEVICE_STATE_FAILED,
- NM_DEVICE_STATE_REASON_GSM_REGISTRATION_FAILED);
+ NM_DEVICE_STATE_REASON_GSM_REGISTRATION_TIMEOUT);
break;
default:
nm_warning ("Automatic registration failed");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]