Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.NM.Objects.RemoteConnection
Contents
Description
No description available in the introspection data.
Synopsis
- newtype RemoteConnection = RemoteConnection (ManagedPtr RemoteConnection)
- class (GObject o, IsDescendantOf RemoteConnection o) => IsRemoteConnection o
- toRemoteConnection :: (MonadIO m, IsRemoteConnection o) => o -> m RemoteConnection
- remoteConnectionCommitChanges :: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) => a -> Bool -> Maybe b -> m ()
- remoteConnectionCommitChangesAsync :: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) => a -> Bool -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- remoteConnectionCommitChangesFinish :: (HasCallStack, MonadIO m, IsRemoteConnection a, IsAsyncResult b) => a -> b -> m ()
- remoteConnectionDelete :: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) => a -> Maybe b -> m ()
- remoteConnectionDeleteAsync :: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- remoteConnectionDeleteFinish :: (HasCallStack, MonadIO m, IsRemoteConnection a, IsAsyncResult b) => a -> b -> m ()
- remoteConnectionGetFilename :: (HasCallStack, MonadIO m, IsRemoteConnection a) => a -> m Text
- remoteConnectionGetFlags :: (HasCallStack, MonadIO m, IsRemoteConnection a) => a -> m [SettingsConnectionFlags]
- remoteConnectionGetSecrets :: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) => a -> Text -> Maybe b -> m GVariant
- remoteConnectionGetSecretsAsync :: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- remoteConnectionGetSecretsFinish :: (HasCallStack, MonadIO m, IsRemoteConnection a, IsAsyncResult b) => a -> b -> m GVariant
- remoteConnectionGetUnsaved :: (HasCallStack, MonadIO m, IsRemoteConnection a) => a -> m Bool
- remoteConnectionGetVersionId :: (HasCallStack, MonadIO m, IsRemoteConnection a) => a -> m Word64
- remoteConnectionGetVisible :: (HasCallStack, MonadIO m, IsRemoteConnection a) => a -> m Bool
- remoteConnectionSave :: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) => a -> Maybe b -> m ()
- remoteConnectionSaveAsync :: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- remoteConnectionSaveFinish :: (HasCallStack, MonadIO m, IsRemoteConnection a, IsAsyncResult b) => a -> b -> m ()
- remoteConnectionUpdate2 :: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) => a -> Maybe GVariant -> [SettingsUpdate2Flags] -> Maybe GVariant -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- remoteConnectionUpdate2Finish :: (HasCallStack, MonadIO m, IsRemoteConnection a, IsAsyncResult b) => a -> b -> m GVariant
- getRemoteConnectionFilename :: (MonadIO m, IsRemoteConnection o) => o -> m Text
- getRemoteConnectionFlags :: (MonadIO m, IsRemoteConnection o) => o -> m Word32
- getRemoteConnectionUnsaved :: (MonadIO m, IsRemoteConnection o) => o -> m Bool
- getRemoteConnectionVersionId :: (MonadIO m, IsRemoteConnection o) => o -> m Word64
- getRemoteConnectionVisible :: (MonadIO m, IsRemoteConnection o) => o -> m Bool
Exported types
newtype RemoteConnection Source #
Memory-managed wrapper type.
Constructors
RemoteConnection (ManagedPtr RemoteConnection) |
Instances
Eq RemoteConnection Source # | |
Defined in GI.NM.Objects.RemoteConnection Methods (==) :: RemoteConnection -> RemoteConnection -> Bool # (/=) :: RemoteConnection -> RemoteConnection -> Bool # | |
GObject RemoteConnection Source # | |
Defined in GI.NM.Objects.RemoteConnection | |
ManagedPtrNewtype RemoteConnection Source # | |
Defined in GI.NM.Objects.RemoteConnection Methods toManagedPtr :: RemoteConnection -> ManagedPtr RemoteConnection # | |
TypedObject RemoteConnection Source # | |
Defined in GI.NM.Objects.RemoteConnection | |
HasParentTypes RemoteConnection Source # | |
Defined in GI.NM.Objects.RemoteConnection | |
IsGValue (Maybe RemoteConnection) Source # | Convert |
Defined in GI.NM.Objects.RemoteConnection Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe RemoteConnection -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe RemoteConnection) # | |
type ParentTypes RemoteConnection Source # | |
Defined in GI.NM.Objects.RemoteConnection |
class (GObject o, IsDescendantOf RemoteConnection o) => IsRemoteConnection o Source #
Type class for types which can be safely cast to RemoteConnection
, for instance with toRemoteConnection
.
Instances
(GObject o, IsDescendantOf RemoteConnection o) => IsRemoteConnection o Source # | |
Defined in GI.NM.Objects.RemoteConnection |
toRemoteConnection :: (MonadIO m, IsRemoteConnection o) => o -> m RemoteConnection Source #
Cast to RemoteConnection
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
addSetting, bindProperty, bindPropertyFull, clearSecrets, clearSecretsWithFlags, clearSettings, commitChanges, commitChangesAsync, commitChangesFinish, compare, delete, deleteAsync, deleteFinish, dump, forEachSettingValue, forceFloating, freezeNotify, getv, isFloating, isType, isVirtual, needSecrets, normalize, notify, notifyByPspec, ref, refSink, removeSetting, replaceSettings, replaceSettingsFromConnection, runDispose, save, saveAsync, saveFinish, stealData, stealQdata, thawNotify, toDbus, unref, update2, update2Finish, updateSecrets, verify, verifySecrets, watchClosure.
Getters
getClient, getConnectionType, getData, getFilename, getFlags, getId, getInterfaceName, getPath, getProperty, getQdata, getSecrets, getSecretsAsync, getSecretsFinish, getSetting, getSetting8021x, getSettingAdsl, getSettingBluetooth, getSettingBond, getSettingBridge, getSettingBridgePort, getSettingByName, getSettingCdma, getSettingConnection, getSettingDcb, getSettingDummy, getSettingGeneric, getSettingGsm, getSettingInfiniband, getSettingIp4Config, getSettingIp6Config, getSettingIpTunnel, getSettingMacsec, getSettingMacvlan, getSettingOlpcMesh, getSettingOvsBridge, getSettingOvsInterface, getSettingOvsPatch, getSettingOvsPort, getSettingPpp, getSettingPppoe, getSettingProxy, getSettingSerial, getSettingTcConfig, getSettingTeam, getSettingTeamPort, getSettingTun, getSettingVlan, getSettingVpn, getSettingVxlan, getSettingWimax, getSettingWired, getSettingWireless, getSettingWirelessSecurity, getSettings, getUnsaved, getUuid, getVersionId, getVirtualDeviceDescription, getVisible.
Setters
commitChanges
remoteConnectionCommitChanges Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) | |
=> a |
|
-> Bool |
|
-> Maybe b |
|
-> m () | (Can throw |
Deprecated: (Since version 1.22)Use remoteConnectionCommitChangesAsync
or GDBusConnection.
Send any local changes to the settings and properties of connection
to
NetworkManager. If saveToDisk
is True
, the updated connection will be saved to
disk; if False
, then only the in-memory representation will be changed.
commitChangesAsync
remoteConnectionCommitChangesAsync Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) | |
=> a |
|
-> Bool |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
commitChangesFinish
remoteConnectionCommitChangesFinish Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Gets the result of a call to remoteConnectionCommitChangesAsync
.
delete
remoteConnectionDelete Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m () | (Can throw |
Deprecated: (Since version 1.22)Use remoteConnectionDeleteAsync
or GDBusConnection.
Deletes the connection.
deleteAsync
remoteConnectionDeleteAsync Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously deletes the connection.
deleteFinish
remoteConnectionDeleteFinish Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Gets the result of a call to remoteConnectionDeleteAsync
.
getFilename
remoteConnectionGetFilename Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a) | |
=> a |
|
-> m Text | Returns: file that stores the connection in case the connection is file-backed. |
No description available in the introspection data.
Since: 1.12
getFlags
remoteConnectionGetFlags Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a) | |
=> a |
|
-> m [SettingsConnectionFlags] | Returns: the flags of the connection of type |
No description available in the introspection data.
Since: 1.12
getSecrets
remoteConnectionGetSecrets Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> m GVariant | Returns: a Warning: NMClient contains a cache of objects on D-Bus. This cache gets updated
with D-Bus signals when iterating the GMainContext. This function performs a
(pseudo) blocking D-Bus call. Aside blocking, the result will not be in sync
and not be ordered with the content of the NMClient cache.
This function used to be deprecated between 1.22 and 1.38 releases. (Can throw |
Request the connection's secrets. Note that this is a blocking D-Bus call, not a simple property accessor.
getSecretsAsync
remoteConnectionGetSecretsAsync Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously requests the connection's secrets.
getSecretsFinish
remoteConnectionGetSecretsFinish Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m GVariant | Returns: a |
Gets the result of a call to remoteConnectionGetSecretsAsync
.
getUnsaved
remoteConnectionGetUnsaved Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a) | |
=> a |
|
-> m Bool | Returns: |
No description available in the introspection data.
getVersionId
remoteConnectionGetVersionId Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a) | |
=> a |
|
-> m Word64 | Returns: the version-id of the profile. This ID is incremented whenever the profile is modified. |
No description available in the introspection data.
Since: 1.44
getVisible
remoteConnectionGetVisible Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a) | |
=> a |
|
-> m Bool | Returns: |
Checks if the connection is visible to the current user. If the
connection is not visible then it is essentially useless; it will
not contain any settings, and operations such as
remoteConnectionSave
and remoteConnectionDelete
will
always fail. (NMRemoteSettings
will not normally return
non-visible connections to callers, but it is possible for a
connection's visibility to change after you already have a
reference to it.)
save
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m () | (Can throw |
Deprecated: (Since version 1.22)Use remoteConnectionSaveAsync
or GDBusConnection.
Saves the connection to disk if the connection has changes that have not yet been written to disk, or if the connection has never been saved.
saveAsync
remoteConnectionSaveAsync Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Saves the connection to disk if the connection has changes that have not yet been written to disk, or if the connection has never been saved.
saveFinish
remoteConnectionSaveFinish Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Gets the result of a call to remoteConnectionSaveAsync
.
update2
remoteConnectionUpdate2 Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a, IsCancellable b) | |
=> a |
|
-> Maybe GVariant |
|
-> [SettingsUpdate2Flags] |
|
-> Maybe GVariant |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously calls the Update2()
D-Bus method.
Since: 1.12
update2Finish
remoteConnectionUpdate2Finish Source #
Arguments
:: (HasCallStack, MonadIO m, IsRemoteConnection a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m GVariant | Returns: on success, a |
Gets the result of a call to remoteConnectionCommitChangesAsync
.
Since: 1.12
Properties
filename
File that stores the connection in case the connection is file-backed.
Since: 1.12
getRemoteConnectionFilename :: (MonadIO m, IsRemoteConnection o) => o -> m Text Source #
Get the value of the “filename
” property.
When overloading is enabled, this is equivalent to
get
remoteConnection #filename
flags
The flags of the connection as unsigned integer. The values
correspond to the SettingsConnectionFlags
enum.
Since: 1.12
getRemoteConnectionFlags :: (MonadIO m, IsRemoteConnection o) => o -> m Word32 Source #
Get the value of the “flags
” property.
When overloading is enabled, this is equivalent to
get
remoteConnection #flags
unsaved
True
if the remote connection contains changes that have not been saved
to disk, False
if the connection is the same as its on-disk representation.
getRemoteConnectionUnsaved :: (MonadIO m, IsRemoteConnection o) => o -> m Bool Source #
Get the value of the “unsaved
” property.
When overloading is enabled, this is equivalent to
get
remoteConnection #unsaved
versionId
The version ID of the profile that is incremented when the profile gets modified. This can be used to track concurrent modifications of the profile.
Since: 1.44
getRemoteConnectionVersionId :: (MonadIO m, IsRemoteConnection o) => o -> m Word64 Source #
Get the value of the “version-id
” property.
When overloading is enabled, this is equivalent to
get
remoteConnection #versionId
visible
True
if the remote connection is visible to the current user, False
if
not. If the connection is not visible then it is essentially useless; it
will not contain any settings, and operations such as
remoteConnectionSave
and remoteConnectionDelete
will always
fail. (NMRemoteSettings
will not normally return non-visible connections
to callers, but it is possible for a connection's visibility to change
after you already have a reference to it.)
getRemoteConnectionVisible :: (MonadIO m, IsRemoteConnection o) => o -> m Bool Source #
Get the value of the “visible
” property.
When overloading is enabled, this is equivalent to
get
remoteConnection #visible