[bookmarks] add 'PrepareAllFilesForSharing' method

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
Kiryl Kaveryn 2024-02-29 16:23:11 +04:00 committed by Roman Tsisyk
parent bb68a66ffa
commit 174fd82ae3
2 changed files with 8 additions and 0 deletions

View file

@ -2712,6 +2712,13 @@ void BookmarkManager::PrepareFileForSharing(kml::GroupIdCollection && categories
}
}
void BookmarkManager::PrepareAllFilesForSharing(SharingHandler && handler)
{
CHECK_THREAD_CHECKER(m_threadChecker, ());
ASSERT(handler, ());
PrepareFileForSharing(decltype(m_bmGroupsIdList){m_bmGroupsIdList}, std::move(handler));
}
bool BookmarkManager::IsCategoryEmpty(kml::MarkGroupId categoryId) const
{
CHECK_THREAD_CHECKER(m_threadChecker, ());

View file

@ -341,6 +341,7 @@ public:
using SharingHandler = platform::SafeCallback<void(SharingResult const & result)>;
void PrepareFileForSharing(kml::GroupIdCollection && categoriesIds, SharingHandler && handler);
void PrepareAllFilesForSharing(SharingHandler && handler);
bool IsCategoryEmpty(kml::MarkGroupId categoryId) const;