2016-09-29 11:08:25 +02:00
|
|
|
/*
|
2020-08-17 16:17:20 +02:00
|
|
|
* SPDX-FileCopyrightText: 2016 Thomas Posch <kdeconnect@online.posch.name>
|
2016-09-29 11:08:25 +02:00
|
|
|
*
|
2020-08-17 16:17:20 +02:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
2016-09-29 11:08:25 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
package org.kde.kdeconnect.Plugins.RunCommandPlugin;
|
|
|
|
|
|
|
|
import org.kde.kdeconnect.UserInterface.List.EntryItem;
|
|
|
|
|
2018-10-26 23:53:58 +02:00
|
|
|
class CommandEntry extends EntryItem {
|
2016-09-29 11:08:25 +02:00
|
|
|
private final String key;
|
|
|
|
|
|
|
|
public CommandEntry(String name, String cmd, String key) {
|
|
|
|
super(name, cmd);
|
|
|
|
this.key = key;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getKey() {
|
|
|
|
return key;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getName() {
|
|
|
|
return title;
|
|
|
|
}
|
2018-07-30 18:15:00 +02:00
|
|
|
|
|
|
|
public String getCommand() {
|
|
|
|
return subtitle;
|
|
|
|
}
|
2016-09-29 11:08:25 +02:00
|
|
|
}
|