Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | epc_password_dialog_new () |
void | epc_password_dialog_set_anonymous_allowed () |
gboolean | epc_password_dialog_get_anonymous_allowed () |
void | epc_password_dialog_set_anonymous () |
gboolean | epc_password_dialog_is_anonymous () |
void | epc_password_dialog_set_username () |
const gchar * | epc_password_dialog_get_username () |
void | epc_password_dialog_set_password () |
const gchar * | epc_password_dialog_get_password () |
void | epc_password_dialog_set_realm () |
const gchar * | epc_password_dialog_get_realm () |
void | epc_password_dialog_attach () |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── GtkDialog ╰── EpcPasswordDialog
The EpcPasswordDialog provides an user interface for the most common authentication scenarios.
GtkWidget * epc_password_dialog_new (const gchar *title
,GtkWindow *parent
,const gchar *realm
,const gchar *first_button_text
,...
);
Creates a new EpcPasswordDialog instance.
void epc_password_dialog_set_anonymous_allowed (EpcPasswordDialog *dialog
,gboolean allowed
);
Toggles anonymous authentication support. With anonymous authentication support an aditional checkbox for requesting anonymous authentication is shown. See “anonymous-allowed” for details.
See also: epc_password_dialog_set_anonymous()
gboolean
epc_password_dialog_get_anonymous_allowed
(EpcPasswordDialog *dialog
);
Queries if anonymous authentication is supported. With anonymous authentication support an aditional checkbox for requesting anonymous authentication is shown. See “anonymous-allowed” for details.
See also: epc_password_dialog_is_anonymous()
void epc_password_dialog_set_anonymous (EpcPasswordDialog *dialog
,gboolean anonymous
);
See also: epc_password_dialog_set_anonymous_allowed()
Changes the anonymous authentication state. See “anonymous” for details.
gboolean
epc_password_dialog_is_anonymous (EpcPasswordDialog *dialog
);
Queries if anonymous authentication is requested. See “anonymous” for details.
void epc_password_dialog_set_username (EpcPasswordDialog *dialog
,const gchar *username
);
Changes the current user name of the dialog. See “username” for details.
const gchar *
epc_password_dialog_get_username (EpcPasswordDialog *dialog
);
Queries the current user name of the dialog. See “username” for details.
void epc_password_dialog_set_password (EpcPasswordDialog *dialog
,const gchar *password
);
Changes the current password of the dialog. See “password” for details.
const gchar *
epc_password_dialog_get_password (EpcPasswordDialog *dialog
);
Queries the current password of the dialog. See “password” for details.
void epc_password_dialog_set_realm (EpcPasswordDialog *dialog
,const gchar *realm
);
Changes the authentication realm the dialog shows. See “realm” for details.
const gchar *
epc_password_dialog_get_realm (EpcPasswordDialog *dialog
);
Queries the authentication realm of the dialog. See “realm” for details.
void epc_password_dialog_attach (EpcPasswordDialog *dialog
,EpcConsumer *consumer
);
Installs a EpcPasswordDialog as authentication handler for some EpcConsumer by connecting to its “authenticate” and “reauthenticate” signals.
struct EpcPasswordDialogClass { };
Virtual methods of the EpcPasswordDialog class.
typedef struct _EpcPasswordDialogPrivate EpcPasswordDialogPrivate;
Private fields of the EpcPasswordDialog class.
“anonymous”
property“anonymous” gboolean
Try to use anonymous authentication.
Flags: Read / Write / Construct
Default value: FALSE
“anonymous-allowed”
property“anonymous-allowed” gboolean
Show widget to allow anonymous authentication.
Flags: Read / Write / Construct
Default value: TRUE
“password”
property“password” gchar *
The password to use for authentication.
Flags: Read / Write / Construct
Default value: NULL
“realm”
property“realm” gchar *
The authentication realm the dialog is used for.
Flags: Read / Write / Construct
Default value: NULL
“username”
property“username” gchar *
The username to use for authentication.
Flags: Read / Write / Construct
Default value: "murrayc"