forked from infobyte/faraday
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui_app.py
65 lines (47 loc) · 1.54 KB
/
gui_app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env python
'''
Faraday Penetration Test IDE - Community Version
Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/)
See the file 'doc/LICENSE' for the license information
'''
class UiFactory(object):
@staticmethod
def create(model_controller, plugin_manager, workspace_manager, gui="gtk"):
if gui == "gtk":
from gui.gtk.application import GuiApp
elif gui == "qt3":
from gui.qt3.application import GuiApp
else:
from gui.nogui.application import GuiApp
return GuiApp(model_controller, plugin_manager, workspace_manager)
class FaradayUi(object):
def __init__(self, model_controller=None, plugin_manager=None,
workspace_manager=None, gui="qt3"):
#self.main_app = main_app
self.model_controller = model_controller
self.plugin_manager = plugin_manager
self.workspace_manager = workspace_manager
def getModelController(self):
return self.model_controller
def getPluginManager(self):
return self.plugin_manager
def getWorkspaceManager(self):
return self.workspace_manager
def setSplashImage(self, ipath):
pass
def startSplashScreen(self):
pass
def stopSplashScreen(self):
pass
def splashMessage(self, message):
pass
def loadWorkspaces(self):
pass
def run(self, args):
pass
def quit(self):
pass
def postEvent(self, receiver, event):
pass
def createLoggerWidget(self):
pass