Top | ![]() |
![]() |
![]() |
![]() |
InfGtkAccountCreationDialogInfGtkAccountCreationDialog — A dialog to request a new account on a server. |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── GtkDialog ╰── InfGtkAccountCreationDialog
InfGtkAccountCreationDialog is a dialog widget which allows to request creation of a new account on an infinote server. If the "can-create-acl-account" permission is not granted, the dialog shows an error message instead.
InfGtkAccountCreationDialog * inf_gtk_account_creation_dialog_new (GtkWindow *parent
,GtkDialogFlags dialog_flags
,InfIo *io
,InfBrowser *browser
);
Creates a new InfGtkAccountCreationDialog, which can be used to generate a new account on the infinote directory represented by the given browser.
[constructor]
parent |
Parent GtkWindow of the dialog. |
|
dialog_flags |
Flags for the dialog, see GtkDialogFlags. |
|
io |
A InfIo object to schedule asynchronous operations. |
|
browser |
The InfBrowser for which to create a new account. |
A new InfGtkAccountCreationDialog. Free with
gtk_widget_destroy()
when no longer needed.
[transfer full]
void inf_gtk_account_creation_dialog_set_browser (InfGtkAccountCreationDialog *dlg
,InfBrowser *browser
);
Changes the browser for which to create a new account.
struct InfGtkAccountCreationDialog;
InfGtkAccountCreationDialog is an opaque data type. You should only access it via the public API functions.
struct InfGtkAccountCreationDialogClass { void(*account_created)(InfGtkAccountCreationDialog* dialog, gnutls_x509_privkey_t key, InfCertificateChain* chain, const InfAclAccount* account); };
This structure contains the default signal handlers for the InfGtkAccountCreationDialog class.
“browser”
property“browser” InfBrowser *
The infinote directory for which to create an account.
Owner: InfGtkAccountCreationDialog
Flags: Read / Write / Construct
“io”
property“io” InfIo *
The InfIo object to schedule asynchronous operations.
Owner: InfGtkAccountCreationDialog
Flags: Read / Write / Construct Only
“account-created”
signalvoid user_function (InfGtkAccountCreationDialog *dialog, gpointer key, InfCertificateChain *certificate, InfAclAccount *account, gpointer user_data)
This signal is emitted whenever a new account has been created with the dialog. Along with the created account, the login credentials are provided. Note that the private key is owned by the dialog, and will be deleted after the signal was emitted.
dialog |
The InfGtkAccountCreationDialog emitting the signal. |
|
key |
A newly generated private key that the user certificate is signed with. |
|
certificate |
A certificate signed by the server associated to the new account. |
|
account |
The newly created account. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last