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
2017-02-08 21:43:35 +00:00

36 lines
877 B
C++
Executable File

#ifndef FOLDER_H
#define FOLDER_H
#include <stable.h>
#include "models/item.h"
#include "models/note.h"
namespace jop {
class Folder : public Item {
Q_OBJECT
public:
Folder();
static int count(const QString& parentId);
static std::vector<std::unique_ptr<Folder>> pathToFolders(const QString& path, bool returnLast, int& errorCode);
static QString pathBaseName(const QString& path);
static std::unique_ptr<Folder> root();
bool primaryKeyIsUuid() const;
bool trackChanges() const;
int noteCount() const;
std::vector<std::unique_ptr<Note>> notes(const QString& orderBy, int limit, int offset = 0) const;
std::vector<std::unique_ptr<BaseModel>> children(const QString &orderBy = QString("title"), int limit = 0, int offset = 0) const;
int noteIndexById(const QString& orderBy, const QString &id) const;
QString displayTitle() const;
};
}
#endif // FOLDER_H