初步支持从apt源获取数据(暂不可用)
This commit is contained in:
18
aptpkginfo.h
18
aptpkginfo.h
@@ -10,8 +10,22 @@ class AptPkgInfo: QObject
|
||||
public:
|
||||
AptPkgInfo(QString pkgName);
|
||||
|
||||
QStringList GetAptPackageList(QString name);
|
||||
QByteArray GetCommandResult(QString command, QStringList argv, QProcessEnvironment env = QProcessEnvironment::systemEnvironment());
|
||||
void SetPkgName(QString pkgName);
|
||||
QStringList GetAptPackageList(QString name) const;
|
||||
QByteArray GetCommandResult(QString command, QStringList argv, QProcessEnvironment env = QProcessEnvironment::systemEnvironment()) const;
|
||||
|
||||
QString GetPkgInfo(QString pkgName=NULL) const;
|
||||
|
||||
QString get_package() const;
|
||||
QString get_version() const;
|
||||
QString get_maintainer() const;
|
||||
|
||||
private:
|
||||
QString pkgName;
|
||||
QString pkgInfo;
|
||||
QString aptData;
|
||||
|
||||
void ReadAptData();
|
||||
};
|
||||
|
||||
#endif // APTPKGINFO_H
|
||||
|
||||
Reference in New Issue
Block a user