mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-27 10:32:58 +02:00
26 lines
284 B
C++
Executable File
26 lines
284 B
C++
Executable File
#ifndef NOTECACHE_H
|
|
#define NOTECACHE_H
|
|
|
|
#include <stable.h>
|
|
#include "models/note.h"
|
|
|
|
namespace jop {
|
|
|
|
class NoteCache {
|
|
|
|
public:
|
|
|
|
NoteCache();
|
|
void add(QList<Note> notes);
|
|
std::pair<Note, bool> get(int id) const;
|
|
|
|
private:
|
|
|
|
QMap<int, Note> cache_;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // NOTECACHE_H
|