mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
34 lines
589 B
C++
34 lines
589 B
C++
#ifndef VNOTE_H
|
|
#define VNOTE_H
|
|
|
|
#include <QString>
|
|
#include <QVector>
|
|
#include <QSettings>
|
|
#include <QFont>
|
|
#include <QObject>
|
|
#include "vnotebook.h"
|
|
|
|
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
|