File indexing completed on 2024-04-28 03:52:08
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 METHODS_H 0010 #define METHODS_H 0011 0012 #include "Method.h" 0013 0014 #include <list> 0015 0016 class Methods 0017 { 0018 public: 0019 Methods(); 0020 0021 static bool isMethod(const QString &line); 0022 0023 void parse(const QString &line); 0024 bool finalize(); 0025 0026 std::list<Method> methods() const; 0027 0028 private: 0029 std::list<Method> m_methods; 0030 Method *m_currentMethod = nullptr; 0031 }; 0032 0033 #endif // METHODS_H