Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.h
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | #endif | ||||
/// parameter interaction/setup based on rules | /// parameter interaction/setup based on rules | ||||
void parameterSetup(); | void parameterSetup(); | ||||
/// Create options model | /// Create options model | ||||
void createOptionsModel(bool resetSettings); | void createOptionsModel(bool resetSettings); | ||||
/// Create main window | /// Create main window | ||||
void createWindow(const Config *, const NetworkStyle *networkStyle); | void createWindow(const Config *, const NetworkStyle *networkStyle); | ||||
/// Create splash screen | /// Create splash screen | ||||
void createSplashScreen(const NetworkStyle *networkStyle); | void createSplashScreen(const NetworkStyle *networkStyle); | ||||
/// Basic initialization, before starting initialization/shutdown thread. | |||||
/// Return true on success. | |||||
bool baseInitialize(Config &config); | |||||
/// Request core initialization | /// Request core initialization | ||||
void requestInitialize(Config &config, RPCServer &rpcServer, | void requestInitialize(Config &config, RPCServer &rpcServer, | ||||
HTTPRPCRequestProcessor &httpRPCRequestProcessor); | HTTPRPCRequestProcessor &httpRPCRequestProcessor); | ||||
/// Request core shutdown | /// Request core shutdown | ||||
void requestShutdown(Config &config); | void requestShutdown(Config &config); | ||||
/// Get process return value | /// Get process return value | ||||
Show All 15 Lines | public Q_SLOTS: | ||||
void removeWallet(); | 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); | |||||
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; | ||||
std::vector<WalletModel *> m_wallet_models; | std::vector<WalletModel *> m_wallet_models; | ||||
std::unique_ptr<interfaces::Handler> m_handler_load_wallet; | 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[]); | |||||
#endif // BITCOIN_QT_BITCOIN_H | #endif // BITCOIN_QT_BITCOIN_H |