mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-23 15:45:53 +00:00
32 lines
615 B
C
32 lines
615 B
C
|
/*
|
||
|
SPDX-FileCopyrightText: 2005 Jean-Remy Falleri <jr.falleri@laposte.net>
|
||
|
SPDX-FileCopyrightText: 2005-2007 Kevin Ottens <ervin@kde.org>
|
||
|
|
||
|
SPDX-License-Identifier: LGPL-2.0-only
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <solid/device.h>
|
||
|
|
||
|
class DeviceAction
|
||
|
{
|
||
|
public:
|
||
|
DeviceAction();
|
||
|
virtual ~DeviceAction();
|
||
|
|
||
|
QString label() const;
|
||
|
QString iconName() const;
|
||
|
|
||
|
virtual QString id() const = 0;
|
||
|
virtual void execute(Solid::Device &device) = 0;
|
||
|
|
||
|
protected:
|
||
|
void setLabel(const QString &label);
|
||
|
void setIconName(const QString &icon);
|
||
|
|
||
|
private:
|
||
|
QString m_label;
|
||
|
QString m_iconName;
|
||
|
};
|