123456789101112131415161718192021222324252627282930313233343536 |
- //
- // Created by robin on 10/1/17.
- //
-
- #ifndef MIFARE_TOOLS_MAINWINDOW_H
- #define MIFARE_TOOLS_MAINWINDOW_H
-
-
- #include <QtWidgets/QMainWindow>
- #include <Business/LibNfcBusiness.h>
-
- #include "ui_MainWindow.h"
-
- class MainWindow : public QMainWindow
- {
- Q_OBJECT
- public:
- explicit MainWindow(QWidget* parent = nullptr);
- ~MainWindow() override = default;
-
- bool initLibNfc();
-
- void refreshReaders();
-
- template<typename T> void showError(Result<T> result);
-
- private:
- QScopedPointer<Ui_MainWindow> m_pUi;
-
- QSharedPointer<LibNfcBusiness> m_pLibNfc;
-
- std::vector<std::shared_ptr<NfcDeviceBusiness>> m_devices;
- };
-
-
- #endif //MIFARE_TOOLS_MAINWINDOW_H
|