Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.h
Show All 17 Lines | |||||
class ClientModel; | class ClientModel; | ||||
class Config; | class Config; | ||||
class HTTPRPCRequestProcessor; | class HTTPRPCRequestProcessor; | ||||
class NetworkStyle; | class NetworkStyle; | ||||
class OptionsModel; | class OptionsModel; | ||||
class PaymentServer; | class PaymentServer; | ||||
class PlatformStyle; | class PlatformStyle; | ||||
class RPCServer; | class RPCServer; | ||||
class WalletController; | |||||
class WalletModel; | class WalletModel; | ||||
namespace interfaces { | namespace interfaces { | ||||
class Handler; | class Handler; | ||||
class Node; | class Node; | ||||
} // namespace interfaces | } // namespace interfaces | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | #endif | ||||
void setupPlatformStyle(); | void setupPlatformStyle(); | ||||
public Q_SLOTS: | public Q_SLOTS: | ||||
void initializeResult(bool success); | void initializeResult(bool success); | ||||
void shutdownResult(); | void shutdownResult(); | ||||
/// Handle runaway exceptions. Shows a message box with the problem and | /// Handle runaway exceptions. Shows a message box with the problem and | ||||
/// quits the program. | /// quits the program. | ||||
void handleRunawayException(const QString &message); | void handleRunawayException(const QString &message); | ||||
void addWallet(WalletModel *walletModel); | |||||
void removeWallet(); | |||||
Q_SIGNALS: | Q_SIGNALS: | ||||
void requestedInitialize(Config *config, RPCServer *rpcServer, | void requestedInitialize(Config *config, RPCServer *rpcServer, | ||||
HTTPRPCRequestProcessor *httpRPCRequestProcessor); | HTTPRPCRequestProcessor *httpRPCRequestProcessor); | ||||
void requestedShutdown(); | void requestedShutdown(); | ||||
void stopThread(); | void stopThread(); | ||||
void splashFinished(QWidget *window); | void splashFinished(QWidget *window); | ||||
void windowShown(BitcoinGUI *window); | void windowShown(BitcoinGUI *window); | ||||
private: | private: | ||||
QThread *coreThread; | QThread *coreThread; | ||||
interfaces::Node &m_node; | interfaces::Node &m_node; | ||||
OptionsModel *optionsModel; | OptionsModel *optionsModel; | ||||
ClientModel *clientModel; | ClientModel *clientModel; | ||||
BitcoinGUI *window; | BitcoinGUI *window; | ||||
QTimer *pollShutdownTimer; | QTimer *pollShutdownTimer; | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
PaymentServer *paymentServer; | PaymentServer *paymentServer{nullptr}; | ||||
std::vector<WalletModel *> m_wallet_models; | WalletController *m_wallet_controller{nullptr}; | ||||
std::unique_ptr<interfaces::Handler> m_handler_load_wallet; | |||||
#endif | #endif | ||||
int returnValue; | int returnValue; | ||||
const PlatformStyle *platformStyle; | const PlatformStyle *platformStyle; | ||||
std::unique_ptr<QWidget> shutdownWindow; | std::unique_ptr<QWidget> shutdownWindow; | ||||
void startThread(); | void startThread(); | ||||
}; | }; | ||||
int GuiMain(int argc, char *argv[]); | int GuiMain(int argc, char *argv[]); | ||||
#endif // BITCOIN_QT_BITCOIN_H | #endif // BITCOIN_QT_BITCOIN_H |