ukui-search/libsearch/appdata/app-db-manager.h

28 lines
611 B
C
Raw Normal View History

2022-03-01 17:39:53 +08:00
#ifndef APPDBMANAGER_H
#define APPDBMANAGER_H
#include <QObject>
#include <QSqlDatabase>
namespace UkuiSearch {
/**
* @brief The AppDBManager class
* 1.desktop文件目录
* 2.
*/
class AppDBManager : public QObject
{
Q_OBJECT
public:
static AppDBManager *getInstance();
void initDateBaseConnection();
private:
explicit AppDBManager(QObject *parent = nullptr);
~AppDBManager();
QSqlDatabase m_database;
2022-03-01 17:39:53 +08:00
};
}
#endif // APPDBMANAGER_H