| 1234567891011121314151617181920212223242526272829303132333435 |
- #ifndef VNOTE_H
- #define VNOTE_H
- #include <QString>
- #include <QVector>
- #include <QSettings>
- #include <QFont>
- #include <QObject>
- #include "vnotebook.h"
- enum OpenFileMode {Read = 0, Edit};
- class VNote : public QObject
- {
- Q_OBJECT
- public:
- VNote();
- const QVector<VNotebook>& getNotebooks();
- static void decorateTemplate();
- static QString templateHtml;
- void createNotebook(const QString &name, const QString &path);
- void removeNotebook(const QString &name);
- signals:
- void notebooksChanged(const QVector<VNotebook> ¬ebooks);
- private:
- QVector<VNotebook> notebooks;
- };
- #endif // VNOTE_H
|