mainwindow.h 758 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include <QString>
  5. #include <QList>
  6. #include <QListView>
  7. #include <QListWidgetItem>
  8. #include <client.hpp>
  9. #include <headers/ktextedit.hpp>
  10. #include <argdialog.h>
  11. namespace Ui {
  12. class MainWindow;
  13. }
  14. class MainWindow : public QMainWindow
  15. {
  16. Q_OBJECT
  17. public:
  18. explicit MainWindow(int argc = 0, char** argv = nullptr, QWidget* parent = nullptr);
  19. ~MainWindow();
  20. private:
  21. Ui::MainWindow *ui;
  22. ArgDialog *arg_ui;
  23. void connectUi();
  24. void runApp();
  25. int cli_argc;
  26. char** cli_argv;
  27. Client* q_client;
  28. QList<QString> m_events;
  29. private slots:
  30. void connectClient();
  31. void updateMessages(int t, const QString& s, StringVec v);
  32. };
  33. #endif // MAINWINDOW_H