session: Move IdleTimeout to Technology API
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Mon, 13 Aug 2012 08:40:16 +0000 (10:40 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 30 Aug 2012 09:56:30 +0000 (12:56 +0300)
Having an IdleTimeout per Session is not really reasonable. It is
hard to define the right behavoir if the timeouts differ per Session.

Doing this per technology is easier to understand and also makes
sense when no Session is used.

IdleTimeout is only documented here, it's not yet implemented.

doc/session-api.txt
doc/technology-api.txt

index e19c6bf..90002ba 100644 (file)
@@ -241,15 +241,6 @@ Settings   string  Bearer [readonly]
                        settings becomes available becomes available. Using
                        this feature it is also easy to avoid congestion.
 
-               uint32  IdleTimeout [readwrite]
-
-                       If the system is idle for given period then it should
-                       go offline.
-
-                       If the timeout is 0, this feature is disabled. If
-                       different values are provided by several session object
-                       the longest interval is taken as timeout value.
-
                boolean EmergencyCall [readwrite]
 
                        Boolean representing the emergency mode of the
index 6429776..9fe66b3 100644 (file)
@@ -93,3 +93,11 @@ Properties   boolean Powered [readwrite]
                        This property is only valid for the WiFi technology,
                        and is then mapped to the WPA pre-shared key clients
                        will have to use in order to establish a connection.
+
+               uint32  IdleTimeout [readwrite] [experimental]
+
+                       If the technology is idle for given period then it
+                       will go offline if no Service with this technology
+                       has AutoConnect set to True.
+
+                       If the timeout is 0, this feature is disabled.