1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-03 23:50:33 +02:00
Files
joplin/QtClient/JoplinQtClient/models/folder.h

31 lines
581 B
C
Raw Normal View History

2016-12-10 22:39:53 +00:00
#ifndef FOLDER_H
#define FOLDER_H
#include <stable.h>
#include "models/item.h"
2017-01-12 17:59:19 +01:00
#include "models/note.h"
2016-12-10 22:39:53 +00:00
namespace jop {
class Folder : public Item {
public:
Folder();
2017-01-01 23:20:06 +01:00
static int count();
2017-01-31 20:19:03 +00:00
static std::vector<std::unique_ptr<Folder>> all(const QString& orderBy = "title");
2017-01-01 23:03:42 +01:00
2017-01-21 11:47:24 +00:00
//Table table() const;
bool primaryKeyIsUuid() const;
2017-01-02 15:04:27 +01:00
bool trackChanges() const;
2017-01-12 17:59:19 +01:00
int noteCount() const;
std::vector<std::unique_ptr<Note> > notes(const QString& orderBy, int limit, int offset) const;
2017-01-12 19:11:58 +01:00
int noteIndexById(const QString& orderBy, const QString &id) const;
2016-12-10 22:39:53 +00:00
};
}
#endif // FOLDER_H