Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-03-15 20:37:28 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-03-15 20:37:28 (GMT)
commit902fcd069bc66e5c159e480c189850b5eb04c391 (patch)
tree11bcfef476c6b026722af1f68fcadfd019b1cd6a /shell
parent85f8ef218dff328748bf617bbca8c374064c9949 (diff)
Expose AP capabilities
Diffstat (limited to 'shell')
-rw-r--r--shell/model/accesspointmodel.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/model/accesspointmodel.py b/shell/model/accesspointmodel.py
index 3d07ca0..6b4b3cb 100644
--- a/shell/model/accesspointmodel.py
+++ b/shell/model/accesspointmodel.py
@@ -15,6 +15,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import gobject
+import sys
from hardware import nmclient
@@ -35,7 +36,9 @@ class AccessPointModel(gobject.GObject):
'strength' : (int, None, None, 0, 100, 0,
gobject.PARAM_READABLE),
'state' : (int, None, None, STATE_CONNECTING,
- STATE_NOTCONNECTED, 0, gobject.PARAM_READABLE)
+ STATE_NOTCONNECTED, 0, gobject.PARAM_READABLE),
+ 'capabilities' : (int, None, None, 0, sys.maxint, 0,
+ gobject.PARAM_READABLE)
}
def __init__(self, nm_device, nm_network):
@@ -71,3 +74,5 @@ class AccessPointModel(gobject.GObject):
elif pspec.name == 'state':
nm_state = self._nm_network.get_state()
return _nm_state_to_state[nm_state]
+ elif pspec.name == 'capabilities':
+ return self._nm_network.get_caps()