#include <MRRecentFilesStore.h>
Public Member Functions | |
| RecentFilesStore ()=default | |
| RecentFilesStore (std::string appName, int capacity=10) | |
| MRVIEWER_API void | storeFile (const std::filesystem::path &file) const |
| MRVIEWER_API std::vector< std::filesystem::path > | getStoredFiles () const |
| Returns filenames from storage. | |
| int | getCapacity () const |
| Returns maximum size of recently opened files stack. | |
| 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. | |
This class exists to store and load recently opened files from system storage (registry for Windows)