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 METHODS_H
10#define METHODS_H
11
12#include "Method.h"
13
14#include <list>
15
16class Methods
17{
18public:
19 Methods();
20
21 static bool isMethod(const QString &line);
22
23 void parse(const QString &line);
24 bool finalize();
25
26 std::list<Method> methods() const;
27
28private:
29 std::list<Method> m_methods;
30 Method *m_currentMethod = nullptr;
31};
32
33#endif // METHODS_H
34

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