vnote.h 626 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef VNOTE_H
  2. #define VNOTE_H
  3. #include <QString>
  4. #include <QVector>
  5. #include <QSettings>
  6. #include <QFont>
  7. #include <QObject>
  8. #include "vnotebook.h"
  9. enum OpenFileMode {Read = 0, Edit};
  10. class VNote : public QObject
  11. {
  12. Q_OBJECT
  13. public:
  14. VNote();
  15. const QVector<VNotebook>& getNotebooks();
  16. static void decorateTemplate();
  17. static QString templateHtml;
  18. void createNotebook(const QString &name, const QString &path);
  19. void removeNotebook(const QString &name);
  20. signals:
  21. void notebooksChanged(const QVector<VNotebook> &notebooks);
  22. private:
  23. QVector<VNotebook> notebooks;
  24. };
  25. #endif // VNOTE_H