mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 12:52:04 +08:00
加入包管理器模块雏形
This commit is contained in:
27
inc/pkgs/spkpkgmgrapt.h
Normal file
27
inc/pkgs/spkpkgmgrapt.h
Normal 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;
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user