File indexing completed on 2024-05-19 05:57:22

0001 // SPDX-FileCopyrightText: 2022 Plata Hill <plata.hill@kdemail.net>
0002 // SPDX-License-Identifier: LGPL-2.1-or-later
0003 
0004 #pragma once
0005 
0006 #include <QObject>
0007 
0008 #include "groupdata.h"
0009 
0010 #include <QVector>
0011 
0012 class Group;
0013 
0014 class GroupFactory : public QObject
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     GroupFactory();
0020     ~GroupFactory() = default;
0021 
0022     size_t count() const;
0023     Group *create(int index) const;
0024     void load() const;
0025 
0026 private:
0027     mutable QVector<GroupData> m_groups;
0028 };