Changeset View
Changeset View
Standalone View
Standalone View
src/dbusrunner/abstractrunner.cpp
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * Copyright 2018 David Edmundson <davidedmundson@kde.org> | ||||
3 | * Copyright 2018 Friedrich W. H. Kossebau <kossebau@kde.org> | ||||
4 | * | ||||
5 | * This program is free software; you can redistribute it and/or modify | ||||
6 | * it under the terms of the GNU Library General Public License version 2 as | ||||
7 | * published by the Free Software Foundation | ||||
8 | * | ||||
9 | * This program is distributed in the hope that it will be useful, | ||||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
12 | * GNU General Public License for more details | ||||
13 | * | ||||
14 | * You should have received a copy of the GNU Library General Public | ||||
15 | * License along with this program; if not, write to the | ||||
16 | * Free Software Foundation, Inc., | ||||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
18 | */ | ||||
19 | | ||||
20 | #include "abstractrunner.h" | ||||
21 | #include "abstractrunner_p.h" | ||||
22 | | ||||
23 | #include <QDebug> | ||||
24 | | ||||
25 | using namespace KDBusRunner; | ||||
26 | | ||||
27 | AbstractRunner::AbstractRunner(const QString &dBusObjectPath, const QString &dBusServiceName, QObject *parent) | ||||
28 | : QObject(parent) | ||||
29 | , d(new AbstractRunnerPrivate(dBusObjectPath, dBusServiceName, this)) | ||||
30 | { | ||||
31 | } | ||||
32 | | ||||
33 | AbstractRunner::~AbstractRunner() = default; | ||||
34 | | ||||
35 | | ||||
36 | void AbstractRunner::setEnabled(bool enabled) | ||||
37 | { | ||||
38 | d->setEnabled(enabled); | ||||
39 | } | ||||
40 | | ||||
41 | bool AbstractRunner::isEnabled() const | ||||
42 | { | ||||
43 | return d->isEnabled(); | ||||
44 | } | ||||
45 | | ||||
46 | Actions AbstractRunner::actions() const | ||||
47 | { | ||||
48 | return {}; | ||||
49 | } |