GMountOperation

GMountOperation

Synopsis




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);


Object Hierarchy


  GObject
   +----GMountOperation

Signals


  "ask-password"                                   : Run Last
  "ask-question"                                   : Run Last
  "reply"                                          : Run Last

Description

Details

enum GPasswordFlags

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;


enum GPasswordSave

typedef enum {
  G_PASSWORD_SAVE_NEVER,
  G_PASSWORD_SAVE_FOR_SESSION,
  G_PASSWORD_SAVE_PERMANENTLY
} GPasswordSave;


GMountOperation

typedef struct _GMountOperation GMountOperation;


g_mount_operation_new ()

GMountOperation*    g_mount_operation_new               (void);

Returns :

a new GMountOperation.

g_mount_operation_get_username ()

const char*         g_mount_operation_get_username      (GMountOperation *op);

op :

Returns :


g_mount_operation_set_username ()

void                g_mount_operation_set_username      (GMountOperation *op,
                                                         const char *username);

op :

username :

input username.

g_mount_operation_get_password ()

const char*         g_mount_operation_get_password      (GMountOperation *op);

op :

Returns :


g_mount_operation_set_password ()

void                g_mount_operation_set_password      (GMountOperation *op,
                                                         const char *password);

Sets the mount operation's password to password.

op :

the given GMountOperation.

password :

password to set.

g_mount_operation_get_anonymous ()

gboolean            g_mount_operation_get_anonymous     (GMountOperation *op);

op :

Returns :

TRUE if mount operation is anonymous.

g_mount_operation_set_anonymous ()

void                g_mount_operation_set_anonymous     (GMountOperation *op,
                                                         gboolean anonymous);

op :

the given GMountOperation.

anonymous :

boolean value.

g_mount_operation_get_domain ()

const char*         g_mount_operation_get_domain        (GMountOperation *op);

op :

Returns :

a const string set to the domain.

g_mount_operation_set_domain ()

void                g_mount_operation_set_domain        (GMountOperation *op,
                                                         const char *domain);

Sets the mount operation's domain.

op :

the given GMountOperation.

domain :

the domain to set.

g_mount_operation_get_password_save ()

GPasswordSave       g_mount_operation_get_password_save (GMountOperation *op);

op :

the given GMountOperation.

Returns :

GPasswordSave.

g_mount_operation_set_password_save ()

void                g_mount_operation_set_password_save (GMountOperation *op,
                                                         GPasswordSave save);

op :

save :

GPasswordSave

g_mount_operation_get_choice ()

int                 g_mount_operation_get_choice        (GMountOperation *op);

op :

Returns :


g_mount_operation_set_choice ()

void                g_mount_operation_set_choice        (GMountOperation *op,
                                                         int choice);

op :

choice :


g_mount_operation_reply ()

void                g_mount_operation_reply             (GMountOperation *op,
                                                         gboolean abort);

Emits the "Reply" signal with the abort flag set to abort.

op :

GMountOperation.

abort :

boolean.

Signal Details

The "ask-password" signal

gboolean            user_function                      (GMountOperation *gmountoperation,
                                                        gchar           *arg1,
                                                        gchar           *arg2,
                                                        gchar           *arg3,
                                                        guint            arg4,
                                                        gpointer         user_data)            : Run Last

gmountoperation :

the object which received the signal.

arg1 :

arg2 :

arg3 :

arg4 :

user_data :

user data set when the signal handler was connected.

Returns :


The "ask-question" signal

gboolean            user_function                      (GMountOperation *gmountoperation,
                                                        gchar           *arg1,
                                                        gpointer         arg2,
                                                        gpointer         user_data)            : Run Last

gmountoperation :

the object which received the signal.

arg1 :

arg2 :

user_data :

user data set when the signal handler was connected.

Returns :


The "reply" signal

void                user_function                      (GMountOperation *gmountoperation,
                                                        gboolean         arg1,
                                                        gpointer         user_data)            : Run Last

gmountoperation :

the object which received the signal.

arg1 :

user_data :

user data set when the signal handler was connected.