OpenRGB/qt/OpenRGBPhilipsHueSettingsPage/OpenRGBPhilipsHueSettingsEntry.h

40 lines
1.1 KiB
C++

/*---------------------------------------------------------*\
| OpenRGBPhilipsHueSettingsEntry.h |
| |
| User interface for OpenRGB Philips Hue settings entry |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <QWidget>
#include "nlohmann/json.hpp"
using json = nlohmann::json;
namespace Ui
{
class OpenRGBPhilipsHueSettingsEntry;
class OpenRGBPhilipsHueSettingsEntryUi;
}
class Ui::OpenRGBPhilipsHueSettingsEntry : public QWidget
{
Q_OBJECT
public:
explicit OpenRGBPhilipsHueSettingsEntry(QWidget *parent = nullptr);
~OpenRGBPhilipsHueSettingsEntry();
void loadFromSettings(const json& data);
json saveSettings();
const char* settingsSection();
private:
Ui::OpenRGBPhilipsHueSettingsEntryUi *ui;
private slots:
void changeEvent(QEvent *event);
void on_UnpairButton_clicked();
};