1 /* 2 * Copyright 2003-2005, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Michael Phipps 7 * J�r�me Duval, jerome.duval@free.fr 8 */ 9 #ifndef PASSWORDWINDOW_H 10 #define PASSWORDWINDOW_H 11 12 #include <Button.h> 13 #include <Constants.h> 14 #include <RadioButton.h> 15 #include <String.h> 16 #include <TextControl.h> 17 #include <Window.h> 18 #include "ScreenSaverPrefs.h" 19 20 class PasswordWindow : public BWindow 21 { 22 public: 23 PasswordWindow(ScreenSaverPrefs &prefs); 24 void Setup(); 25 void Update(); 26 virtual void MessageReceived(BMessage *message); 27 28 private: 29 BRadioButton *fUseNetwork,*fUseCustom; 30 BTextControl *fPassword,*fConfirm; 31 BButton *fCancel,*fDone; 32 BString fThePassword; 33 ScreenSaverPrefs &fPrefs; 34 35 }; 36 37 #endif // PASSWORDWINDOW_H 38 39