You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
631 B
37 lines
631 B
3 years ago
|
/*
|
||
|
* Copyright (C) 2021 Riyyi
|
||
|
*
|
||
|
* SPDX-License-Identifier: MIT
|
||
|
*/
|
||
|
|
||
|
#ifndef PACKAGE_H
|
||
|
#define PACKAGE_H
|
||
|
|
||
|
#include <string>
|
||
|
#include <vector>
|
||
|
|
||
|
class Package {
|
||
|
public:
|
||
|
Package();
|
||
|
virtual ~Package();
|
||
|
|
||
|
enum class Distro {
|
||
|
Unsupported,
|
||
|
Arch,
|
||
|
Debian,
|
||
|
};
|
||
|
|
||
|
void aurInstall(const std::vector<std::string>& targets = {});
|
||
|
void install(const std::vector<std::string>& targets = {});
|
||
|
void list(const std::vector<std::string>& targets = {});
|
||
|
void store(const std::vector<std::string>& targets = {});
|
||
|
|
||
|
private:
|
||
|
bool distroDetect();
|
||
|
bool distroDependencies();
|
||
|
|
||
|
Distro m_distro { Distro::Unsupported };
|
||
|
};
|
||
|
|
||
|
#endif // PACKAGE_H
|