Author: bklaas
Date: Fri Jun 20 09:44:16 2008
New Revision: 2609

URL: http://svn.slimdevices.com?rev=2609&root=Jive&view=rev
Log:
Bug: 7080
Description: add method for an applet to upgrade settings in its meta file

Modified:
    
7.1/trunk/squeezeplay/src/squeezeplay/share/applets/SetupWallpaper/SetupWallpaperApplet.lua
    7.1/trunk/squeezeplay/src/squeezeplay/share/jive/AppletManager.lua
    7.1/trunk/squeezeplay/src/squeezeplay/share/jive/AppletMeta.lua

Modified: 
7.1/trunk/squeezeplay/src/squeezeplay/share/applets/SetupWallpaper/SetupWallpaperApplet.lua
URL: 
http://svn.slimdevices.com/7.1/trunk/squeezeplay/src/squeezeplay/share/applets/SetupWallpaper/SetupWallpaperApplet.lua?rev=2609&root=Jive&r1=2608&r2=2609&view=diff
==============================================================================
--- 
7.1/trunk/squeezeplay/src/squeezeplay/share/applets/SetupWallpaper/SetupWallpaperApplet.lua
 (original)
+++ 
7.1/trunk/squeezeplay/src/squeezeplay/share/applets/SetupWallpaper/SetupWallpaperApplet.lua
 Fri Jun 20 09:44:16 2008
@@ -46,6 +46,7 @@
 local debug                  = require("jive.utils.debug")
 
 local jnt                    = jnt
+local appletManager          = appletManager
 
 module(..., Framework.constants)
 oo.class(_M, Applet)

Modified: 7.1/trunk/squeezeplay/src/squeezeplay/share/jive/AppletManager.lua
URL: 
http://svn.slimdevices.com/7.1/trunk/squeezeplay/src/squeezeplay/share/jive/AppletManager.lua?rev=2609&root=Jive&r1=2608&r2=2609&view=diff
==============================================================================
--- 7.1/trunk/squeezeplay/src/squeezeplay/share/jive/AppletManager.lua 
(original)
+++ 7.1/trunk/squeezeplay/src/squeezeplay/share/jive/AppletManager.lua Fri Jun 
20 09:44:16 2008
@@ -222,6 +222,8 @@
 
        if not entry.settings then
                entry.settings = obj:defaultSettings()
+       else
+               entry.settings = obj:upgradeSettings(entry.settings)
        end
 
        obj._entry = entry

Modified: 7.1/trunk/squeezeplay/src/squeezeplay/share/jive/AppletMeta.lua
URL: 
http://svn.slimdevices.com/7.1/trunk/squeezeplay/src/squeezeplay/share/jive/AppletMeta.lua?rev=2609&root=Jive&r1=2608&r2=2609&view=diff
==============================================================================
--- 7.1/trunk/squeezeplay/src/squeezeplay/share/jive/AppletMeta.lua (original)
+++ 7.1/trunk/squeezeplay/src/squeezeplay/share/jive/AppletMeta.lua Fri Jun 20 
09:44:16 2008
@@ -69,6 +69,18 @@
        return nil
 end
 
+--[[
+
+=head2 self:upgradeSettings()
+
+Returns a table with the upgraded settings for this applet, or the existing 
settings
+
+=cut
+--]]
+function upgradeSettings(self, settings)
+       return settings
+end
+
 
 --[[
 

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

Reply via email to