mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
33 lines
583 B
C++
33 lines
583 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;
|
|
|
|
private:
|
|
TemplateMgr() = default;
|
|
};
|
|
}
|
|
|
|
#endif // TEMPLATEMGR_H
|