You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MainWindow.h 669B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // Created by robin on 10/1/17.
  3. //
  4. #ifndef MIFARE_TOOLS_MAINWINDOW_H
  5. #define MIFARE_TOOLS_MAINWINDOW_H
  6. #include <QtWidgets/QMainWindow>
  7. #include <Business/LibNfcBusiness.h>
  8. #include "ui_MainWindow.h"
  9. class MainWindow : public QMainWindow
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit MainWindow(QWidget* parent = nullptr);
  14. ~MainWindow() override = default;
  15. bool initLibNfc();
  16. void refreshReaders();
  17. template<typename T> void showError(Result<T> result);
  18. private:
  19. QScopedPointer<Ui_MainWindow> m_pUi;
  20. QSharedPointer<LibNfcBusiness> m_pLibNfc;
  21. std::vector<std::shared_ptr<NfcDeviceBusiness>> m_devices;
  22. };
  23. #endif //MIFARE_TOOLS_MAINWINDOW_H