File indexing completed on 2024-05-19 13:26:02

0001 /*
0002  *   SPDX-FileCopyrightText: 2009 Ben Cooksley <bcooksley@kde.org>
0003  *
0004  *   SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef EXTERNALAPPMODULE_H
0008 #define EXTERNALAPPMODULE_H
0009 
0010 #include <KService>
0011 #include <QWidget>
0012 
0013 #include "ui_externalModule.h"
0014 
0015 class QShowEvent;
0016 
0017 class ExternalAppModule : public QWidget
0018 {
0019     Q_OBJECT
0020 
0021 public:
0022     explicit ExternalAppModule(QWidget *parent, const KService::Ptr &module);
0023     ~ExternalAppModule() override;
0024 
0025 protected:
0026     void showEvent(QShowEvent *event) override;
0027 
0028 private Q_SLOTS:
0029     void runExternal();
0030 
0031 private:
0032     const KService::Ptr module;
0033     Ui::ExternalModule externalModule;
0034     bool firstShow;
0035 };
0036 
0037 #endif