Fabcoin Core  0.16.2
P2P Digital Currency
eventlog.h
Go to the documentation of this file.
1 #ifndef EVENTLOG_H
2 #define EVENTLOG_H
3 #include <string>
4 #include <vector>
5 #include <QMap>
6 #include <QVariant>
7 
8 class ExecRPCCommand;
9 
10 class EventLog
11 {
12 public:
16  EventLog();
17 
21  ~EventLog();
22 
32  bool searchTokenTx(int64_t fromBlock, int64_t toBlock, std::string strContractAddress, std::string strSenderAddress, QVariant& result);
33 
43  bool search(int64_t fromBlock, int64_t toBlock, const std::vector<std::string> addresses, const std::vector<std::string> topics, QVariant& result);
44 
45 private:
46  // Set command data
47  void setStartBlock(int64_t fromBlock);
48  void setEndBlock(int64_t toBlock);
49  void setAddresses(const std::vector<std::string> addresses);
50  void setTopics(const std::vector<std::string> topics);
51 
53  QMap<QString, QString> m_lstParams;
54 };
55 
56 #endif // EVENTLOG_H
void setEndBlock(int64_t toBlock)
Definition: eventlog.cpp:94
void setTopics(const std::vector< std::string > topics)
Definition: eventlog.cpp:104
EventLog()
EventLog Constructor.
Definition: eventlog.cpp:36
~EventLog()
~EventLog Destructor
Definition: eventlog.cpp:49
bool searchTokenTx(int64_t fromBlock, int64_t toBlock, std::string strContractAddress, std::string strSenderAddress, QVariant &result)
searchTokenTx Search the event log for token transactions
Definition: eventlog.cpp:58
ExecRPCCommand * m_RPCCommand
Definition: eventlog.h:52
QMap< QString, QString > m_lstParams
Definition: eventlog.h:53
The ExecRPCCommand class Execution of RPC command line.
bool search(int64_t fromBlock, int64_t toBlock, const std::vector< std::string > addresses, const std::vector< std::string > topics, QVariant &result)
search Search for log events
Definition: eventlog.cpp:75
void setAddresses(const std::vector< std::string > addresses)
Definition: eventlog.cpp:99
void setStartBlock(int64_t fromBlock)
Definition: eventlog.cpp:89