mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-23 19:42:21 +08:00
37 lines
714 B
C++
37 lines
714 B
C++
|
|
#pragma once
|
|
|
|
#include "spkpkgmgrbase.h"
|
|
#include <QProcess>
|
|
|
|
class SpkPkgMgrApt final : public SpkPkgMgrBase
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SpkPkgMgrApt(QObject *parent = nullptr);
|
|
|
|
static bool DetectRequirements();
|
|
|
|
virtual PkgInstallResult ExecuteInstallation(QString pkgPath,
|
|
int entryId) override;
|
|
|
|
// APT backend specific
|
|
bool ChangeServerRepository(QString content);
|
|
|
|
private:
|
|
void CheckInstallerAvailability();
|
|
|
|
private slots:
|
|
void InstallerExited(int, QProcess::ExitStatus);
|
|
|
|
private:
|
|
QAction *mActAptitudeTerm,
|
|
*mActAptTerm,
|
|
*mActGdebi,
|
|
*mActDeepinPkgInst;
|
|
|
|
QProcess mInstaller;
|
|
|
|
};
|