diff options
| author | Rusty Wagner <rusty@vector35.com> | 2016-08-25 20:42:33 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2016-08-25 20:42:33 -0400 |
| commit | e878199be4a74c880acd5d38c33965b47d7630d0 (patch) | |
| tree | e75461ca2e6404dc62d1584eef5a870efc682114 /binaryview.cpp | |
| parent | c3693b77c1fa9c1b5c45483045eeab929cf7bd16 (diff) | |
Adding APIs for database save/load progress and constant references
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index cff3ed10..14393930 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -518,12 +518,25 @@ bool BinaryView::CreateDatabase(const string& path) } +bool BinaryView::CreateDatabase(const string& path, + const function<void(size_t progress, size_t total)>& progressCallback) +{ + return m_file->CreateDatabase(path, this, progressCallback); +} + + bool BinaryView::SaveAutoSnapshot() { return m_file->SaveAutoSnapshot(this); } +bool BinaryView::SaveAutoSnapshot(const function<void(size_t progress, size_t total)>& progressCallback) +{ + return m_file->SaveAutoSnapshot(this, progressCallback); +} + + void BinaryView::BeginUndoActions() { m_file->BeginUndoActions(); |
