#ifndef VNOTE_H #define VNOTE_H #include #include #include #include #include #include "vnotebook.h" enum OpenFileMode {Read = 0, Edit}; class VNote : public QObject { Q_OBJECT public: VNote(); const QVector& getNotebooks(); static void decorateTemplate(); // Used by Marked static QString templateHtml; // Used by other markdown converter static QString preTemplateHtml; static QString postTemplateHtml; void createNotebook(const QString &name, const QString &path); void removeNotebook(const QString &name); signals: void notebooksChanged(const QVector ¬ebooks); private: QVector notebooks; }; #endif // VNOTE_H