QGuiAuthWindow.hh
Go to the documentation of this file.00001
00002 #ifndef _Q_GUI_AUTH_WINDOW_HH_
00003 #define _Q_GUI_AUTH_WINDOW_HH_
00004
00005 #include <TGFrame.h>
00006
00007 #include <set>
00008 #include <string>
00009 #include <utility>
00010
00011 class QGuiComboBox;
00012 class TGTextEntry;
00013 class TGTextButton;
00014
00020 class QGuiAuthWindow: public TGTransientFrame
00021 {
00022 public:
00028 QGuiAuthWindow(const TGWindow *main, Int_t w, Int_t h,
00029 const std::set<std::string>& users,
00030 std::pair<std::string, std::string>& authInfo);
00031
00033 virtual ~QGuiAuthWindow();
00034
00036 void HandleCancel();
00037
00039 void HandleOk();
00040
00042 void CloseWindow();
00043
00044 private:
00045 std::set<std::string> fUsers;
00046 std::pair<std::string, std::string>& fAuthInfo;
00048 QGuiComboBox *fUserEntry;
00049 TGTextEntry *fPasswordEntry;
00050 TGTextButton *fCancelButton;
00051 TGTextButton *fOkButton;
00052
00054 void CreateFrames();
00056 void MakeConnections();
00057
00058 ClassDef(QGuiAuthWindow, 0)
00059 };
00060 #endif