vfs: check userland buffers before reading them.
[haiku.git] / src / apps / debugger / user_interface / gui / utility_windows / ConnectionConfigWindow.h
blob1066556eb85a7726d34f2dec818062dbef6c5abe
1 /*
2 * Copyright 2016, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef CONNECTION_CONFIG_WINDOW_H
6 #define CONNECTION_CONFIG_WINDOW_H
8 #include <Window.h>
10 #include "ConnectionConfigView.h"
13 class BButton;
14 class BGroupView;
15 class BMenu;
16 class BMenuField;
17 class Settings;
18 class TargetHostInterfaceInfo;
21 class ConnectionConfigWindow : public BWindow,
22 private ConnectionConfigView::Listener
24 public:
25 ConnectionConfigWindow();
27 ~ConnectionConfigWindow();
29 static ConnectionConfigWindow* Create();
30 // throws
33 virtual void MessageReceived(BMessage* message);
35 virtual void Show();
37 virtual bool QuitRequested();
39 // ConnectionConfigView::Listener
41 virtual void ConfigurationChanged(Settings* settings);
43 private:
44 void _Init();
45 BMenu* _BuildTypeMenu();
46 void _UpdateActiveConfig(
47 TargetHostInterfaceInfo* info);
49 private:
50 BMenuField* fConnectionTypeField;
51 BGroupView* fConfigGroupView;
52 BButton* fCloseButton;
53 BButton* fConnectButton;
54 Settings* fCurrentSettings;
55 TargetHostInterfaceInfo*
56 fActiveInfo;
59 #endif // CONNECTION_CONFIG_WINDOW_H