1 /*
2  * DQt - D bindings for the Qt Toolkit
3  *
4  * GNU Lesser General Public License Usage
5  * This file may be used under the terms of the GNU Lesser
6  * General Public License version 3 as published by the Free Software
7  * Foundation and appearing in the file LICENSE.LGPL3 included in the
8  * packaging of this file. Please review the following information to
9  * ensure the GNU Lesser General Public License version 3 requirements
10  * will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
11  */
12 module qt.core.bytearraylist;
13 extern(C++):
14 
15 import qt.config;
16 import qt.core.bytearray;
17 import qt.core.list;
18 import qt.helpers;
19 
20 /+ #ifndef QBYTEARRAYLIST_H +/
21 /+ #define QBYTEARRAYLIST_H
22 
23 
24 #if !defined(QT_NO_JAVA_STYLE_ITERATORS)
25 typedef QListIterator<QByteArray> QByteArrayListIterator;
26 typedef QMutableListIterator<QByteArray> QMutableByteArrayListIterator;
27 #endif
28 
29 #ifndef Q_CLANG_QDOC +/
30 
31 extern(C++, "QtPrivate") {
32     QByteArray /+ Q_CORE_EXPORT +/ QByteArrayList_join(const(QByteArrayList)* that, const(char)* separator, int separatorLength);
33 }
34 /+ #endif
35 
36 #ifdef Q_CLANG_QDOC
37 class QByteArrayList : public QList<QByteArray>
38 #else
39 template <> struct QListSpecialMethods<QByteArray> : QListSpecialMethodsBase<QByteArray>
40 #endif
41 {
42 #ifndef Q_CLANG_QDOC
43 protected:
44     ~QListSpecialMethods() = default;
45 #endif
46 public:
47     using QListSpecialMethodsBase<QByteArray>::indexOf;
48     using QListSpecialMethodsBase<QByteArray>::lastIndexOf;
49     using QListSpecialMethodsBase<QByteArray>::contains;
50 
51     inline QByteArray join() const
52     { return QtPrivate::QByteArrayList_join(self(), nullptr, 0); }
53     inline QByteArray join(const QByteArray &sep) const
54     {
55         Q_ASSERT(sep.size() <= (std::numeric_limits<int>::max)());
56         return QtPrivate::QByteArrayList_join(self(), sep.data(), sep.size());
57     }
58     inline QByteArray join(char sep) const
59     { return QtPrivate::QByteArrayList_join(self(), &sep, 1); }
60 }; +/
61 
62 
63 /+ #endif +/ // QBYTEARRAYLIST_H
64 /// Binding for C++ class [QByteArrayList](https://doc.qt.io/qt-6/qbytearraylist.html).
65 alias QByteArrayList = QList!(QByteArray);
66