diff options
author | TheCharlatan <seb.kung@gmail.com> | 2023-05-10 22:36:04 +0200 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2023-05-20 12:03:26 +0200 |
commit | 4452707edec91c7d7991f486dd41ef3edb4f7fbf (patch) | |
tree | 4f06c4ad2e74d53af4ed1bd5f2325a5602ba0ee6 /src/kernel/notifications_interface.h | |
parent | 84d71457e7250ab25c0a11d1ad1c7657197ffd90 (diff) |
kernel: Add progress method to notifications
This commit is part of the libbitcoinkernel project and seeks to remove
the ChainstateManager's and, more generally, the kernel library's
dependency on interface_ui with options methods in this and the
following few commits. By removing interface_ui from the kernel library,
its dependency on boost is reduced to just boost::multi_index.
Diffstat (limited to 'src/kernel/notifications_interface.h')
-rw-r--r-- | src/kernel/notifications_interface.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/notifications_interface.h b/src/kernel/notifications_interface.h index 7f88176d03..1d5643ca07 100644 --- a/src/kernel/notifications_interface.h +++ b/src/kernel/notifications_interface.h @@ -6,9 +6,11 @@ #define BITCOIN_KERNEL_NOTIFICATIONS_INTERFACE_H #include <cstdint> +#include <string> class CBlockIndex; enum class SynchronizationState; +struct bilingual_str; namespace kernel { @@ -23,6 +25,7 @@ public: virtual void blockTip(SynchronizationState state, CBlockIndex& index) {} virtual void headerTip(SynchronizationState state, int64_t height, int64_t timestamp, bool presync) {} + virtual void progress(const bilingual_str& title, int progress_percent, bool resume_possible) {} }; } // namespace kernel |