QGuiUserAdd.hh

Go to the documentation of this file.
00001 
00002 #ifndef _Q_GUI_USER_ADD_HH_
00003 #define _Q_GUI_USER_ADD_HH_
00004 
00005 #include "QApolloDbDefs.hh"
00006 
00007 #include <TGFrame.h>
00008 
00009 #include <map>
00010 #include <string>
00011 
00012 class TGTextEntry;
00013 class TGTextButton;
00014 class TGComboBox;
00015 
00021 class QGuiUserAdd: public TGTransientFrame
00022 {
00023 public:
00031    QGuiUserAdd(const TGWindow *main,
00032                std::string& userName,
00033                std::string& password,
00034                std::string& realName,
00035                QApolloUserLevel& level);
00036 
00038    virtual ~QGuiUserAdd();
00039 
00041    void HandleCancel();
00042 
00044    void HandleOk();
00045 
00047    void CloseWindow(); /*SIGNAL*/
00048 
00049 private:
00050    std::string& fUser;       
00051    std::string& fPassword;   
00052    std::string& fRealName;   
00053    QApolloUserLevel& fLevel; 
00056    QApolloUserLevel fMinLevel;
00057 
00058    TGTextEntry *fUserEntry;
00059    TGTextEntry *fPasswordEntry;
00060    TGTextEntry *fPasswordConfirmEntry;
00061    TGTextEntry *fRealNameEntry;
00062    TGComboBox *fLevelEntry;
00063    TGTextButton *fCancelButton;
00064    TGTextButton *fOkButton;
00065 
00070    std::map<int, QApolloUserLevel> fAuthIdToLevel;
00071 
00073    void CreateFrames();
00075    void MakeConnections();
00076 
00084    Bool_t Authenticate();
00085 
00087    void ResetFields();
00088 
00089    ClassDef(QGuiUserAdd, 0)
00090 };
00091 #endif

Generated on Tue Nov 16 10:49:55 2010 for CUORE Software by  doxygen 1.5.6