Author: jerome
Date: 2009-02-05 15:22:38 +0100 (Thu, 05 Feb 2009)
New Revision: 3561
Removed:
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/Utils/AllEventsThread.java
Modified:
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/CcInterface.java
Log:
Modified:
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/CcInterface.java
===================================================================
---
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/CcInterface.java
2009-02-05 13:30:49 UTC (rev 3560)
+++
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/CcInterface.java
2009-02-05 14:22:38 UTC (rev 3561)
@@ -39,6 +39,7 @@
import java.io.IOException;
import java.net.URL;
import java.net.UnknownHostException;
+import java.util.Date;
import java.util.Hashtable;
import java.util.UUID;
import java.util.Vector;
@@ -84,7 +85,6 @@
import com.tuxdroid.cc.Object.WebBrowser.webBrowser;
import com.tuxdroid.cc.Renderer.ColorCellRenderer;
import com.tuxdroid.cc.Renderer.LabelsListRenderer;
-import com.tuxdroid.cc.Utils.AllEventsThread;
import com.tuxdroid.cc.Utils.ServicesLauncher;
import com.tuxdroid.cc.Utils.TuxDropTarget;
import com.tuxdroid.cc.alerts.AttituneAlertPanel;
@@ -191,6 +191,8 @@
Vector<JMenuItem> toolsMenus;
Hashtable<String, Object[]> savedProperties = new Hashtable<String,
Object[]>();
private GadgetInstance instance;
+
+ public int timeout = 0;
/**
* CcInterface constructor.
@@ -344,17 +346,6 @@
/**
- * Receive start and stop events from resource to save/restore remote
control context.
- * @param name
- * @param value
- */
- public void onAllEvents(String name, String value)
- {
- new AllEventsThread(this, value, "onAllEvents").start();
- }
-
-
- /**
* remote control/wings callback actions "next" started in a thread.
* @param value
* @param delay
Deleted:
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/Utils/AllEventsThread.java
===================================================================
---
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/Utils/AllEventsThread.java
2009-02-05 13:30:49 UTC (rev 3560)
+++
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/Utils/AllEventsThread.java
2009-02-05 14:22:38 UTC (rev 3561)
@@ -1,58 +0,0 @@
-/* This file is part of "TuxDroid Control Center".
- * Copyright 2008, kysoh
- * Author : Conan Jerome
- * eMail : [email protected]
- * Site : http://www.kysoh.com/
- *
- * "TuxDroid Control Center" is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * "TuxDroid Control Center" is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with "TuxDroid Control Center"; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package com.tuxdroid.cc.Utils;
-
-import com.tuxdroid.cc.CcCommons;
-import com.tuxdroid.cc.control.CCRemoteActions;
-
-public class AllEventsThread extends Thread{
-
- private String value;
- private String method;
- private Object sender;
-
- public AllEventsThread(Object sender, String value, String method){
- this.value = value;
- this.sender = sender;
- this.method = method;
- }
-
- public void run(){
- if(value != null){
- if(value.equals("start")){
- CcCommons.logger.append("Saving remote control
context", true);
- CCRemoteActions.deleteContext();
- CcCommons.tux.event.handler.register("all",
this.sender, this.method, "resource", null);
- }
-
-
- else if (value.equals("stop")){
- CcCommons.logger.append("Restoring remote
control context", true);
- CCRemoteActions.restoreContext();
- }
-
- CcCommons.logger.appendDone();
- }
- }
-
-}
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn