Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gmountoperation.h
Go to the documentation of this file.
1/* GIO - GLib Input, Output and Streaming Library
2 *
3 * Copyright (C) 2006-2007 Red Hat, Inc.
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General
18 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
19 *
20 * Author: Alexander Larsson <alexl@redhat.com>
21 */
22
23#ifndef __G_MOUNT_OPERATION_H__
24#define __G_MOUNT_OPERATION_H__
25
26#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
27#error "Only <gio/gio.h> can be included directly."
28#endif
29
30#include <gio/giotypes.h>
31
33
34#define G_TYPE_MOUNT_OPERATION (g_mount_operation_get_type ())
35#define G_MOUNT_OPERATION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_MOUNT_OPERATION, GMountOperation))
36#define G_MOUNT_OPERATION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_MOUNT_OPERATION, GMountOperationClass))
37#define G_IS_MOUNT_OPERATION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_MOUNT_OPERATION))
38#define G_IS_MOUNT_OPERATION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_MOUNT_OPERATION))
39#define G_MOUNT_OPERATION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_MOUNT_OPERATION, GMountOperationClass))
40
42typedef struct _GMountOperationPrivate GMountOperationPrivate;
43
50
52{
54
55 /* signals: */
56
58 const char *message,
59 const char *default_user,
60 const char *default_domain,
61 GAskPasswordFlags flags);
62
63 /**
64 * GMountOperationClass::ask_question:
65 * @op: a #GMountOperation
66 * @message: string containing a message to display to the user
67 * @choices: (array zero-terminated=1) (element-type utf8): an array of
68 * strings for each possible choice
69 *
70 * Virtual implementation of #GMountOperation::ask-question.
71 */
73 const char *message,
74 const char *choices[]);
75
76 void (* reply) (GMountOperation *op,
78
79 void (* aborted) (GMountOperation *op);
80
81 /**
82 * GMountOperationClass::show_processes:
83 * @op: a #GMountOperation
84 * @message: string containing a message to display to the user
85 * @processes: (element-type GPid): an array of #GPid for processes blocking
86 * the operation
87 * @choices: (array zero-terminated=1) (element-type utf8): an array of
88 * strings for each possible choice
89 *
90 * Virtual implementation of #GMountOperation::show-processes.
91 *
92 * Since: 2.22
93 */
95 const gchar *message,
96 GArray *processes,
97 const gchar *choices[]);
98
100 const gchar *message,
101 gint64 time_left,
102 gint64 bytes_left);
103
104 /*< private >*/
105 /* Padding for future expansion */
106 void (*_g_reserved1) (void);
107 void (*_g_reserved2) (void);
108 void (*_g_reserved3) (void);
109 void (*_g_reserved4) (void);
110 void (*_g_reserved5) (void);
111 void (*_g_reserved6) (void);
112 void (*_g_reserved7) (void);
113 void (*_g_reserved8) (void);
114 void (*_g_reserved9) (void);
115};
116
121
126 const char *username);
131 const char *password);
136 gboolean anonymous);
141 const char *domain);
151 int choice);
154 GMountOperationResult result);
159 gboolean hidden_volume);
164 gboolean system_volume);
169 guint pim);
170
172
173#endif /* __G_MOUNT_OPERATION_H__ */
#define GIO_AVAILABLE_IN_ALL
#define GIO_AVAILABLE_IN_2_58
GAskPasswordFlags
Definition gioenums.h:608
GPasswordSave
Definition gioenums.h:629
GMountOperationResult
Definition gioenums.h:648
signed long gint64
Definition glibconfig.h:66
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
GIO_AVAILABLE_IN_ALL void g_mount_operation_set_password(GMountOperation *op, const char *password)
GIO_AVAILABLE_IN_2_58 guint g_mount_operation_get_pim(GMountOperation *op)
GIO_AVAILABLE_IN_ALL void g_mount_operation_set_username(GMountOperation *op, const char *username)
GIO_AVAILABLE_IN_2_58 gboolean g_mount_operation_get_is_tcrypt_hidden_volume(GMountOperation *op)
GIO_AVAILABLE_IN_ALL const char * g_mount_operation_get_domain(GMountOperation *op)
GIO_AVAILABLE_IN_ALL const char * g_mount_operation_get_password(GMountOperation *op)
GIO_AVAILABLE_IN_ALL void g_mount_operation_reply(GMountOperation *op, GMountOperationResult result)
GIO_AVAILABLE_IN_ALL gboolean g_mount_operation_get_anonymous(GMountOperation *op)
GIO_AVAILABLE_IN_2_58 gboolean g_mount_operation_get_is_tcrypt_system_volume(GMountOperation *op)
GIO_AVAILABLE_IN_ALL void g_mount_operation_set_password_save(GMountOperation *op, GPasswordSave save)
GIO_AVAILABLE_IN_ALL const char * g_mount_operation_get_username(GMountOperation *op)
GIO_AVAILABLE_IN_ALL GPasswordSave g_mount_operation_get_password_save(GMountOperation *op)
GIO_AVAILABLE_IN_2_58 void g_mount_operation_set_is_tcrypt_system_volume(GMountOperation *op, gboolean system_volume)
GIO_AVAILABLE_IN_ALL int g_mount_operation_get_choice(GMountOperation *op)
GIO_AVAILABLE_IN_ALL GMountOperation * g_mount_operation_new(void)
GIO_AVAILABLE_IN_2_58 void g_mount_operation_set_is_tcrypt_hidden_volume(GMountOperation *op, gboolean hidden_volume)
GIO_AVAILABLE_IN_2_58 void g_mount_operation_set_pim(GMountOperation *op, guint pim)
GIO_AVAILABLE_IN_ALL void g_mount_operation_set_anonymous(GMountOperation *op, gboolean anonymous)
struct _GMountOperationPrivate GMountOperationPrivate
GIO_AVAILABLE_IN_ALL void g_mount_operation_set_choice(GMountOperation *op, int choice)
GIO_AVAILABLE_IN_ALL void g_mount_operation_set_domain(GMountOperation *op, const char *domain)
GIO_AVAILABLE_IN_ALL GType g_mount_operation_get_type(void) G_GNUC_CONST
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
G_BEGIN_DECLS typedef char gchar
Definition gtypes.h:52
unsigned int guint
Definition gtypes.h:61
static void save(LexState *ls, int c)
void(* aborted)(GMountOperation *op)
void(* ask_password)(GMountOperation *op, const char *message, const char *default_user, const char *default_domain, GAskPasswordFlags flags)
void(* ask_question)(GMountOperation *op, const char *message, const char *choices[])
void(* reply)(GMountOperation *op, GMountOperationResult result)
void(* show_unmount_progress)(GMountOperation *op, const gchar *message, gint64 time_left, gint64 bytes_left)
void(* show_processes)(GMountOperation *op, const gchar *message, GArray *processes, const gchar *choices[])
GMountOperationPrivate * priv