net.sf.zekr.engine.update
Class UpdateManager

java.lang.Object
  extended by net.sf.zekr.engine.update.UpdateManager

public class UpdateManager
extends java.lang.Object

Zekr update manager. This class is capable of checking for new updates available on the remote site of Zekr.

Author:
Mohsen Saboorian

Field Summary
protected  java.lang.Exception failureCause
           
 boolean updateCheckFailed
           
 boolean updateCheckFinished
           
 
Constructor Summary
UpdateManager(org.eclipse.swt.widgets.Shell shell)
           
 
Method Summary
 boolean check(boolean manual)
           
 boolean isCheckNeeded()
          Checks whether this is time for checking for a new update.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

updateCheckFinished

public boolean updateCheckFinished

updateCheckFailed

public boolean updateCheckFailed

failureCause

protected java.lang.Exception failureCause
Constructor Detail

UpdateManager

public UpdateManager(org.eclipse.swt.widgets.Shell shell)
Method Detail

isCheckNeeded

public boolean isCheckNeeded()
Checks whether this is time for checking for a new update.

Returns:
true if this is the time for checking, false otherwise.

check

public boolean check(boolean manual)