diff options
| author | Michael Biebl <biebl@debian.org> | 2015-01-22 00:29:39 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2015-01-22 00:29:39 +0100 |
| commit | 2c032d8f1c6292c1338a615e6ec40252889ba85c (patch) | |
| tree | 1f77182220b2b0264288ba4a476ab47e5bc48716 /examples/C/qt/change-ipv4-addresses.cpp | |
| parent | 33491bc4279481db8ae47213e34a6d695a0e8830 (diff) | |
Imported Upstream version 1.0.0 upstream/1.0.0
Diffstat (limited to 'examples/C/qt/change-ipv4-addresses.cpp')
| -rw-r--r-- | examples/C/qt/change-ipv4-addresses.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/C/qt/change-ipv4-addresses.cpp b/examples/C/qt/change-ipv4-addresses.cpp index ca340f7f..8ca3dde2 100644 --- a/examples/C/qt/change-ipv4-addresses.cpp +++ b/examples/C/qt/change-ipv4-addresses.cpp @@ -22,10 +22,10 @@ * It uses Qt and D-Bus libraries to do that. * * Standalone compilation: - * g++ -Wall `pkg-config --libs --cflags NetworkManager QtCore QtDBus QtNetwork` change-ipv4-addresses.cpp -o change-ipv4-addresses + * g++ -Wall `pkg-config --libs --cflags QtCore QtDBus QtNetwork` `pkg-config --cflags libnm` change-ipv4-addresses.cpp -o change-ipv4-addresses * * You don't need to have NetworkManager devel package installed; you can just - * grab NetworkManager.h and put it in the path + * grab nm-dbus-interface.h and put it in the path */ #include <QtDBus/QDBusConnection> @@ -40,7 +40,7 @@ #include "arpa/inet.h" -#include "NetworkManager.h" +#include "nm-dbus-interface.h" typedef QMap<QString, QMap<QString, QVariant> > Connection; Q_DECLARE_METATYPE(Connection) @@ -61,7 +61,7 @@ const QString getConnection(const QString& connectionUuid, Connection *found_con QDBusInterface interface( NM_DBUS_SERVICE, NM_DBUS_PATH_SETTINGS, - NM_DBUS_IFACE_SETTINGS, + NM_DBUS_INTERFACE_SETTINGS, QDBusConnection::systemBus()); // Get connection list and find the connection with 'connectionUuid' @@ -71,7 +71,7 @@ const QString getConnection(const QString& connectionUuid, Connection *found_con ifaceForSettings = new QDBusInterface( NM_DBUS_SERVICE, connection.path(), - NM_DBUS_IFACE_SETTINGS_CONNECTION, + NM_DBUS_INTERFACE_SETTINGS_CONNECTION, QDBusConnection::systemBus()); QDBusReply<Connection> result2 = ifaceForSettings->call("GetSettings"); delete ifaceForSettings; @@ -120,7 +120,7 @@ void changeConnection(const QString& uuid) QDBusInterface interface( NM_DBUS_SERVICE, conPath, - NM_DBUS_IFACE_SETTINGS_CONNECTION, + NM_DBUS_INTERFACE_SETTINGS_CONNECTION, QDBusConnection::systemBus()); // Call Update() D-Bus method to update connection |