ConsoleUser

Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com

This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.

All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.

class VirusScanImpl.VirusScanImpl(system, config)

I am the public interface common to all implementations of <no title>. Combined we implement the Bridge Pattern

Parameters:

  • system: a <no title> object to interact with the target system

  • config: a <no title> that defines this user

exit(save=False)

Close the application, though not necessarily those resident components like live protection or those which remain resident in the system tray.

Parameters:

  • exit: not used but accpeted to maintain a common signature

handle_alert(category=None, program=None)

Handle a real-time alert displayed by the VirusScan

open()

Launch the application

run_full_scan(block=True)

Start a full system scan and optionally wait for it to finish.

Parameters:

  • block: Whether or not to wait until the scan is finished before this function returns, defaults to True

run_quick_scan(block=True)

Run the quick version of the scan and optionally wait for it to finish.

Parameters:

  • block: Whether or not to wait until the scan is finished before this function returns, defaults to True

update()

Have the VirusScanImpl check for and apply any available updates.

VirusScanImpl.get_virus_scanner(system, config, vtype=None)

This is a Factory method to create concrete instances of the correct type based on either the given vtype or the value specified in the given config object.

Parameters:

  • system: the <no title> object which the returned instance should use to interact with the target system

  • config: the <no title> object defining the current user

  • vtype: optionally the type of VirusScanImpl to create, regardless of what is specified in the config object