forked from Garikk/kk-dbus-nm-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NetworkManagerIface.java
84 lines (78 loc) · 3.16 KB
/
NetworkManagerIface.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package org.freedesktop;
import java.util.List;
import java.util.Map;
import org.freedesktop.dbus.interfaces.DBusInterface;
import org.freedesktop.dbus.annotations.DBusInterfaceName;
import org.freedesktop.dbus.messages.DBusSignal;
import org.freedesktop.dbus.types.Variant;
import org.freedesktop.dbus.exceptions.DBusException;
import org.freedesktop.dbus.types.UInt32;
import org.freedesktop.dbus.DBusPath;
@DBusInterfaceName("org.freedesktop.NetworkManager")
public interface NetworkManagerIface extends DBusInterface
{
public static final String _WIRELESS_IFACE = "org.freedesktop.NetworkManager.Device.Wireless";
public static final String _WIRED_IFACE = "org.freedesktop.NetworkManager.Device.Wired";
public static final String _DEVICE_IFACE = "org.freedesktop.NetworkManager.Device";
public static final String _IP4CONFIG_IFACE = "org.freedesktop.NetworkManager.IP4Config";
public static final String _ACTIVE_IFACE = "org.freedesktop.NetworkManager.Connection.Active";
public static final String _AP_IFACE = "org.freedesktop.NetworkManager.AccessPoint";
public static final String _CONNECTION_IFACE = "org.freedesktop.NetworkManager.Settings.Connection";
public static final String _SETTINGS_IFACE = "org.freedesktop.NetworkManager.Settings";
public static final String _NM_IFACE = "org.freedesktop.NetworkManager";
public static final String _NM_PATH = "/org/freedesktop/NetworkManager";
public static class DeviceRemoved extends DBusSignal
{
public final DBusInterface a;
public DeviceRemoved(String path, DBusInterface a) throws DBusException
{
super(path, a);
this.a = a;
}
}
public static class DeviceAdded extends DBusSignal
{
public final DBusInterface a;
public DeviceAdded(String path, DBusInterface a) throws DBusException
{
super(path, a);
this.a = a;
}
}
public static class PropertiesChanged extends DBusSignal
{
public final Map<String,Variant> a;
public PropertiesChanged(String path, Map<String,Variant> a) throws DBusException
{
super(path, a);
this.a = a;
}
}
public static class StateChanged extends DBusSignal
{
public final UInt32 a;
public StateChanged(String path, UInt32 a) throws DBusException
{
super(path, a);
this.a = a;
}
}
public static class CheckPermissions extends DBusSignal
{
public CheckPermissions(String path) throws DBusException
{
super(path);
}
}
public UInt32 state();
public Pair<String, String> GetLogging();
public void SetLogging(String level, String domains);
public Map<String,String> GetPermissions();
public void Enable(boolean enable);
public void Sleep(boolean sleep);
public void DeactivateConnection(DBusInterface active_connection);
public Pair<DBusPath, DBusPath> AddAndActivateConnection(Map<String,Map<String,Variant<?>>> connection, DBusPath device, DBusPath specific_object);
public DBusPath ActivateConnection(DBusPath connection, DBusPath device, DBusPath specific_object);
public DBusInterface GetDeviceByIpIface(String iface);
public List<DBusPath> GetDevices();
}