// // Created by robin on 10/1/17. // #ifndef MIFARE_TOOLS_LIBNFCOPERATION_H #define MIFARE_TOOLS_LIBNFCOPERATION_H #include #include #include class LibNfcOperation : public QThread { Q_OBJECT public: template static void runOperation(QSharedPointer libNfc, std::function(QSharedPointer)> operation, std::function)> callback); protected: void run() override; //signals: // void operationFinished(Result result); private: explicit LibNfcOperation(QSharedPointer& libNfc, std::function)> operation); QSharedPointer m_pLibNfc; std::function)> m_operation; }; #endif //MIFARE_TOOLS_LIBNFCOPERATION_H