2015-09-07 19:36:45 +02:00
|
|
|
#include "./group.h"
|
|
|
|
#include "./package.h"
|
2015-08-10 22:46:01 +02:00
|
|
|
|
|
|
|
#include <QJsonArray>
|
|
|
|
|
2015-09-05 17:25:05 +02:00
|
|
|
namespace RepoIndex {
|
2015-08-10 22:46:01 +02:00
|
|
|
|
|
|
|
/*!
|
2015-09-04 14:37:01 +02:00
|
|
|
* \class AlpmGroup
|
|
|
|
* \brief The AlpmGroup class wraps an ALPM group struct.
|
2015-08-10 22:46:01 +02:00
|
|
|
*/
|
2015-09-04 14:37:01 +02:00
|
|
|
|
|
|
|
GroupInfo::GroupInfo(const AlpmGroup &group)
|
2015-08-10 22:46:01 +02:00
|
|
|
{
|
2015-09-04 14:37:01 +02:00
|
|
|
name = QString::fromLocal8Bit(group.name());
|
|
|
|
for(auto *pkg : PackageList(group.packages())) {
|
|
|
|
packages << QString::fromLocal8Bit(alpm_pkg_get_name(pkg));
|
2015-08-10 22:46:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Alpm
|