1 #ifndef SERVERHANDLER_H 2 #define SERVERHANDLER_H 3 #include <QString> 4 #include "platformcore_global.h" 5 #include "platformserver.h" 6 #include "servermanager.h" 7 class PlatformServer; 8 class PLATMFORCORESHARED_EXPORT ServerHandler 9 { 10 public: 11 ServerHandler(); 12 virtual void handleData(const QByteArray & d); 13 virtual void handleError(const QString error); 14 void sendData(const QByteArray &d); 15 16 private: 17 void addService(PlatformServer *server); 18 PlatformServer *m_server; 19 friend class PlatformServer; 20 }; 21 22 #endif // SERVERHANDLER_H 23