mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
initial commit for chat channels
This commit is contained in:
parent
0d84de2384
commit
947cd1736c
23 changed files with 408 additions and 66 deletions
|
|
@ -22,6 +22,7 @@
|
|||
#include "serversocket.h"
|
||||
#include "counter.h"
|
||||
#include "rng_qt.h"
|
||||
#include "chatchannel.h"
|
||||
#include <QtSql>
|
||||
#include <QSettings>
|
||||
|
||||
|
|
@ -35,6 +36,9 @@ Server::Server(QObject *parent)
|
|||
QString dbType = settings->value("database/type").toString();
|
||||
if (dbType == "mysql")
|
||||
openDatabase();
|
||||
|
||||
chatChannelList << new ChatChannel("channel1", "testchannel 1");
|
||||
chatChannelList << new ChatChannel("channel2", "testchannel 2");
|
||||
}
|
||||
|
||||
Server::~Server()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue