aboutsummaryrefslogtreecommitdiff
blob: ffd52ba5a721a27f6515b89f7b0e54d1ddb09e31 (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
#ifndef QLISTCONVERTER_H
#define QLISTCONVERTER_H

extern "C" {
#include "../stringlist.h"
}

#include <QObject>

class QString;
class QStringList;

namespace CppPortage {

class QListConverter : public QObject
{
    Q_OBJECT
public:
    QListConverter(QObject *parent = 0);

    /**
    * Converts a StringList to a QStringList
    **/
    static QStringList StringListToQStringList(StringList *stringList);

    /**
    * Converts a QStringList to a StringList
    **/
    static StringList* QStringListToStringList(QStringList qstringList);
};
}
#endif