2015-08-19 02:13:28 +02:00
|
|
|
#ifndef PACKAGEMANAGEMENT_MINGWBUNDLE_H
|
|
|
|
#define PACKAGEMANAGEMENT_MINGWBUNDLE_H
|
|
|
|
|
|
|
|
#include "package.h"
|
2015-09-04 14:37:01 +02:00
|
|
|
#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-04 14:37:01 +02:00
|
|
|
MingwBundle(const Manager &manager, const ApplicationUtilities::StringVector &packages, const ApplicationUtilities::StringVector &iconPackages);
|
2015-08-19 02:13:28 +02:00
|
|
|
|
2015-09-04 14:37:01 +02:00
|
|
|
void createBundle(const std::string &targetDir, const std::string &targetName, const std::string &targetFormat) 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
|
|
|
|
|
|
|
const Manager &m_manager;
|
2015-09-05 17:25:05 +02:00
|
|
|
std::list<std::pair<const AlpmDatabase *, const Package *> > m_packages;
|
2015-08-19 02:13:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace PackageManagement
|
|
|
|
|
|
|
|
#endif // PACKAGEMANAGEMENT_MINGWBUNDLE_H
|