File indexing completed on 2024-04-28 03:52:07
0001 /* 0002 * BluezQt - Asynchronous BlueZ wrapper library 0003 * 0004 * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer <mincequi@web.de> 0005 * 0006 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef PARSER_H 0010 #define PARSER_H 0011 0012 #include <QTextStream> 0013 0014 #include "Interface.h" 0015 0016 class BluezApiParser 0017 { 0018 public: 0019 BluezApiParser(); 0020 0021 bool parse(QTextStream &stream); 0022 bool finalize(); 0023 0024 std::list<Interface> interfaces() const; 0025 0026 private: 0027 std::list<Interface> m_interfaces; 0028 Interface *m_currentInterface = nullptr; 0029 }; 0030 0031 #endif // PARSER_H