mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 00:54:53 -07:00
new files
This commit is contained in:
parent
7921b5f82d
commit
58e803c3e7
10 changed files with 452 additions and 0 deletions
31
cockatrice/src/localserverinterface.h
Normal file
31
cockatrice/src/localserverinterface.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef LOCALSERVERINTERFACE_H
|
||||
#define LOCALSERVERINTERFACE_H
|
||||
|
||||
#include "server_protocolhandler.h"
|
||||
|
||||
class LocalServer;
|
||||
|
||||
class LocalServerInterface : public Server_ProtocolHandler
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
DeckList *getDeckFromDatabase(int /*deckId*/) { return 0; }
|
||||
ResponseCode cmdDeckList(Command_DeckList * /*cmd*/, CommandContainer * /*cont*/) { return RespFunctionNotAllowed; }
|
||||
ResponseCode cmdDeckNewDir(Command_DeckNewDir * /*cmd*/, CommandContainer * /*cont*/) { return RespFunctionNotAllowed; }
|
||||
ResponseCode cmdDeckDelDir(Command_DeckDelDir * /*cmd*/, CommandContainer * /*cont*/) { return RespFunctionNotAllowed; }
|
||||
ResponseCode cmdDeckDel(Command_DeckDel * /*cmd*/, CommandContainer * /*cont*/) { return RespFunctionNotAllowed; }
|
||||
ResponseCode cmdDeckUpload(Command_DeckUpload * /*cmd*/, CommandContainer * /*cont*/) { return RespFunctionNotAllowed; }
|
||||
ResponseCode cmdDeckDownload(Command_DeckDownload * /*cmd*/, CommandContainer * /*cont*/) { return RespFunctionNotAllowed; }
|
||||
public:
|
||||
LocalServerInterface(LocalServer *_server);
|
||||
~LocalServerInterface();
|
||||
|
||||
bool sendProtocolItem(ProtocolItem *item, bool deleteItem = true);
|
||||
|
||||
signals:
|
||||
void itemToClient(ProtocolItem *item);
|
||||
public slots:
|
||||
void itemFromClient(ProtocolItem *item);
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue