Move ResourceManagerInterface to its own file. Refactor Plugin interface

This commit is contained in:
morg
2025-01-07 18:12:41 +01:00
committed by Adam Honse
parent 5e08608c56
commit b3dfd3b4b0
6 changed files with 61 additions and 50 deletions

View File

@@ -15,7 +15,7 @@
#include <QtPlugin>
#include <QLabel>
#include <QMenu>
#include "ResourceManager.h"
#include "ResourceManagerInterface.h"
#define OpenRGBPluginInterface_IID "com.OpenRGBPluginInterface"
@@ -77,7 +77,7 @@ public:
/*-------------------------------------------------------------------------------------------------*\
| Plugin Functionality |
\*-------------------------------------------------------------------------------------------------*/
virtual void Load(bool dark_theme, ResourceManager* resource_manager_ptr) = 0;
virtual void Load(ResourceManagerInterface* resource_manager_ptr) = 0;
virtual QWidget* GetWidget() = 0;
virtual QMenu* GetTrayMenu() = 0;
virtual void Unload() = 0;