Class: Watobo::Gui::SessionManagementDialog
- Inherits:
-
FXDialogBox
- Object
- FXDialogBox
- Watobo::Gui::SessionManagementDialog
show all
- Includes:
- Icons
- Defined in:
- lib/watobo/gui/session_management_dialog.rb
Overview
S E S S I O N M A N A G E M E N T D I A L O G
Constant Summary
Constants included
from Icons
Icons::ICON_ADD_PROJECT, Icons::ICON_BROWSER_MEDIUM, Icons::ICON_BROWSER_SMALL, Icons::ICON_BTN_DOWN, Icons::ICON_BTN_UP, Icons::ICON_CB_CHECKED, Icons::ICON_CB_CHECKED_ORANGE, Icons::ICON_CB_UNCHECKED, Icons::ICON_CONVERSATION, Icons::ICON_DASHBOARD, Icons::ICON_DIFFER, Icons::ICON_FOLDER, Icons::ICON_FOLDER_SMALL, Icons::ICON_FUZZER, Icons::ICON_FUZZER_MEDIUM, Icons::ICON_FUZZER_SMALL, Icons::ICON_FUZZ_FILTER, Icons::ICON_FUZZ_GENERATOR, Icons::ICON_FUZZ_TAG, Icons::ICON_HINTS, Icons::ICON_HINTS_INFO, Icons::ICON_HINTS_INFO_SMALL, Icons::ICON_HINTS_SMALL, Icons::ICON_INFO, Icons::ICON_INFO_INFO, Icons::ICON_INFO_INFO_SMALL, Icons::ICON_INFO_SMALL, Icons::ICON_INFO_USER, Icons::ICON_INFO_USER_SMALL, Icons::ICON_INTERCEPTOR, Icons::ICON_LOGIN_WIZZARD, Icons::ICON_MANUAL_REQUEST, Icons::ICON_MANUAL_REQUEST_MEDIUM, Icons::ICON_MANUAL_REQUEST_SMALL, Icons::ICON_PAUSE, Icons::ICON_PLUGIN, Icons::ICON_PROJECT, Icons::ICON_PROJECT_SMALL, Icons::ICON_REPORT, Icons::ICON_REQUEST, Icons::ICON_REQUEST_SMALL, Icons::ICON_SEND_REQUEST, Icons::ICON_SITE, Icons::ICON_SITE_SMALL, Icons::ICON_START, Icons::ICON_STOP, Icons::ICON_TOKEN, Icons::ICON_TRANSCODER, Icons::ICON_VULN, Icons::ICON_VULN_BP, Icons::ICON_VULN_BP_SMALL, Icons::ICON_VULN_CRITICAL, Icons::ICON_VULN_CRITICAL_SMALL, Icons::ICON_VULN_HIGH, Icons::ICON_VULN_HIGH_SMALL, Icons::ICON_VULN_LOW, Icons::ICON_VULN_LOW_SMALL, Icons::ICON_VULN_MEDIUM, Icons::ICON_VULN_MEDIUM_SMALL, Icons::ICON_VULN_SMALL, Icons::ICON_WATOBO, Icons::SIBERAS_ICON, Icons::TBL_ICON_LOCK, Icons::WATOBO_LOGO
Instance Method Summary
collapse
Constructor Details
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
|
# File 'lib/watobo/gui/session_management_dialog.rb', line 614
def initialize(owner)
super(owner, "Session Management", DECOR_ALL, :width=>800, :height=>600)
self.icon = ICON_LOGIN_WIZZARD
main_frame = FXVerticalFrame.new(self, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y, :padding => 0)
tabBook = FXTabBook.new(main_frame, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_RIGHT)
@loginSettings = nil
@sidSettings = nil
unless Watobo.project.nil?
login_tab = FXTabItem.new(tabBook, "Login Script", nil)
@loginSettings = LoginScriptSettings.new(tabBook)
end
sid_tab = FXTabItem.new(tabBook, "Sesssion IDs", nil)
@sidSettings = SessionIdSettings.new(tabBook)
logout_tab = FXTabItem.new(tabBook, "Logout Signatures", nil)
@logoutSettings = LogoutSettings.new(tabBook)
tabBook.connect(SEL_COMMAND) do |sender, sel, tabItem|
case tabItem.to_i
when 0
when 1
unless Watobo.project.nil?
ids = getLoginScriptIds()
@sidSettings.updateRequests(ids)
end
when 2
end
end
button_frame = FXHorizontalFrame.new(main_frame, :opts => LAYOUT_FILL_X)
FXButton.new(button_frame, "OK" ,
:target => self, :selector => FXDialogBox::ID_ACCEPT,
:opts => BUTTON_NORMAL|LAYOUT_RIGHT)
FXButton.new(button_frame, "Cancel" ,
:target => self, :selector => FXDialogBox::ID_CANCEL,
:opts => BUTTON_NORMAL|LAYOUT_RIGHT)
end
|
Instance Method Details
#getLoginScriptIds ⇒ Object
606
607
608
|
# File 'lib/watobo/gui/session_management_dialog.rb', line 606
def getLoginScriptIds()
login_chat_ids = @loginSettings.getLoginScriptIds()
end
|
#getLogoutSignatures ⇒ Object
610
611
612
|
# File 'lib/watobo/gui/session_management_dialog.rb', line 610
def getLogoutSignatures()
signatures = @logoutSettings.getLogoutSignatures()
end
|
#getSidPatterns ⇒ Object
602
603
604
|
# File 'lib/watobo/gui/session_management_dialog.rb', line 602
def getSidPatterns()
sidpats = @sidSettings.getSidPatternList
end
|