1/*
2 * BluezQt - Asynchronous BlueZ wrapper library
3 *
4 * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer <mincequi@web.de>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9#ifndef PARSER_H
10#define PARSER_H
11
12#include <QTextStream>
13
14#include "Interface.h"
15
16class BluezApiParser
17{
18public:
19 BluezApiParser();
20
21 bool parse(QTextStream &stream);
22 bool finalize();
23
24 std::list<Interface> interfaces() const;
25
26private:
27 std::list<Interface> m_interfaces;
28 Interface *m_currentInterface = nullptr;
29};
30
31#endif // PARSER_H
32

source code of bluez-qt/tools/bluezapi2qt/BluezApiParser.h