23 appName_{std::move(appName)}, capacity_{capacity} {}
27 MRVIEWER_API
void storeFile(
const std::filesystem::path& file )
const;
36 MRVIEWER_API boost::signals2::connection
onUpdate(
const boost::function<
void(
const FileNamesStack& files )> & slot, boost::signals2::connect_position
position = boost::signals2::at_back );
41 boost::signals2::signal<void(
const FileNamesStack& files )> updateSignal_;
Definition MRRecentFilesStore.h:17
MRVIEWER_API boost::signals2::connection onUpdate(const boost::function< void(const FileNamesStack &files)> &slot, boost::signals2::connect_position position=boost::signals2::at_back)
Connects given slot to receive signal on every update of this store.
int getCapacity() const
Returns maximum size of recently opened files stack.
Definition MRRecentFilesStore.h:33
RecentFilesStore(std::string appName, int capacity=10)
Definition MRRecentFilesStore.h:22
MRVIEWER_API std::vector< std::filesystem::path > getStoredFiles() const
Returns filenames from storage.
MRVIEWER_API void storeFile(const std::filesystem::path &file) const
RecentFilesStore()=default
Definition MRCameraOrientationPlugin.h:8
std::vector< std::filesystem::path > FileNamesStack
Definition MRIOFilesMenuItems.h:14