From 2e4b02a9410fc51dc0c97bd4a9fd0b8c45bda27f Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 12 Oct 2008 01:39:07 +0000 Subject: [FIX] Still figuring out things for signet [ADD] Files for signet git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@274 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- signet/ConnectionHandler.cpp | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 signet/ConnectionHandler.cpp (limited to 'signet/ConnectionHandler.cpp') diff --git a/signet/ConnectionHandler.cpp b/signet/ConnectionHandler.cpp new file mode 100644 index 00000000..638ddc0d --- /dev/null +++ b/signet/ConnectionHandler.cpp @@ -0,0 +1,42 @@ +/* + * Copyright 2008 Ben Boeckel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +// Header include +#include "ConnectionHandler.h" + +// Signet includes +#include "Client.h" + +Signet::ConnectionHandler::ConnectionHandler(QObject* parent) : + QObject(parent) +{ +} + +void Signet::ConnectionHandler::addClient(Client* socket) +{ + // TODO: Add the client +} + +void Signet::ConnectionHandler::removeClient(Client* socket) +{ + // TODO: Remove the client +} + +void Signet::ConnectionHandler::sendData(Client* client, const QByteArray& data) +{ + // TODO: Send data to the client +} -- cgit