#ifndef TAB_ADMIN_H
#define TAB_ADMIN_H

#include "tab.h"

class AbstractClient;

class QGroupBox;
class QPushButton;

class TabAdmin : public Tab {
	Q_OBJECT
private:
	bool locked;
	AbstractClient *client;
	QPushButton *updateServerMessageButton;
	QGroupBox *adminGroupBox;
	QPushButton *unlockButton, *lockButton;
private slots:
	void actUpdateServerMessage();
	
	void actUnlock();
	void actLock();
public:
	TabAdmin(TabSupervisor *_tabSupervisor, AbstractClient *_client, QWidget *parent = 0);
	void retranslateUi();
	QString getTabText() const { return tr("Administration"); }
	bool getLocked() const { return locked; }
};

#endif