vnote.h 589 B

123456789101112131415161718192021222324252627282930313233
  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. class VNote : public QObject
  10. {
  11. Q_OBJECT
  12. public:
  13. VNote();
  14. const QVector<VNotebook>& getNotebooks();
  15. static void decorateTemplate();
  16. static QString templateHtml;
  17. void createNotebook(const QString &name, const QString &path);
  18. void removeNotebook(const QString &name);
  19. signals:
  20. void notebooksChanged(const QVector<VNotebook> &notebooks);
  21. private:
  22. QVector<VNotebook> notebooks;
  23. };
  24. #endif // VNOTE_H