cz.polous.andaria
Class PatchList

java.lang.Object
  extended by cz.polous.andaria.PatchList

 class PatchList
extends java.lang.Object

installatortchList: List of installatortches, offers download start procedure.

Version:
0.1
Author:
Martin Polehla (andaria_patcher@polous.cz)

Field Summary
private  java.lang.Thread downloadThread
           
private  java.lang.Thread installThread
           
private static PatchList INSTANCE
           
private static Log log
           
private  java.util.Vector patchData
           
private  java.lang.Thread t
           
 
Constructor Summary
private PatchList()
          Creates a new instance of installatortchList
 
Method Summary
 void cancel()
          Cancel downloads and installations
 void download()
          Start downloads and installations
 void downloadOnly(PatchItem patchItem)
          Deprecated. 
 int getCount()
          Return count of installatortches
 java.lang.Thread getDownloadThread()
           
 java.lang.Thread getInstallThread()
           
static PatchList getInstance()
           
 boolean inProgress()
          Determinate if a job is in progress (downloader or installer)
 void reload()
          Read patchList from remote storage and fill data vector (list of pachItems).
 void selectAll()
           
 void selectNone()
           
 void setAllInstalled()
          Set all pachtes in list installed and store it to config file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

private static final PatchList INSTANCE

patchData

private java.util.Vector patchData

t

private java.lang.Thread t

log

private static Log log

installThread

private java.lang.Thread installThread

downloadThread

private java.lang.Thread downloadThread
Constructor Detail

PatchList

private PatchList()
Creates a new instance of installatortchList

Method Detail

getInstance

public static PatchList getInstance()

getDownloadThread

public java.lang.Thread getDownloadThread()

getInstallThread

public java.lang.Thread getInstallThread()

getCount

public int getCount()
Return count of installatortches

Returns:
amount of installatortchItem in list

reload

public void reload()
Read patchList from remote storage and fill data vector (list of pachItems).


inProgress

public boolean inProgress()
Determinate if a job is in progress (downloader or installer)

Returns:
state of patch process

cancel

public void cancel()
Cancel downloads and installations


downloadOnly

@Deprecated
public void downloadOnly(PatchItem patchItem)
Deprecated. 

Download other than patch item used for unrar download, not used now.


download

public void download()
Start downloads and installations


setAllInstalled

public void setAllInstalled()
Set all pachtes in list installed and store it to config file. Usualy used when user has some of files installed by his own.


selectNone

public void selectNone()

selectAll

public void selectAll()