#ifndef FOLDER_H #define FOLDER_H #include #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> pathToFolders(const QString& path, bool returnLast, int& errorCode); static QString pathBaseName(const QString& path); static std::unique_ptr root(); bool primaryKeyIsUuid() const; bool trackChanges() const; int noteCount() const; std::vector> notes(const QString& orderBy, int limit, int offset = 0) const; std::vector> 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