2012-06-29 05:18:28 +00:00
|
|
|
# -*- coding: binary -*-
|
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
|
|
|
|
|
2013-08-30 21:28:33 +00:00
|
|
|
def initialize
|
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
# Executes the user interface, optionally in an asynchronous fashion.
|
|
|
|
#
|
|
|
|
def run
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
# Stops executing the user interface.
|
|
|
|
#
|
|
|
|
def stop
|
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
# Cleans up any resources associated with the UI driver.
|
|
|
|
#
|
|
|
|
def cleanup
|
|
|
|
end
|
2005-05-22 19:39:21 +00:00
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
2010-01-15 00:32:48 +00:00
|
|
|
end
|