38 lines
726 B
C++
38 lines
726 B
C++
#ifndef UI_SETTINGS_USERS_HPP
|
|
#define UI_SETTINGS_USERS_HPP
|
|
|
|
#include <Wt/WStackedWidget>
|
|
#include <Wt/WContainerWidget>
|
|
#include <Wt/WTable>
|
|
|
|
#include "common/SessionData.hpp"
|
|
|
|
namespace UserInterface {
|
|
namespace Settings {
|
|
|
|
class Users : public Wt::WContainerWidget
|
|
{
|
|
public:
|
|
Users(SessionData& sessioNData, Wt::WContainerWidget *parent = 0);
|
|
|
|
void refresh();
|
|
|
|
private:
|
|
|
|
void handleUserFormCompleted(bool changed);
|
|
|
|
void handleDelUser(Wt::WString loginNameIdentity, std::string id);
|
|
void handleCreateUser(std::string id); // set the id in order to edit the user
|
|
|
|
SessionData& _sessionData;
|
|
|
|
Wt::WStackedWidget* _stack;
|
|
Wt::WTable* _table;
|
|
};
|
|
|
|
} // namespace UserInterface
|
|
} // namespace Settings
|
|
|
|
#endif
|
|
|