File indexing completed on 2024-05-12 04:45:55
0001 #include <QObject> 0002 0003 #include <MauiKit3/Core/mauilist.h> 0004 0005 class NotesSyncer; 0006 class Notes : public MauiList 0007 { 0008 Q_OBJECT 0009 0010 public: 0011 explicit Notes(QObject *parent = nullptr); 0012 const FMH::MODEL_LIST &items() const override final; 0013 void componentComplete() override final; 0014 0015 private: 0016 NotesSyncer *syncer; 0017 0018 FMH::MODEL_LIST notes; 0019 QVariantMap m_account; 0020 0021 void setList(); 0022 void sortList(); 0023 0024 void appendNote(FMH::MODEL note); 0025 0026 public Q_SLOTS: 0027 bool insert(const QVariantMap ¬e); 0028 bool update(const QVariantMap &data, const int &index); 0029 bool remove(const int &index); 0030 int indexOfNote(const QUrl &url); 0031 0032 int indexOfName(const QString &query); 0033 0034 };