summaryrefslogtreecommitdiffstats
path: root/src/webclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webclient.cpp')
-rw-r--r--src/webclient.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/webclient.cpp b/src/webclient.cpp
index 517d971..3a5320d 100644
--- a/src/webclient.cpp
+++ b/src/webclient.cpp
@@ -16,6 +16,7 @@ void WebClient::setPort(quint16 port)
{
delete server;
server = new Server(port);
+
connect(server, SIGNAL(sessionBegin(Session *)),
this, SLOT(newSession_internal(Session *)));
@@ -31,6 +32,16 @@ void WebClient::setRootWidget(QWidget *widget)
globalRootWidget = widget;
}
+void WebClient::setActiveSessionLimit(int sessionLimit)
+{
+ this->server->activeSessionLimit = sessionLimit;
+}
+
+void WebClient::setActiveSessionLimitHtml(const QString &html)
+{
+ this->server->activeSessionLimitHtml = html.toUtf8();
+}
+
void WebClient::newSession_internal(Session *session)
{
QWidget *rootWidget = 0;