Author: remi
Date: 2009-03-23 14:39:08 +0100 (Mon, 23 Mar 2009)
New Revision: 4181

Modified:
   
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/GadgetsContainer.py
   
software_suite_v2/tuxware/tuxdroidserver/trunk/util/filesystem/AutoDeployer.py
Log:
* added getters to know if the gadgets container is deployed

Modified: 
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/GadgetsContainer.py
===================================================================
--- 
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/GadgetsContainer.py
    2009-03-23 13:03:28 UTC (rev 4180)
+++ 
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/GadgetsContainer.py
    2009-03-23 13:39:08 UTC (rev 4181)
@@ -143,6 +143,15 @@
         self.__autoDeployer.undeploy()
 
     # 
--------------------------------------------------------------------------
+    # Get if the container is deployed or not.
+    # 
--------------------------------------------------------------------------
+    def isDeployed(self):
+        """Get if the container is deployed or not.
+        @return: A boolean.
+        """
+        return self.__autoDeployer.isDeployed
+
+    # 
--------------------------------------------------------------------------
     # Set the directory deployed event callback.
     # 
--------------------------------------------------------------------------
     def setOnDirectoryDeployedCallback(self, funct):

Modified: 
software_suite_v2/tuxware/tuxdroidserver/trunk/util/filesystem/AutoDeployer.py
===================================================================
--- 
software_suite_v2/tuxware/tuxdroidserver/trunk/util/filesystem/AutoDeployer.py  
    2009-03-23 13:03:28 UTC (rev 4180)
+++ 
software_suite_v2/tuxware/tuxdroidserver/trunk/util/filesystem/AutoDeployer.py  
    2009-03-23 13:39:08 UTC (rev 4181)
@@ -80,6 +80,18 @@
         self.__dirMutex.release()
 
     # 
--------------------------------------------------------------------------
+    # Get if the auto-deployer is deployed or not.
+    # 
--------------------------------------------------------------------------
+    def isDeployed(self):
+        """Get if the auto-deployer is deployed or not.
+        @return: A boolean.
+        """
+        self.__dirMutex.acquire()
+        isDeployed = self.__isDeployed
+        self.__dirMutex.release()
+        return isDeployed
+
+    # 
--------------------------------------------------------------------------
     # Add a directory in the directories list to deploy.
     # 
--------------------------------------------------------------------------
     def addDirectory(self, directory, filters = []):


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to