加入包管理器模块雏形

This commit is contained in:
RigoLigoRLC
2022-02-13 21:18:48 +08:00
parent f2e417e02a
commit 2221d5c816
10 changed files with 242 additions and 2 deletions

27
inc/pkgs/spkpkgmgrapt.h Normal file
View File

@@ -0,0 +1,27 @@
#pragma once
#include "spkpkgmgrbase.h"
class SpkPkgMgrApt : 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:
QAction *mActAptitudeTerm,
*mActAptTerm,
*mActGdebi,
*mActDeepinPkgInst;
};