新增.h文件

This commit is contained in:
2024-05-06 22:56:17 +08:00
parent cbb7510d99
commit fed4a8edef
5 changed files with 58 additions and 31 deletions

17
aptpkginfo.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef APTPKGINFO_H
#define APTPKGINFO_H
#include <QObject>
#include <QProcess>
class AptPkgInfo: QObject
{
Q_OBJECT
public:
AptPkgInfo(QString pkgName);
QStringList GetAptPackageList(QString name);
QByteArray GetCommandResult(QString command, QStringList argv, QProcessEnvironment env = QProcessEnvironment::systemEnvironment());
};
#endif // APTPKGINFO_H