gMountOperationNew()
gMountOperationGetUsername(object)
gMountOperationSetUsername(object, username)
gMountOperationGetPassword(object)
gMountOperationSetPassword(object, password)
gMountOperationGetAnonymous(object)
gMountOperationSetAnonymous(object, anonymous)
gMountOperationGetDomain(object)
gMountOperationSetDomain(object, domain)
gMountOperationGetPasswordSave(object)
gMountOperationSetPasswordSave(object, save)
gMountOperationGetChoice(object)
gMountOperationSetChoice(object, choice)
gMountOperationReply(object, result)
gMountOperation()
GFlags +----GAskPasswordFlags GEnum +----GPasswordSave GObject +----GMountOperation GEnum +----GMountOperationResult
GMountOperation
provides a mechanism for interacting with the user.
It can be used for authenticating mountable operations, such as loop
mounting files, hard drive partitions or server locations. It can
also be used to ask the user questions or show a list of applications
preventing unmount or eject operations from completing. Note that GMountOperation
is used for more than just GMount
objects – for example it is also used in gDriveStart
and
gDriveStop
. Users should instantiate a subclass of this that implements all the
various callbacks to show the required dialogs, such as
GtkMountOperation
. If no user interaction is desired (for example
when automounting filesystems at login time), usually NULL
can be
passed, see each method taking a GMountOperation
for details.gMountOperation
is the equivalent of gMountOperationNew
.GAskPasswordFlags
GAskPasswordFlags
are used to request specific information from the
user, or to notify the user of their choices in an authentication
situation. need-password
need-username
need-domain
saving-supported
anonymous-supported
GPasswordSave
GPasswordSave
is used to indicate the lifespan of a saved password.
Gvfs
stores passwords in the Gnome keyring when this flag allows it
to, and later retrieves it again from there. never
for-session
permanently
GMountOperationResult
GMountOperationResult
is returned as a result when a request for
information is send by the mounting operation. handled
aborted
unhandled
aborted(user.data)
ask-password(op, message, default.user, default.domain, flags, user.data)
GtkMessageDialog
. op
GMountOperation
requesting a password.message
default.user
default.domain
flags
GAskPasswordFlags
.user.data
ask-question(op, message, choices, user.data)
GtkMessageDialog
. op
GMountOperation
asking a question.message
choices
user.data
reply(op, result, user.data)
op
GMountOperation
.result
GMountOperationResult
indicating how the request was handleduser.data
show-processes(op, message, processes, choices, user.data)
GMount
or stopping a GDrive
. Note that this signal may be emitted several times to update the
list of blocking processes as processes close files. The
application should only respond with gMountOperationReply
to
the latest signal (setting "choice"
to the choice
the user made). If the message contains a line break, the first line should be
presented as a heading. For example, it may be used as the
primary text in a GtkMessageDialog
.
Since 2.22 op
GMountOperation
.message
processes
GPid
for processes blocking the operation.choices
user.data
anonymous
[logical : Read / Write]choice
[integer : Read / Write]"ask-question"
signal.
Allowed values: >= 0 Default value: 0 domain
[character : * : Read / Write]password
[character : * : Read / Write]password-save
[GPasswordSave
: Read / Write]username
[character : * : Read / Write]