You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
615 B
31 lines
615 B
/* |
|
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; |
|
};
|
|
|