Changeset View
Changeset View
Standalone View
Standalone View
src/ui_interface.h
// Copyright (c) 2010 Satoshi Nakamoto | // Copyright (c) 2010 Satoshi Nakamoto | ||||
// Copyright (c) 2012-2016 The Bitcoin Core developers | // Copyright (c) 2012-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_UI_INTERFACE_H | #ifndef BITCOIN_UI_INTERFACE_H | ||||
#define BITCOIN_UI_INTERFACE_H | #define BITCOIN_UI_INTERFACE_H | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <functional> | #include <functional> | ||||
#include <memory> | #include <memory> | ||||
#include <string> | #include <string> | ||||
class CWallet; | |||||
class CBlockIndex; | class CBlockIndex; | ||||
namespace boost { | namespace boost { | ||||
namespace signals2 { | namespace signals2 { | ||||
class connection; | class connection; | ||||
} | } | ||||
} // namespace boost | } // namespace boost | ||||
namespace interfaces { | |||||
class Wallet; | |||||
} // namespace interfaces | |||||
/** General change type (added, updated, removed). */ | /** General change type (added, updated, removed). */ | ||||
enum ChangeType { CT_NEW, CT_UPDATED, CT_DELETED }; | enum ChangeType { CT_NEW, CT_UPDATED, CT_DELETED }; | ||||
/** Signals for UI communication. */ | /** Signals for UI communication. */ | ||||
class CClientUIInterface { | class CClientUIInterface { | ||||
public: | public: | ||||
/** Flags for CClientUIInterface::ThreadSafeMessageBox */ | /** Flags for CClientUIInterface::ThreadSafeMessageBox */ | ||||
enum MessageBoxFlags { | enum MessageBoxFlags { | ||||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | ADD_SIGNALS_DECL_WRAPPER(NotifyNetworkActiveChanged, void, | ||||
bool networkActive); | bool networkActive); | ||||
/** | /** | ||||
* Status bar alerts changed. | * Status bar alerts changed. | ||||
*/ | */ | ||||
ADD_SIGNALS_DECL_WRAPPER(NotifyAlertChanged, void, ); | ADD_SIGNALS_DECL_WRAPPER(NotifyAlertChanged, void, ); | ||||
/** A wallet has been loaded. */ | /** A wallet has been loaded. */ | ||||
ADD_SIGNALS_DECL_WRAPPER(LoadWallet, void, std::shared_ptr<CWallet> wallet); | ADD_SIGNALS_DECL_WRAPPER(LoadWallet, void, | ||||
std::unique_ptr<interfaces::Wallet> &wallet); | |||||
/** | /** | ||||
* Show progress e.g. for verifychain. | * Show progress e.g. for verifychain. | ||||
* resume_possible indicates shutting down now will result in the current | * resume_possible indicates shutting down now will result in the current | ||||
* progress action resuming upon restart. | * progress action resuming upon restart. | ||||
*/ | */ | ||||
ADD_SIGNALS_DECL_WRAPPER(ShowProgress, void, const std::string &title, | ADD_SIGNALS_DECL_WRAPPER(ShowProgress, void, const std::string &title, | ||||
int nProgress, bool resume_possible); | int nProgress, bool resume_possible); | ||||
Show All 25 Lines |