File indexing completed on 2024-05-05 05:00:09

0001 /*
0002     main.h
0003 
0004     SPDX-FileCopyrightText: 1999 Matthias Hoelzer-Kluepfel <hoelzer@kde.org>
0005     SPDX-FileCopyrightText: 2000 Daniel Molkentin <molkentin@kde.org>
0006 
0007     Requires the Qt widget libraries, available at no cost at
0008     http://www.troll.no/
0009 
0010     SPDX-License-Identifier: GPL-2.0-or-later
0011 */
0012 
0013 #ifndef __MAIN_H__
0014 #define __MAIN_H__
0015 
0016 #include <kcmodule.h>
0017 #include <ksharedconfig.h>
0018 
0019 class KJavaOptions;
0020 class KJavaScriptOptions;
0021 
0022 class QTabWidget;
0023 
0024 class KJSParts : public KCModule
0025 {
0026     Q_OBJECT
0027 
0028 public:
0029 
0030     //TODO KF6: when dropping compatibility with KF5, remove QVariantList argument
0031     KJSParts(QObject *parent, const KPluginMetaData &md={}, const QVariantList &args={});
0032 
0033     void load() override;
0034     void save() override;
0035     void defaults() override;
0036 
0037 private:
0038     QTabWidget   *tab;
0039 
0040     KJavaScriptOptions *javascript;
0041     KJavaOptions       *java;
0042 
0043     KSharedConfig::Ptr mConfig;
0044 };
0045 
0046 #endif