2005-05-22 19:39:21 +00:00
|
|
|
module Msf
|
|
|
|
module Ui
|
|
|
|
|
|
|
|
###
|
|
|
|
#
|
|
|
|
# The driver class is an abstract base class that is meant to provide
|
|
|
|
# a very general set of methods for 'driving' a user interface.
|
|
|
|
#
|
|
|
|
###
|
|
|
|
class Driver
|
|
|
|
|
|
|
|
def initialize
|
|
|
|
end
|
|
|
|
|
2005-11-15 15:11:43 +00:00
|
|
|
#
|
|
|
|
# Executes the user interface, optionally in an asynchronous fashion.
|
|
|
|
#
|
2005-05-22 19:39:21 +00:00
|
|
|
def run
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
2005-11-15 15:11:43 +00:00
|
|
|
#
|
|
|
|
# Stops executing the user interface.
|
|
|
|
#
|
2005-05-22 19:39:21 +00:00
|
|
|
def stop
|
|
|
|
end
|
|
|
|
|
2005-11-15 15:11:43 +00:00
|
|
|
#
|
|
|
|
# Cleans up any resources associated with the UI driver.
|
|
|
|
#
|
2005-05-22 19:39:21 +00:00
|
|
|
def cleanup
|
|
|
|
end
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
2008-10-19 21:03:39 +00:00
|
|
|
end
|