File indexing completed on 2024-12-08 05:11:58
0001 /** 0002 * SPDX-FileCopyrightText: (C) 2003 by Sébastien Laoût <slaout@linux62.org> 0003 * SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef BASKETFACTORY_H 0007 #define BASKETFACTORY_H 0008 0009 #include <QColor> 0010 #include <QString> 0011 0012 class BasketScene; 0013 0014 /** Methods to create various baskets (mkdir, init the properties and load it). 0015 * @author Sébastien Laoût 0016 */ 0017 namespace BasketFactory 0018 { 0019 /** You should use this method to create a new basket: */ 0020 void newBasket(const QString &icon, 0021 const QString &name, 0022 BasketScene *parent = nullptr, 0023 const QString &backgroundImage = QString(), 0024 const QColor &backgroundColor = QColor(), 0025 const QColor &textColor = QColor(), 0026 const QString &templateName = QStringLiteral("1column")); 0027 /** Internal tool methods to process the method above: */ 0028 QString newFolderName(); 0029 QString unpackTemplate(const QString &templateName); 0030 } 0031 0032 #endif // BASKETFACTORY_H