1 // This file is part of Desktop App Toolkit, 2 // a set of libraries for developing nice desktop applications. 3 // 4 // For license and copyright information please follow this link: 5 // https://github.com/desktop-app/legal/blob/master/LEGAL 6 // 7 #pragma once 8 9 #include "storage/cache/storage_cache_types.h" 10 #include "base/binary_guard.h" 11 12 namespace Storage { 13 namespace Cache { 14 namespace details { 15 16 class CleanerObject; 17 18 class Cleaner { 19 public: 20 Cleaner( 21 const QString &base, 22 base::binary_guard &&guard, 23 FnMut<void(Error)> done); 24 25 ~Cleaner(); 26 27 private: 28 using Implementation = details::CleanerObject; 29 crl::object_on_queue<Implementation> _wrapped; 30 31 }; 32 33 } // namespace details 34 } // namespace Cache 35 } // namespace Storage 36