diff options
| author | Glenn Smith <glenn@vector35.com> | 2025-04-24 14:46:37 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2025-04-25 13:43:01 -0400 |
| commit | 9262278979709181414664053523657355762707 (patch) | |
| tree | c472e0620b1fdfe3b3c9fd26c7cbf41425b27740 /project.cpp | |
| parent | 4aac12b0e429fedb02a645e5eb82ca2d88902e25 (diff) | |
std::function<bool(size_t,size_t)> ==> ProgressFunction
Diffstat (limited to 'project.cpp')
| -rw-r--r-- | project.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/project.cpp b/project.cpp index b023635b..da4ee88d 100644 --- a/project.cpp +++ b/project.cpp @@ -338,7 +338,7 @@ void Project::RemoveMetadata(const std::string& key) Ref<ProjectFolder> Project::CreateFolderFromPath(const std::string& path, Ref<ProjectFolder> parent, const std::string& description, - const std::function<bool(size_t progress, size_t total)>& progressCallback) + const ProgressFunction& progressCallback) { ProgressContext cb; cb.callback = progressCallback; @@ -399,7 +399,7 @@ void Project::PushFolder(Ref<ProjectFolder> folder) } -bool Project::DeleteFolder(Ref<ProjectFolder> folder, const std::function<bool(size_t progress, size_t total)>& progressCallback) +bool Project::DeleteFolder(Ref<ProjectFolder> folder, const ProgressFunction& progressCallback) { ProgressContext cb; cb.callback = progressCallback; @@ -407,7 +407,7 @@ bool Project::DeleteFolder(Ref<ProjectFolder> folder, const std::function<bool(s } -Ref<ProjectFile> Project::CreateFileFromPath(const std::string& path, Ref<ProjectFolder> folder, const std::string& name, const std::string& description, const std::function<bool(size_t progress, size_t total)>& progressCallback) +Ref<ProjectFile> Project::CreateFileFromPath(const std::string& path, Ref<ProjectFolder> folder, const std::string& name, const std::string& description, const ProgressFunction& progressCallback) { ProgressContext cb; cb.callback = progressCallback; @@ -418,7 +418,7 @@ Ref<ProjectFile> Project::CreateFileFromPath(const std::string& path, Ref<Projec } -Ref<ProjectFile> Project::CreateFileFromPathUnsafe(const std::string& path, Ref<ProjectFolder> folder, const std::string& name, const std::string& description, const std::string& id, int64_t creationTimestamp, const std::function<bool(size_t progress, size_t total)>& progressCallback) +Ref<ProjectFile> Project::CreateFileFromPathUnsafe(const std::string& path, Ref<ProjectFolder> folder, const std::string& name, const std::string& description, const std::string& id, int64_t creationTimestamp, const ProgressFunction& progressCallback) { ProgressContext cb; cb.callback = progressCallback; @@ -429,7 +429,7 @@ Ref<ProjectFile> Project::CreateFileFromPathUnsafe(const std::string& path, Ref< } -Ref<ProjectFile> Project::CreateFile_(const std::vector<uint8_t>& contents, Ref<ProjectFolder> folder, const std::string& name, const std::string& description, const std::function<bool(size_t progress, size_t total)>& progressCallback) +Ref<ProjectFile> Project::CreateFile_(const std::vector<uint8_t>& contents, Ref<ProjectFolder> folder, const std::string& name, const std::string& description, const ProgressFunction& progressCallback) { ProgressContext cb; cb.callback = progressCallback; @@ -440,7 +440,7 @@ Ref<ProjectFile> Project::CreateFile_(const std::vector<uint8_t>& contents, Ref< } -Ref<ProjectFile> Project::CreateFileUnsafe(const std::vector<uint8_t>& contents, Ref<ProjectFolder> folder, const std::string& name, const std::string& description, const std::string& id, int64_t creationTimestamp, const std::function<bool(size_t progress, size_t total)>& progressCallback) +Ref<ProjectFile> Project::CreateFileUnsafe(const std::vector<uint8_t>& contents, Ref<ProjectFolder> folder, const std::string& name, const std::string& description, const std::string& id, int64_t creationTimestamp, const ProgressFunction& progressCallback) { ProgressContext cb; cb.callback = progressCallback; @@ -691,7 +691,7 @@ void ProjectFolder::SetParent(Ref<ProjectFolder> parent) } -bool ProjectFolder::Export(const std::string& destination, const std::function<bool(size_t progress, size_t total)>& progressCallback) const +bool ProjectFolder::Export(const std::string& destination, const ProgressFunction& progressCallback) const { ProgressContext cb; cb.callback = progressCallback; |
