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

#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