| Top |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── PhoshLayerSurface ╰── PhoshSystemModal ╰── PhoshSystemModalDialog ╰── PhoshNetworkAuthPrompt
The PhoshNetworkAuthPrompt is used to request network credentials The responses are then passed to NetworkManager's ShellNetworkAgent.
GtkWidget *
phosh_network_auth_prompt_new (ShellNetworkAgent *agent);
gboolean phosh_network_auth_prompt_set_request (PhoshNetworkAuthPrompt *self,char *request_id,NMConnection *connection,char *setting_name,char **hints,NMSecretAgentGetSecretsFlags flags,const char *title,const char *message,GPtrArray *secrets);
Sets up a network authentication prompt for an auth request.
self |
The prompt |
|
request_id |
The unique id of this authentication request |
|
connection |
The network manager connection |
|
setting_name |
The connection setting name (e.g. 'vpn') |
|
hints |
auth request hints (currently unused) |
|
flags |
Secret flags |
|
title |
The prompt title |
|
message |
The prompt message |
|
secrets |
The secrets to get. |
[nullable] |
typedef struct {
char *name;
char *key;
char *value;
gboolean is_pw;
} PhoshNMSecret;
Used for secret transfer between PhoshNetworkAuthManager and PhoshNetworkAuthPrompt
The secrets name |
||
The key that identifies it to the nm plugin |
||
The value (secret) |
||
gboolean |
Whether this is a secret |
#define PHOSH_TYPE_NETWORK_AUTH_PROMPT (phosh_network_auth_prompt_get_type())
“done” signalvoid user_function (PhoshNetworkAuthPrompt *phoshnetworkauthprompt, gboolean arg1, gpointer user_data)
This signal is emitted when the prompt can be closed. The cancelled argument indicates whether the prompt was cancelled.
Flags: Run Last