qdown.quickDownloader.systemIntegrity
Class IntegrityChecker

java.lang.Object
  extended byqdown.quickDownloader.systemIntegrity.IntegrityChecker

public class IntegrityChecker
extends java.lang.Object

A System core class which is started each time QD loads. It ensures all system files used by QD are present and if not creates them


Constructor Summary
IntegrityChecker(javax.swing.JFrame frame)
          The constuctor of the class
 
Method Summary
 int checkHistoryFile()
          Checks for the history file
 int checkLogFile()
          Checks the integrity of the log file
 int checkPropertiesFile()
          Checks for the properties file
 int checkPropertiesTag()
          Checks the integrity of the properties tag file
 void checkSystemIntegrity()
          Checks system integrity
 int checkTempFolder()
          Checks the integrity of the Temp Fole
static boolean integrityCheckStatus()
          Returns the status of the integrity check
 void integrityFailed(int failValue)
          Called if the integrity has failed
 void integrityPassed()
          Called when integrity has been confirmed
 int makeLogFile(java.io.File logLocation)
          Creates a Log FIle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegrityChecker

public IntegrityChecker(javax.swing.JFrame frame)
The constuctor of the class

Parameters:
frame -
Method Detail

integrityCheckStatus

public static boolean integrityCheckStatus()
Returns the status of the integrity check

Returns:
status of the integrity check

checkSystemIntegrity

public void checkSystemIntegrity()
Checks system integrity


integrityPassed

public void integrityPassed()
Called when integrity has been confirmed


checkLogFile

public int checkLogFile()
Checks the integrity of the log file

Returns:
the success of the log file existing

makeLogFile

public int makeLogFile(java.io.File logLocation)
Creates a Log FIle

Parameters:
logLocation - The location to where the log file will be created
Returns:
The success of the creation

checkTempFolder

public int checkTempFolder()
Checks the integrity of the Temp Fole

Returns:
the integrity of the Temp Fole

integrityFailed

public void integrityFailed(int failValue)
Called if the integrity has failed

Parameters:
failValue - the type of failure

checkPropertiesTag

public int checkPropertiesTag()
Checks the integrity of the properties tag file

Returns:
success of the integrity check

checkHistoryFile

public int checkHistoryFile()
Checks for the history file

Returns:
success of the integrity check

checkPropertiesFile

public int checkPropertiesFile()
Checks for the properties file

Returns:
success of the integrity check