blob: f3646ef1feab096ac6712c51bca3f6bfdcf62084 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef NEWSBOAT_HISTORY_H_
#define NEWSBOAT_HISTORY_H_
#include "libnewsboat-ffi/src/history.rs.h"
#include <string>
namespace newsboat {
class History {
public:
History();
~History() = default;
void add_line(const std::string& line);
std::string previous_line();
std::string next_line();
void load_from_file(const std::string& file);
void save_to_file(const std::string& file, unsigned int limit);
private:
rust::Box<history::bridged::History> rs_object;
};
} // namespace newsboat
#endif /* NEWSBOAT_HISTORY_H_ */
|