Author: mherger
Date: Fri Feb 19 05:25:29 2010
New Revision: 8528

URL: http://svn.slimdevices.com/jive?rev=8528&view=rev
Log:
Bug: n/a
Description: add capabilities for local media support

Modified:
    7.5/trunk/squeezeplay/src/squeezeplay/share/jive/System.lua
    
7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeboxFab4/SqueezeboxFab4Applet.lua
    
7.5/trunk/squeezeplay/src/squeezeplay_jive/share/applets/SqueezeboxJive/SqueezeboxJiveApplet.lua

Modified: 7.5/trunk/squeezeplay/src/squeezeplay/share/jive/System.lua
URL: 
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay/share/jive/System.lua?rev=8528&r1=8527&r2=8528&view=diff
==============================================================================
--- 7.5/trunk/squeezeplay/src/squeezeplay/share/jive/System.lua (original)
+++ 7.5/trunk/squeezeplay/src/squeezeplay/share/jive/System.lua Fri Feb 19 
05:25:29 2010
@@ -140,6 +140,18 @@
        _touchpadBottomCorrection = value
 end
 
+function hasUSB(self)
+       return _capabilities["usb"] ~= nil
+end
+
+function hasSDCard(self)
+       return _capabilities["sdcard"] ~= nil
+end
+
+function hasLocalStorage(self)
+       return self:hasUSB() or self:hasSDCard() or not self:isHardware()
+end
+
 -- rest is C implementation
 
 

Modified: 
7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeboxFab4/SqueezeboxFab4Applet.lua
URL: 
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeboxFab4/SqueezeboxFab4Applet.lua?rev=8528&r1=8527&r2=8528&view=diff
==============================================================================
--- 
7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeboxFab4/SqueezeboxFab4Applet.lua
 (original)
+++ 
7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeboxFab4/SqueezeboxFab4Applet.lua
 Fri Feb 19 05:25:29 2010
@@ -110,6 +110,8 @@
                ["ir"] = 1,
                ["audioByDefault"] = 1,
                ["wiredNetworking"] = 1,
+               ["usb"] = 1,
+               ["sdcard"] = 1,
        })
 
        --account for fab4 touchpad hardware issue: the bottom pixels aren't 
reported correctly 

Modified: 
7.5/trunk/squeezeplay/src/squeezeplay_jive/share/applets/SqueezeboxJive/SqueezeboxJiveApplet.lua
URL: 
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay_jive/share/applets/SqueezeboxJive/SqueezeboxJiveApplet.lua?rev=8528&r1=8527&r2=8528&view=diff
==============================================================================
--- 
7.5/trunk/squeezeplay/src/squeezeplay_jive/share/applets/SqueezeboxJive/SqueezeboxJiveApplet.lua
 (original)
+++ 
7.5/trunk/squeezeplay/src/squeezeplay_jive/share/applets/SqueezeboxJive/SqueezeboxJiveApplet.lua
 Fri Feb 19 05:25:29 2010
@@ -95,6 +95,7 @@
                ["coreKeys"] = 1,
                ["homeAsPowerKey"] = 1,
                ["deviceRotation"] = 1,
+               ["sdcard"] = 1,
        })
        
        -- warn if uuid or mac are invalid

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to