1 Star 0 Fork 142

撸码小分队/DS

forked from Vanishi/DS 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
TaskWebEngineProfile.h 757 Bytes
一键复制 编辑 原始数据 按行查看 历史
Vanishi 提交于 2024-04-09 12:52 +08:00 . v1.9
#ifndef TASKWEBENGINEPROFILE_H
#define TASKWEBENGINEPROFILE_H
#include <QObject>
QT_BEGIN_NAMESPACE;
class QMutex;
class QWebEngineProfile;
QT_END_NAMESPACE;
class TaskWebEngineProfile : public QObject
{
Q_OBJECT
public:
static TaskWebEngineProfile *getInstance();
private:
explicit TaskWebEngineProfile(QObject *parent);
~TaskWebEngineProfile();
public:
QWebEngineProfile* profile();
QWebEngineProfile* copyProfile();
QString cachePath();
void clearCache();
private:
static QAtomicPointer<TaskWebEngineProfile> mInstance;
static QMutex mInstanceMtx;
QWebEngineProfile *mProfile;
QString mCacheName;
QString mCachePath;
};
#endif // TASKWEBENGINEPROFILE_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/coderanks/DS.git
git@gitee.com:coderanks/DS.git
coderanks
DS
DS
master

搜索帮助