debian: fix build-deps for focal
[amule.git] / src / utils / plasmamule / plasmamule-dbus.cpp
bloba9400dc92e85f654d849359d018558643aca940b
1 //
2 // This file is part of the aMule Project.
3 //
4 // Copyright (c) 2010-2011 Werner Mahr (Vollstrecker) <amule@vollstreckernet.de>
5 //
6 // Any parts of this program contributed by third-party developers are copyrighted
7 // by their respective authors.
8 //
9 // This program is free software; you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License as published by
11 // the Free Software Foundation; either version 3 of the License, or
12 // (at your option) any later version.
14 // This program is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU General Public License for more details.
19 // You should have received a copy of the GNU General Public License
20 // along with this program; if not, write to the Free Software
21 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 #include "plasmamule-dbus.h"
26 #include <kdebug.h>
28 #include <QtDBus/QDBusConnection>
29 #include <QtDBus/QDBusInterface>
31 void sendLinkToEngine (QString link, int cat, QObject* obj, int debugChannel)
33 QDBusConnection bus = QDBusConnection::sessionBus();
34 QDBusInterface *interface = new QDBusInterface("org.amule.engine", "/Link", "org.amule.engine", bus, obj);
35 interface->call("engine_add_link", link, cat);
36 kDebug(debugChannel) << "Sent Link " << link << "with cat " << cat;