File indexing completed on 2024-07-14 14:35:37

0001 /*
0002     SPDX-FileCopyrightText: 2007 Aaron Seigo <aseigo@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef LIBS_KPACKAGE_PACKAGES_P_H
0008 #define LIBS_KPACKAGE_PACKAGES_P_H
0009 
0010 #include "kpackage/packagestructure.h"
0011 
0012 class ChangeableMainScriptPackage : public KPackage::PackageStructure
0013 {
0014     Q_OBJECT
0015 public:
0016     void initPackage(KPackage::Package *package) override;
0017 
0018 protected:
0019     virtual QString mainScriptConfigKey() const;
0020     void pathChanged(KPackage::Package *package) override;
0021 };
0022 
0023 class GenericPackage : public ChangeableMainScriptPackage
0024 {
0025     Q_OBJECT
0026 public:
0027     void initPackage(KPackage::Package *package) override;
0028 };
0029 
0030 class GenericQMLPackage : public GenericPackage
0031 {
0032     Q_OBJECT
0033 public:
0034     void initPackage(KPackage::Package *package) override;
0035 };
0036 
0037 #endif // LIBS_KPACKAGE_PACKAGES_P_H