mainwindow.h 798 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. void updateProcessResult(int mask);
  26. int cli_argc;
  27. char** cli_argv;
  28. Client* q_client;
  29. QList<QString> m_events;
  30. private slots:
  31. void connectClient();
  32. void updateMessages(int t, const QString& s, StringVec v);
  33. };
  34. #endif // MAINWINDOW_H