package com.limegroup.gnutella.malware;
import org.limewire.core.settings.MalwareSettings;
import org.limewire.util.OSUtils;
import com.limegroup.gnutella.util.LimeWireUtils;
/**
*Delegate for the settings used by VirusScannerImpl to determine whether or
* not antivirus is supported and enabled.
*
* THIS SHOULD NOT BE USED EXCEPT BY VirusScannerImpl AND ITS TESTS.
*/
class AntivirusSupportConfigurationImpl implements AntivirusSupportConfiguration {
@Override
public boolean isAVGCompatibleWindows() {
return OSUtils.isAVGCompatibleWindows();
}
@Override
public boolean isTemporaryDirectoryInUse() {
return LimeWireUtils.isTemporaryDirectoryInUse();
}
@Override
public boolean isVirusScannerEnabledInSettings() {
return MalwareSettings.VIRUS_SCANNER_ENABLED.getValue();
}
}