mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
new files
This commit is contained in:
parent
7921b5f82d
commit
58e803c3e7
10 changed files with 452 additions and 0 deletions
23
cockatrice/src/localclient.cpp
Normal file
23
cockatrice/src/localclient.cpp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#include "localclient.h"
|
||||
#include "localserverinterface.h"
|
||||
#include "protocol.h"
|
||||
|
||||
LocalClient::LocalClient(LocalServerInterface *_lsi, QObject *parent)
|
||||
: AbstractClient(parent), lsi(_lsi)
|
||||
{
|
||||
connect(lsi, SIGNAL(itemToClient(ProtocolItem *)), this, SLOT(itemFromServer(ProtocolItem *)));
|
||||
}
|
||||
|
||||
LocalClient::~LocalClient()
|
||||
{
|
||||
}
|
||||
|
||||
void LocalClient::sendCommandContainer(CommandContainer *cont)
|
||||
{
|
||||
lsi->itemFromClient(cont);
|
||||
}
|
||||
|
||||
void LocalClient::itemFromServer(ProtocolItem *item)
|
||||
{
|
||||
processProtocolItem(item);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue