/* Copyright (C) 2009 Opera Software ASA.  All rights reserved. */
package com.opera.core.systems.scope.internal;

/**
 * 
 * @author Deniz Turkoglu
 * Enumerator for delay values
 */
public enum OperaIntervals {
	RESPONSE_TIMEOUT(5000),
	PAGE_LOAD_TIMEOUT(5000),
	POLL_INVERVAL(10),
	SCRIPT_RETRY(5),
	SCRIPT_RETRY_INTERVAL(50),
	EXEC_SLEEP(10), 
	HANDSHAKE_TIMEOUT(30000),
	SERVER_PORT(7001),
	ENABLE_DEBUGGER(1),
        KILL_GRACE_TIMEOUT(1000),
	BACKWARDS_COMPATIBLE(1);
	
	private long value;
	
	private OperaIntervals(long value) {
		this.value = value;
	}

	public void setValue(long value) {
		this.value = value;
	}

	public long getValue() {
                if (this.equals(SERVER_PORT))
                    return value;
		return value * 1000;
	}
}

@@ -650,88 +650,8 @@
 ) %7B%0A
-                if (this.equals(SERVER_PORT))%0A                    return value;%0A
 %09%09re
@@ -664,15 +664,8 @@
 alue
- * 1000
 ;%0A%09%7D

Enable timeouts as normal again.