253
255
static const std::string& name()
255
static const std::string s{"org.freedesktop.NetworkManager.Device"};
257
static const std::string s{NM_DBUS_INTERFACE_DEVICE};
263
unknown = NM_DEVICE_TYPE_UNKNOWN,
264
ethernet = NM_DEVICE_TYPE_ETHERNET,
265
wifi = NM_DEVICE_TYPE_WIFI,
266
unused_1 = NM_DEVICE_TYPE_UNUSED1,
267
unused_2 = NM_DEVICE_TYPE_UNUSED2,
268
bluetooth = NM_DEVICE_TYPE_BT,
269
olpc_mesh = NM_DEVICE_TYPE_OLPC_MESH,
270
wimax = NM_DEVICE_TYPE_WIMAX,
271
modem = NM_DEVICE_TYPE_MODEM,
272
infiniband = NM_DEVICE_TYPE_INFINIBAND,
273
bond = NM_DEVICE_TYPE_BOND,
274
vlan = NM_DEVICE_TYPE_VLAN,
275
adsl = NM_DEVICE_TYPE_ADSL,
276
bridge = NM_DEVICE_TYPE_BRIDGE
279
281
static const std::string& name()
281
static const std::string s{"org.freedesktop.NetworkManager.Device.Wireless"};
283
static const std::string s{NM_DBUS_INTERFACE_DEVICE_WIRELESS};
717
719
Service(const core::dbus::Bus::Ptr& bus)
719
721
auto service = core::dbus::Service::use_service<Interface::NetworkManager>(bus);
720
auto object = service->object_for_path(core::dbus::types::ObjectPath("/org/freedesktop/NetworkManager"));
722
auto object = service->object_for_path(core::dbus::types::ObjectPath(NM_DBUS_PATH));
721
723
nm = std::make_shared<Interface::NetworkManager>(service, object);
728
730
Mock(const core::dbus::Bus::Ptr& bus)
730
732
auto service = core::dbus::Service::add_service<Interface::NetworkManager>(bus);
731
auto object = service->add_object_for_path(core::dbus::types::ObjectPath("/org/freedesktop/NetworkManager"));
733
auto object = service->add_object_for_path(core::dbus::types::ObjectPath(NM_DBUS_PATH));
732
734
nm = std::make_shared<Interface::NetworkManager>(service, object);