![]() |
![]() |
![]() |
GIO Reference Manual | ![]() |
---|---|---|---|---|
enum GPasswordFlags; enum GPasswordSave; GMountOperation; GMountOperation* g_mount_operation_new (void); const char* g_mount_operation_get_username (GMountOperation *op); void g_mount_operation_set_username (GMountOperation *op, const char *username); const char* g_mount_operation_get_password (GMountOperation *op); void g_mount_operation_set_password (GMountOperation *op, const char *password); gboolean g_mount_operation_get_anonymous (GMountOperation *op); void g_mount_operation_set_anonymous (GMountOperation *op, gboolean anonymous); const char* g_mount_operation_get_domain (GMountOperation *op); void g_mount_operation_set_domain (GMountOperation *op, const char *domain); GPasswordSave g_mount_operation_get_password_save (GMountOperation *op); void g_mount_operation_set_password_save (GMountOperation *op, GPasswordSave save); int g_mount_operation_get_choice (GMountOperation *op); void g_mount_operation_set_choice (GMountOperation *op, int choice); void g_mount_operation_reply (GMountOperation *op, gboolean abort);
typedef enum { G_PASSWORD_FLAGS_NEED_PASSWORD = 1<<0, G_PASSWORD_FLAGS_NEED_USERNAME = 1<<1, G_PASSWORD_FLAGS_NEED_DOMAIN = 1<<2, G_PASSWORD_FLAGS_SAVING_SUPPORTED = 1<<4, G_PASSWORD_FLAGS_ANON_SUPPORTED = 1<<5 } GPasswordFlags;
typedef enum { G_PASSWORD_SAVE_NEVER, G_PASSWORD_SAVE_FOR_SESSION, G_PASSWORD_SAVE_PERMANENTLY } GPasswordSave;
GMountOperation* g_mount_operation_new (void);
Returns : |
a new GMountOperation. |
const char* g_mount_operation_get_username (GMountOperation *op);
|
|
Returns : |
void g_mount_operation_set_username (GMountOperation *op, const char *username);
|
|
|
input username. |
const char* g_mount_operation_get_password (GMountOperation *op);
|
|
Returns : |
void g_mount_operation_set_password (GMountOperation *op, const char *password);
Sets the mount operation's password to password
.
|
the given GMountOperation. |
|
password to set. |
gboolean g_mount_operation_get_anonymous (GMountOperation *op);
|
|
Returns : |
TRUE if mount operation is anonymous.
|
void g_mount_operation_set_anonymous (GMountOperation *op, gboolean anonymous);
|
the given GMountOperation. |
|
boolean value. |
const char* g_mount_operation_get_domain (GMountOperation *op);
|
|
Returns : |
a const string set to the domain. |
void g_mount_operation_set_domain (GMountOperation *op, const char *domain);
Sets the mount operation's domain.
|
the given GMountOperation. |
|
the domain to set. |
GPasswordSave g_mount_operation_get_password_save (GMountOperation *op);
|
the given GMountOperation. |
Returns : |
GPasswordSave. |
void g_mount_operation_set_password_save (GMountOperation *op, GPasswordSave save);
|
|
|
GPasswordSave |
int g_mount_operation_get_choice (GMountOperation *op);
|
|
Returns : |
void g_mount_operation_set_choice (GMountOperation *op, int choice);
|
|
|
void g_mount_operation_reply (GMountOperation *op, gboolean abort);
Emits the "Reply" signal with the abort flag set to
abort
.
|
GMountOperation. |
|
boolean. |
"ask-password"
signalgboolean user_function (GMountOperation *gmountoperation, gchar *arg1, gchar *arg2, gchar *arg3, guint arg4, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
|
|
|
|
|
|
user data set when the signal handler was connected. |
Returns : |
"ask-question"
signalgboolean user_function (GMountOperation *gmountoperation, gchar *arg1, gpointer arg2, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
|
|
user data set when the signal handler was connected. |
Returns : |
"reply"
signalvoid user_function (GMountOperation *gmountoperation, gboolean arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |