repoindex/lib/alpm/group.cpp

22 lines
424 B
C++
Raw Normal View History

#include "./group.h"
#include "./package.h"
2015-08-10 22:46:01 +02:00
#include <QJsonArray>
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