Kstars

extensions.h
1#ifndef EXTENSIONS_H
2#define EXTENSIONS_H
3
4#include "ekos.h"
5
6#include <QMap>
7#include <QObject>
8#include <QProcess>
9#include <QIcon>
10
11class extensions : public QObject
12{
14 public:
15 explicit extensions(QObject *parent = nullptr);
16 bool discover();
17 void run(const QString &extension = "");
18 void stop();
19 void kill();
20
21 struct extDetails
22 {
23 QString tooltip;
24 QIcon icon;
25 bool detached;
26 };
28
29 public slots:
30 QIcon getIcon(const QString &name);
31 QString getTooltip(const QString &name);
32
33 signals:
34 void extensionStateChanged(Ekos::ExtensionState);
35 void extensionOutput(const QString);
36
37 private:
38 QString m_Directory = "";
39 bool confValid(const QString &filePath);
40 QProcess* extensionProcess;
41
42};
43
44#endif // EXTENSIONS_H
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:15:11 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.