2015-08-19 02:13:28 +02:00
|
|
|
#ifndef PACKAGEMANAGEMENT_MINGWBUNDLE_H
|
|
|
|
#define PACKAGEMANAGEMENT_MINGWBUNDLE_H
|
|
|
|
|
2015-09-07 19:36:45 +02:00
|
|
|
#include "./package.h"
|
|
|
|
#include "./alpmdatabase.h"
|
2015-08-19 02:13:28 +02:00
|
|
|
|
|
|
|
#include <c++utilities/application/argumentparser.h>
|
|
|
|
|
|
|
|
#include <QList>
|
|
|
|
|
2015-09-05 17:25:05 +02:00
|
|
|
namespace RepoIndex {
|
2015-08-19 02:13:28 +02:00
|
|
|
|
|
|
|
class Manager;
|
|
|
|
|
|
|
|
class MingwBundle
|
|
|
|
{
|
|
|
|
public:
|
2015-09-21 22:16:19 +02:00
|
|
|
MingwBundle(Manager &manager, const ApplicationUtilities::StringVector &packages, const ApplicationUtilities::StringVector &iconPackages, const ApplicationUtilities::StringVector &extraPackages);
|
2015-08-19 02:13:28 +02:00
|
|
|
|
2015-09-21 22:16:19 +02:00
|
|
|
void createBundle(const std::string &targetDir, const std::string &targetName, const std::string &targetFormat, const std::string &defaultIconTheme) const;
|
2015-08-19 02:13:28 +02:00
|
|
|
|
|
|
|
private:
|
2015-09-04 14:37:01 +02:00
|
|
|
void addDependencies(const Package *pkg);
|
2015-08-19 02:13:28 +02:00
|
|
|
|
2015-09-21 22:16:19 +02:00
|
|
|
Manager &m_manager;
|
2015-12-08 18:59:17 +01:00
|
|
|
std::list<std::pair<const Repository *, const Package *> > m_packages;
|
2015-09-21 22:16:19 +02:00
|
|
|
const ApplicationUtilities::StringVector &m_extraPackages;
|
2015-08-19 02:13:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace PackageManagement
|
|
|
|
|
|
|
|
#endif // PACKAGEMANAGEMENT_MINGWBUNDLE_H
|