Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
initexecutor.h
Go to the documentation of this file.
1// Copyright (c) 2014-present The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#ifndef BITCOIN_QT_INITEXECUTOR_H
6#define BITCOIN_QT_INITEXECUTOR_H
7
8#include <interfaces/node.h>
9
10#include <exception>
11
12#include <QObject>
13#include <QThread>
14
15QT_BEGIN_NAMESPACE
16class QString;
17QT_END_NAMESPACE
18
22class InitExecutor : public QObject
23{
24 Q_OBJECT
25public:
28
29public Q_SLOTS:
30 void initialize();
31 void shutdown();
32
33Q_SIGNALS:
36 void runawayException(const QString& message);
37
38private:
40 void handleRunawayException(const std::exception* e);
41
43 QObject m_context;
44 QThread m_thread;
45};
46
47#endif // BITCOIN_QT_INITEXECUTOR_H
void handleRunawayException(const std::exception *e)
Pass fatal exception message to UI thread.
void initializeResult(bool success, interfaces::BlockAndHeaderTipInfo tip_info)
QObject m_context
void runawayException(const QString &message)
void shutdownResult()
InitExecutor(interfaces::Node &node)
interfaces::Node & m_node
QThread m_thread
Top-level interface for a bitcoin node (bitcoind process).
Definition node.h:70
Block and header tip information.
Definition node.h:50