Warning, file /utilities/telly-skout/src/groupfactory.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
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 };