1 #ifndef _library__recentfiles__hpp__included__
2 #define _library__recentfiles__hpp__included__
13 recentfile_path(const std::string
& p
);
14 std::string
serialize() const;
15 static recentfile_path
deserialize(const std::string
& s
);
17 std::string
display() const;
18 std::string
get_path() const;
19 bool operator==(const recentfile_path
& p
) const;
24 class recentfile_multirom
27 recentfile_multirom();
28 std::string
serialize() const;
29 static recentfile_multirom
deserialize(const std::string
& s
);
31 std::string
display() const;
32 bool operator==(const recentfile_multirom
& p
) const;
35 std::string singlefile
;
39 std::vector
<std::string
> files
;
42 struct recent_files_hook
44 virtual ~recent_files_hook();
45 virtual void operator()() = 0;
52 recent_files(const std::string
& cfgfile
, size_t maxcount
) __attribute__((noinline
));
53 void add(const T
& file
);
54 void add_hook(recent_files_hook
& h
);
55 void remove_hook(recent_files_hook
& h
);
60 std::list
<recent_files_hook
*> hooks
;