btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / src / add-ons / kernel / file_systems / netfs / authentication_server / AuthenticationPanel.h
blobd553e66f2f17b0450df962e26fc4c10bd50f2192
1 // AuthenticationPanel.h
3 #ifndef AUTHENTICATION_PANEL_H
4 #define AUTHENTICATION_PANEL_H
6 #include "Panel.h"
8 class BCheckBox;
9 class BTextControl;
11 class AuthenticationPanel : public Panel {
12 public:
13 AuthenticationPanel(BRect frame = BRect(-1000.0, -1000.0, -900.0, -900.0));
14 virtual ~AuthenticationPanel();
16 virtual bool QuitRequested();
18 virtual void MessageReceived(BMessage *message);
20 // AuthenticationPanel
21 bool GetAuthentication(const char* server,
22 const char* share,
23 const char* previousUser,
24 const char* previousPass,
25 bool previousKeep,
26 bool badPassword,
27 char* user,
28 char* pass,
29 bool* askAgain);
31 virtual void Cancel();
33 private:
34 BRect _CalculateFrame(BRect frame);
37 BTextControl* fNameTC;
38 BTextControl* fPassTC;
39 BCheckBox* fKeepUsingCB;
41 BButton* fOkB;
42 BButton* fCancelB;
44 bool fCancelled;
46 sem_id fExitSem;
49 #endif // AUTHENTICATION_PANEL_H