#ifndef VNOTE_H #define VNOTE_H #include #include #include #include "vnotebook.h" class VNote { public: VNote(); void readGlobalConfig(); void writeGlobalConfig(); const QVector& getNotebooks(); int getCurNotebookIndex() const; void setCurNotebookIndex(int index); static const QString orgName; static const QString appName; static const QString welcomePagePath; static const QString templateUrl; private: // Write notebooks section of global config void writeGlobalConfigNotebooks(QSettings &settings); // Read notebooks section of global config void readGlobalConfigNotebooks(QSettings &settings); QVector notebooks; int curNotebookIndex; static const QString preTemplatePath; static const QString postTemplatePath; }; #endif // VNOTE_H