CommClient.h 648 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef COMMCLIENT_H
  2. #define COMMCLIENT_H
  3. #include <QObject>
  4. class OpenMSXConnection;
  5. class Command;
  6. class QString;
  7. class CommClient : public QObject
  8. {
  9. Q_OBJECT
  10. public:
  11. static CommClient& instance();
  12. void sendCommand(Command* command);
  13. public slots:
  14. void connectToOpenMSX(OpenMSXConnection* conn);
  15. void closeConnection();
  16. signals:
  17. void connectionReady();
  18. void connectionTerminated();
  19. void logParsed(const QString& level, const QString& message);
  20. void updateParsed(const QString& type, const QString& name, const QString& message);
  21. private:
  22. CommClient();
  23. ~CommClient();
  24. OpenMSXConnection* connection;
  25. };
  26. #endif // COMMCLIENT_H