2021-01-05 05:44:23 +00:00
|
|
|
/*-----------------------------------------*\
|
|
|
|
|
| OpenRGBPlugin.h |
|
|
|
|
|
| |
|
|
|
|
|
| OpenRGB Plugin template with example |
|
|
|
|
|
| |
|
|
|
|
|
| herosilas12 (CoffeeIsLife) 12/11/2020 |
|
|
|
|
|
| Adam Honse (CalcProgrammer1) 1/5/2021 |
|
|
|
|
|
\*-----------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "OpenRGBPluginInterface.h"
|
2025-02-07 02:35:12 +00:00
|
|
|
#include "ResourceManagerInterface.h"
|
2021-01-05 05:44:23 +00:00
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
#include <QString>
|
|
|
|
|
#include <QtPlugin>
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
#include <QLabel>
|
|
|
|
|
|
|
|
|
|
class OpenRGBPlugin : public QObject, public OpenRGBPluginInterface
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
Q_PLUGIN_METADATA(IID OpenRGBPluginInterface_IID)
|
|
|
|
|
Q_INTERFACES(OpenRGBPluginInterface)
|
|
|
|
|
|
|
|
|
|
public:
|
2021-08-30 16:36:58 +00:00
|
|
|
virtual ~OpenRGBPlugin() {}
|
|
|
|
|
|
|
|
|
|
/*-------------------------------------------------------------------------------------------------*\
|
|
|
|
|
| Plugin Information |
|
|
|
|
|
\*-------------------------------------------------------------------------------------------------*/
|
|
|
|
|
virtual OpenRGBPluginInfo GetPluginInfo() override;
|
|
|
|
|
virtual unsigned int GetPluginAPIVersion() override;
|
|
|
|
|
|
|
|
|
|
/*-------------------------------------------------------------------------------------------------*\
|
|
|
|
|
| Plugin Functionality |
|
|
|
|
|
\*-------------------------------------------------------------------------------------------------*/
|
2025-02-07 02:35:12 +00:00
|
|
|
virtual void Load(ResourceManagerInterface* resource_manager_ptr) override;
|
2021-08-30 16:36:58 +00:00
|
|
|
virtual QWidget* GetWidget() override;
|
|
|
|
|
virtual QMenu* GetTrayMenu() override;
|
|
|
|
|
virtual void Unload() override;
|
2021-01-05 05:44:23 +00:00
|
|
|
private:
|
2025-02-07 02:35:12 +00:00
|
|
|
ResourceManagerInterface* resource_manager;
|
2021-01-05 05:44:23 +00:00
|
|
|
};
|