1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00
joplin/QtClient/JoplinQtClient/services/notecache.h
2016-12-12 22:33:33 +00:00

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