mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +08:00

* feature_quick_create_note * adj name and complete quick create * del unused * del unused * adj name * adj to const * adj name 2 * adj * fix --------- Co-authored-by: Le Tan <tamlokveer@gmail.com>
35 lines
649 B
C++
35 lines
649 B
C++
#ifndef TEMPLATEMGR_H
|
|
#define TEMPLATEMGR_H
|
|
|
|
#include <QObject>
|
|
#include <QStringList>
|
|
|
|
#include "noncopyable.h"
|
|
|
|
namespace vnotex
|
|
{
|
|
class TemplateMgr : public QObject, private Noncopyable
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
static TemplateMgr &getInst()
|
|
{
|
|
static TemplateMgr inst;
|
|
return inst;
|
|
}
|
|
|
|
QString getTemplateFolder() const;
|
|
|
|
QStringList getTemplates() const;
|
|
|
|
QString getTemplateFilePath(const QString &p_name) const;
|
|
|
|
QString getTemplateContent(const QString &p_name) const;
|
|
|
|
private:
|
|
TemplateMgr() = default;
|
|
};
|
|
}
|
|
|
|
#endif // TEMPLATEMGR_H
|