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.GAskPasswordFlagsGAskPasswordFlags are used to request specific information from the
user, or to notify the user of their choices in an authentication
situation. need-passwordneed-usernameneed-domainsaving-supportedanonymous-supportedGPasswordSaveGPasswordSave 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. neverfor-sessionpermanentlyGMountOperationResultGMountOperationResult is returned as a result when a request for
information is send by the mounting operation. handledabortedunhandledaborted(user.data)ask-password(op, message, default.user, default.domain, flags, user.data)GtkMessageDialog. opGMountOperation requesting a password.messagedefault.userdefault.domainflagsGAskPasswordFlags.user.dataask-question(op, message, choices, user.data)GtkMessageDialog. opGMountOperation asking a question.messagechoicesuser.datareply(op, result, user.data)opGMountOperation.resultGMountOperationResult indicating how the request was handleduser.datashow-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 opGMountOperation.messageprocessesGPid for processes blocking the operation.choicesuser.dataanonymous [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]