File indexing completed on 2024-04-21 03:52:04

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 PROPERTIES_H
0010 #define PROPERTIES_H
0011 
0012 #include "Property.h"
0013 
0014 #include <list>
0015 
0016 class Properties
0017 {
0018 public:
0019     Properties();
0020 
0021     void parse(const QString &line);
0022     bool finalize();
0023 
0024     std::list<Property> properties() const;
0025 
0026 private:
0027     std::list<Property> m_properties;
0028     Property *m_currentProperty = nullptr;
0029 };
0030 
0031 #endif // PROPERTIES_H