1namespace Poppler {
2
3class FontIterator {
4%TypeHeaderCode
5#include <qt5/poppler-qt5.h>
6%End
7
8public:
9    ~FontIterator();
10    QList<Poppler::FontInfo> next();
11    bool hasNext() const;
12    int currentPage() const;
13
14    Poppler::FontIterator * __iter__();
15%MethodCode
16    sipRes = sipCpp;
17%End
18    SIP_PYOBJECT __next__();
19%MethodCode
20    if (sipCpp->hasNext()) {
21        QList<Poppler::FontInfo> next = sipCpp->next();
22        sipRes = sipConvertFromType(&next, sipFindType("QList<Poppler::FontInfo>"), Py_None);
23    } else {
24        PyErr_SetNone(PyExc_StopIteration);
25    }
26%End
27
28private:
29    FontIterator(const Poppler::FontIterator&);
30//     FontIterator( int, DocumentData *dd );
31}; // class FontIterator
32
33}; // namespace Poppler
34