1 #ifndef LOCALSERVERINTERFACE_H 2 #define LOCALSERVERINTERFACE_H 3 4 #include "server_protocolhandler.h" 5 6 class LocalServer; 7 8 class LocalServerInterface : public Server_ProtocolHandler 9 { 10 Q_OBJECT 11 public: 12 LocalServerInterface(LocalServer *_server, Server_DatabaseInterface *_databaseInterface); 13 ~LocalServerInterface(); 14 getAddress()15 QString getAddress() const 16 { 17 return QString(); 18 } getConnectionType()19 QString getConnectionType() const 20 { 21 return "local"; 22 }; 23 void transmitProtocolItem(const ServerMessage &item); 24 signals: 25 void itemToClient(const ServerMessage &item); 26 public slots: 27 void itemFromClient(const CommandContainer &item); 28 }; 29 30 #endif 31