blob: 8302122b6be5121464771ab8b69bfcb7dd215fcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#include "qpackageproperties.h"
#include "qlistconverter.h"
#include <QStringList>
#include <QString>
namespace CppPortage{
QPackageProperties::QPackageProperties(QString slot, QStringList keywords,
QStringList flags, QStringList homepages, QObject *parent)
:QObject(parent)
{
StringList *FLAGS = QListConverter::QStringListToStringList(flags);
StringList *HOMEPAGES = QListConverter::QStringListToStringList(homepages);
StringList *KEYWORDS = QListConverter::QStringListToStringList(keywords);
packagePropertiesCreate(slot.toUtf8().data(), KEYWORDS, FLAGS, HOMEPAGES);
}
QPackageProperties::~QPackageProperties()
{
PackageProperties *p;
void Free(PackageProperties *p);
}
const QString QPackageProperties::Slot()
{
PackageProperties *p;
return packagePropertiesGetSlot(p);
}
const QStringList QPackageProperties::Flags()
{
PackageProperties *p;
return QListConverter::StringListToQStringList(packagePropertiesGetFlags(p));
}
const QStringList QPackageProperties::Keywords()
{
PackageProperties *p;
return QListConverter::StringListToQStringList(packagePropertiesGetKeywords(p));
}
const QStringList QPackageProperties::Homepages()
{
PackageProperties *p;
return QListConverter::StringListToQStringList(packagePropertiesGetHomepages(p));
}
}
|