MidlePayQml 0.0.4
MiddlePay QML module
qpow.hpp
1 #pragma once
7 #include<QByteArray>
8 #include<QObject>
9 #ifdef USE_THREADS
10 #include<thread>
11 #include<mutex>
12 #endif
13 
14 #include <QtCore/QtGlobal>
15 
16 #if defined(WINDOWS_QPOW)
17 # define QPOW_EXPORT Q_DECL_EXPORT
18 #else
19 #define QPOW_EXPORT Q_DECL_IMPORT
20 #endif
21 namespace qiota{
22 
23  namespace qpow {
24 
25 
26  class QPOW_EXPORT nonceFinder : public QObject
27  {
28  Q_OBJECT
29  public:
31 
32  void calculate(const QByteArray &Message);
33  void set_Min_Pow_Score(quint32 Min_PoW_Score_m){Min_PoW_Score_=Min_PoW_Score_m;};
34 
35 
36  signals:
37  void nonce_found(quint64 s);
38  void nonce_not_found(void);
39 
40  private:
41  quint64 thenonce,NThreads;
42  quint32 Min_PoW_Score_;
43 
44  };
45 
46 
47  }
48 }
Definition: qpow.hpp:27
void set_Min_Pow_Score(quint32 Min_PoW_Score_m)
Definition: qpow.hpp:33
void calculate(const QByteArray &Message)
void nonce_found(quint64 s)
Definition: qbigint.hpp:7