Author: titmuss
Date: Wed Jan 16 03:41:34 2008
New Revision: 1460
URL: http://svn.slimdevices.com?rev=1460&root=Jive&view=rev
Log:
Bug: N/A
Description:
Add a desktop jive applet, this creates a uuid for SN to allow the desktop jive
to be
used for testing.
Added:
trunk/jive/src/pkg/jive_desktop/share/applets/DesktopJive/
trunk/jive/src/pkg/jive_desktop/share/applets/DesktopJive/DesktopJiveMeta.lua
Modified:
trunk/jive/src/pkg/jive/share/jive/AppletMeta.lua
trunk/jive/src/pkg/jive_desktop/Makefile
Modified: trunk/jive/src/pkg/jive/share/jive/AppletMeta.lua
URL:
http://svn.slimdevices.com/trunk/jive/src/pkg/jive/share/jive/AppletMeta.lua?rev=1460&root=Jive&r1=1459&r2=1460&view=diff
==============================================================================
--- trunk/jive/src/pkg/jive/share/jive/AppletMeta.lua (original)
+++ trunk/jive/src/pkg/jive/share/jive/AppletMeta.lua Wed Jan 16 03:41:34 2008
@@ -83,6 +83,13 @@
end
+-- storeSettings
+-- used by jive.AppletManager to persist the applet settings
+function storeSettings(self)
+ appletManager._storeSettings(self._entry)
+end
+
+
--[[
=head2 self:menuItem(label, closure)
Modified: trunk/jive/src/pkg/jive_desktop/Makefile
URL:
http://svn.slimdevices.com/trunk/jive/src/pkg/jive_desktop/Makefile?rev=1460&root=Jive&r1=1459&r2=1460&view=diff
==============================================================================
--- trunk/jive/src/pkg/jive_desktop/Makefile (original)
+++ trunk/jive/src/pkg/jive_desktop/Makefile Wed Jan 16 03:41:34 2008
@@ -22,3 +22,5 @@
install share/applets/Test/TestMeta.lua ${APPLETS}/Test/TestMeta.lua
install share/applets/Test/test.png ${APPLETS}/Test/test.png
install share/applets/Test/test.txt ${APPLETS}/Test/test.txt
+ install -d share/applets/DesktopJive ${APPLETS}/DesktopJive
+ install share/applets/DesktopJive/DesktopJiveMeta.lua
${APPLETS}/DesktopJive/DesktopJiveMeta.lua
Added:
trunk/jive/src/pkg/jive_desktop/share/applets/DesktopJive/DesktopJiveMeta.lua
URL:
http://svn.slimdevices.com/trunk/jive/src/pkg/jive_desktop/share/applets/DesktopJive/DesktopJiveMeta.lua?rev=1460&root=Jive&view=auto
==============================================================================
---
trunk/jive/src/pkg/jive_desktop/share/applets/DesktopJive/DesktopJiveMeta.lua
(added)
+++
trunk/jive/src/pkg/jive_desktop/share/applets/DesktopJive/DesktopJiveMeta.lua
Wed Jan 16 03:41:34 2008
@@ -1,0 +1,58 @@
+
+local oo = require("loop.simple")
+local math = require("math")
+local string = require("string")
+local table = require("jive.utils.table")
+
+local AppletMeta = require("jive.AppletMeta")
+
+local appletManager = appletManager
+local jiveMain = jiveMain
+local jnt = jnt
+
+
+module(...)
+oo.class(_M, AppletMeta)
+
+
+function jiveVersion(meta)
+ return 1, 1
+end
+
+
+function defaultSettings(meta)
+ return {
+ uuid = false
+ }
+end
+
+
+function registerApplet(meta)
+ local settings = meta:getSettings()
+
+ if not settings.uuid then
+ local uuid = {}
+ for i = 1,16 do
+ uuid[#uuid + 1] = string.format('%02x',
math.random(255))
+ end
+
+ settings.uuid = table.concat(uuid)
+ meta:storeSettings()
+ end
+
+ -- set uuid
+ jnt:setUUID(settings.uuid)
+end
+
+
+--[[
+
+=head1 LICENSE
+
+Copyright 2007 Logitech. All Rights Reserved.
+
+This file is subject to the Logitech Public Source License Version 1.0. Please
see the LICENCE file for details.
+
+=cut
+--]]
+
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins