Blame docs/api/html/gdbus-org.freedesktop.NetworkManager.Settings.html

Packit 5756e2
Packit 5756e2
<html>
Packit 5756e2
<head>
Packit 5756e2
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Packit 5756e2
<title>org.freedesktop.NetworkManager.Settings: NetworkManager Reference Manual</title>
Packit 5756e2
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
Packit 5756e2
<link rel="home" href="index.html" title="NetworkManager Reference Manual">
Packit 5756e2
<link rel="up" href="ref-dbus-settings-manager.html" title="The /org/freedesktop/NetworkManager/Settings object">
Packit 5756e2
<link rel="prev" href="ref-dbus-settings-manager.html" title="The /org/freedesktop/NetworkManager/Settings object">
Packit 5756e2
<link rel="next" href="ref-dbus-settings.html" title="The /org/freedesktop/NetworkManager/Settings/* objects">
Packit Service 018b0a
<meta name="generator" content="GTK-Doc V1.33.0 (XML mode)">
Packit 5756e2
<link rel="stylesheet" href="style.css" type="text/css">
Packit 5756e2
</head>
Packit 5756e2
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
Packit 5756e2
Packit 5756e2
Packit 5756e2
Top  | 
Packit 5756e2
                  Description  | 
Packit 5756e2
                  Properties  | 
Packit 5756e2
                  Signals
Packit 5756e2
Packit 5756e2
Home
Packit 5756e2
Up
Packit 5756e2
Prev
Packit 5756e2
Next
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

org.freedesktop.NetworkManager.Settings

Packit 5756e2

org.freedesktop.NetworkManager.Settings — Connection Settings Profile Manager

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Methods

Packit 5756e2
Packit 5756e2
ListConnections      (OUT ao        connections);
Packit 5756e2
GetConnectionByUuid  (IN  s         uuid,
Packit 5756e2
                      OUT o         connection);
Packit 5756e2
AddConnection        (IN  a{sa{sv}} connection,
Packit 5756e2
                      OUT o         path);
Packit 5756e2
AddConnectionUnsaved (IN  a{sa{sv}} connection,
Packit 5756e2
                      OUT o         path);
Packit 5756e2
AddConnection2       (IN  a{sa{sv}} settings,
Packit 5756e2
                      IN  u         flags,
Packit 5756e2
                      IN  a{sv}     args,
Packit 5756e2
                      OUT o         path,
Packit 5756e2
                      OUT a{sv}     result);
Packit 5756e2
LoadConnections      (IN  as        filenames,
Packit 5756e2
                      OUT b         status,
Packit 5756e2
                      OUT as        failures);
Packit 5756e2
ReloadConnections    (OUT b         status);
Packit 5756e2
SaveHostname         (IN  s         hostname);
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Signals

Packit 5756e2
Packit 5756e2
PropertiesChanged (a{sv} properties);
Packit 5756e2
NewConnection     (o     connection);
Packit 5756e2
ConnectionRemoved (o     connection);
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Properties

Packit 5756e2
Packit 5756e2
Connections  readable   ao
Packit 5756e2
Hostname     readable   s
Packit 5756e2
CanModify    readable   b
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Description

Packit 5756e2

The Settings interface allows clients to view and administrate the

Packit 5756e2
      connections stored and used by NetworkManager.
Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2

Method Details

Packit 5756e2
Packit 5756e2

The ListConnections() method

Packit 5756e2
Packit 5756e2
ListConnections (OUT ao connections);
Packit 5756e2
Packit 5756e2

List the saved network connections known to NetworkManager.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT ao connections:

Packit 5756e2

List of connections.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The GetConnectionByUuid() method

Packit 5756e2
Packit 5756e2
GetConnectionByUuid (IN  s uuid,
Packit 5756e2
                     OUT o connection);
Packit 5756e2
Packit 5756e2

Retrieve the object path of a connection, given that connection's UUID.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN s uuid:

Packit 5756e2

The UUID to find the connection object path for.

Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT o connection:

Packit 5756e2

The connection's object path.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The AddConnection() method

Packit 5756e2
Packit 5756e2
AddConnection (IN  a{sa{sv}} connection,
Packit 5756e2
               OUT o         path);
Packit 5756e2
Packit 5756e2

Add new connection and save it to disk. This operation does not start the

Packit 5756e2
        network connection unless (1) device is idle and able to connect to the
Packit 5756e2
        network described by the new connection, and (2) the connection is allowed
Packit 5756e2
        to be started automatically.
Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN a{sa{sv}} connection:

Packit 5756e2

Connection settings and properties.

Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT o path:

Packit 5756e2

Object path of the new connection that was just added.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The AddConnectionUnsaved() method

Packit 5756e2
Packit 5756e2
AddConnectionUnsaved (IN  a{sa{sv}} connection,
Packit 5756e2
                      OUT o         path);
Packit 5756e2
Packit 5756e2

Add new connection but do not save it to disk immediately. This operation

Packit 5756e2
        does not start the network connection unless (1) device is idle and able
Packit 5756e2
        to connect to the network described by the new connection, and (2) the
Packit 5756e2
        connection is allowed to be started automatically. Use the 'Save' method
Packit 5756e2
        on the connection to save these changes to disk.
Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN a{sa{sv}} connection:

Packit 5756e2

Connection settings and properties.

Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT o path:

Packit 5756e2

Object path of the new connection that was just added.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The AddConnection2() method

Packit 5756e2
Packit 5756e2
AddConnection2 (IN  a{sa{sv}} settings,
Packit 5756e2
                IN  u         flags,
Packit 5756e2
                IN  a{sv}     args,
Packit 5756e2
                OUT o         path,
Packit 5756e2
                OUT a{sv}     result);
Packit 5756e2
Packit 5756e2

"0x1" (to-disk),

Packit 5756e2
          "0x2" (in-memory),
Packit 5756e2
          "0x20" (block-autoconnect).
Packit 5756e2
          Unknown flags cause the call to fail.
Packit 5756e2
        args: optional arguments dictionary, for extentibility. Currently, no
Packit 5756e2
          arguments are accepted. Specifying unknown keys causes the call
Packit 5756e2
          to fail.
Packit 5756e2
        path: Object path of the new connection that was just added.
Packit 5756e2
        result: output argument, currently no additional results are returned.
Packit 5756e2

Packit 5756e2

Add a new connection profile.

Packit 5756e2

Packit 5756e2

Either the flags 0x1 (to-disk) or 0x2 (in-memory) must be specified.

Packit 5756e2
        The effect is whether to behave like AddConnection or AddConnectionUnsaved.
Packit 5756e2
        If 0x20 (block-autoconnect) is specified, autoconnect for the new profile
Packit 5756e2
        is blocked from the beginning. Otherwise, the profile might automatically
Packit 5756e2
        connect if a suitable device is around.
Packit 5756e2

Packit 5756e2

AddConnection2 is a extensible alternative to AddConnection, and AddConnectionUnsaved.

Packit 5756e2
        The new variant can do everything that the older variants could, and more.
Packit 5756e2

Packit 5756e2

Since: 1.20

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN a{sa{sv}} settings:

Packit 5756e2

New connection settings, properties, and (optionally) secrets.

Packit 5756e2
Packit 5756e2
Packit 5756e2

IN u flags:

Packit 5756e2

optional flags argument. Currently, the following flags are supported:

Packit 5756e2
Packit 5756e2
Packit 5756e2

IN a{sv} args:

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT o path:

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT a{sv} result:

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The LoadConnections() method

Packit 5756e2
Packit 5756e2
LoadConnections (IN  as filenames,
Packit 5756e2
                 OUT b  status,
Packit 5756e2
                 OUT as failures);
Packit 5756e2
Packit 5756e2

Note that before 1.20, NetworkManager had a bug and this status value was wrong. It is better to assume success if the method does not return with a D-Bus error. On top of that, you can look at failures to know whether any of the requested files failed.

Packit 5756e2
        failures: Paths of connection files that could not be loaded.
Packit 5756e2

Packit 5756e2

Loads or reloads the indicated connections from disk. You should call this

Packit 5756e2
        after making changes directly to an on-disk connection file to make sure
Packit 5756e2
        that NetworkManager sees the changes.
Packit 5756e2
        As with AddConnection(), this operation does not necessarily
Packit 5756e2
        start the network connection.
Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN as filenames:

Packit 5756e2

Array of paths to on-disk connection profiles in directories monitored by NetworkManager.

Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT b status:

Packit 5756e2

Success or failure of the operation as a whole. True if NetworkManager at least tried to load the indicated connections, even if it did not succeed. False if an error occurred before trying to load the connections (eg, permission denied).

Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT as failures:

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The ReloadConnections() method

Packit 5756e2
Packit 5756e2
ReloadConnections (OUT b status);
Packit 5756e2
Packit 5756e2

Tells NetworkManager to reload all connection files from disk, including

Packit 5756e2
        noticing any added or deleted connection files.
Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT b status:

Packit 5756e2

This always returns TRUE.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The SaveHostname() method

Packit 5756e2
Packit 5756e2
SaveHostname (IN  s hostname);
Packit 5756e2
Packit 5756e2

Save the hostname to persistent configuration.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN s hostname:

Packit 5756e2

The hostname to save to persistent configuration. If blank, the persistent hostname is cleared.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Signal Details

Packit 5756e2
Packit 5756e2

The "PropertiesChanged" signal

Packit 5756e2
Packit 5756e2
PropertiesChanged (a{sv} properties);
Packit 5756e2
Packit 5756e2

DEPRECATED. Use the standard "PropertiesChanged" signal from "org.freedesktop.DBus.Properties" instead which exists since version NetworkManager 1.2.0.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

a{sv} properties:

Packit 5756e2

A dictionary mapping property names to variant boxed values

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "NewConnection" signal

Packit 5756e2
Packit 5756e2
NewConnection (o connection);
Packit 5756e2
Packit 5756e2

Emitted when a new connection has been added after NetworkManager has

Packit 5756e2
        started up and initialized. This signal is not emitted for connections
Packit 5756e2
        read while starting up, because NetworkManager's D-Bus service is only
Packit 5756e2
        available after all connections have been read, and to prevent spamming
Packit 5756e2
        listeners with too many signals at one time. To retrieve the initial
Packit 5756e2
        connection list, call the ListConnections() method once, and then listen
Packit 5756e2
        for individual Settings.NewConnection and Settings.Connection.Deleted
Packit 5756e2
        signals for further updates.
Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

o connection:

Packit 5756e2

Object path of the new connection.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "ConnectionRemoved" signal

Packit 5756e2
Packit 5756e2
ConnectionRemoved (o connection);
Packit 5756e2
Packit 5756e2

Emitted when a connection is no longer available. This happens when the

Packit 5756e2
        connection is deleted or if it is no longer accessible by any of the
Packit 5756e2
        system's logged-in users. After receipt of this signal, the connection no
Packit 5756e2
        longer exists and cannot be used. Also see the Settings.Connection.Removed
Packit 5756e2
        signal.
Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

o connection:

Packit 5756e2

Object path of the removed connection.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Property Details

Packit 5756e2
Packit 5756e2

The "Connections" property

Packit 5756e2
Packit 5756e2
Connections  readable   ao
Packit 5756e2
Packit 5756e2

List of object paths of available network connection profiles.

Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "Hostname" property

Packit 5756e2
Packit 5756e2
Hostname  readable   s
Packit 5756e2
Packit 5756e2

The machine hostname stored in persistent configuration.

Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "CanModify" property

Packit 5756e2
Packit 5756e2
CanModify  readable   b
Packit 5756e2
Packit 5756e2

If true, adding and modifying connections is supported.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit Service 018b0a

Generated by GTK-Doc V1.33.0
Packit 5756e2
</body>
Packit 5756e2
</html>