35 lines
826 B
C++
35 lines
826 B
C++
#ifndef ADAPTIXCLIENT_EXTENDER_H
|
|
#define ADAPTIXCLIENT_EXTENDER_H
|
|
|
|
#include <main.h>
|
|
|
|
class DialogExtender;
|
|
class MainAdaptix;
|
|
|
|
class Extender : public QObject
|
|
{
|
|
Q_OBJECT
|
|
MainAdaptix* mainAdaptix = nullptr;
|
|
|
|
public:
|
|
explicit Extender(MainAdaptix* m);
|
|
~Extender() override;
|
|
|
|
DialogExtender* dialogExtender = nullptr;
|
|
QMap<QString, ExtensionFile> extenderFiles;
|
|
|
|
void LoadFromDB();
|
|
void LoadFromFile(const QString &path, bool enabled);
|
|
void SetExtension(ExtensionFile extFile );
|
|
void EnableExtension(const QString &path);
|
|
void DisableExtension(const QString &path);
|
|
void RemoveExtension(const QString &path);
|
|
|
|
public Q_SLOTS:
|
|
void syncedOnReload(const QString &project);
|
|
void loadGlobalScript(const QString &path);
|
|
void unloadGlobalScript(const QString &path);
|
|
};
|
|
|
|
#endif
|