Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Represents a form submission request.
When a form is about to be submitted in a WebView
, the
WebView::submitForm signal is emitted. Its request argument
contains information about the text fields of the form, that are
typically used to store login information, returned as lists by
formSubmissionRequestListTextFields
. You can submit the
form with formSubmissionRequestSubmit
.
Synopsis
- newtype FormSubmissionRequest = FormSubmissionRequest (ManagedPtr FormSubmissionRequest)
- class (GObject o, IsDescendantOf FormSubmissionRequest o) => IsFormSubmissionRequest o
- toFormSubmissionRequest :: (MonadIO m, IsFormSubmissionRequest o) => o -> m FormSubmissionRequest
- formSubmissionRequestListTextFields :: (HasCallStack, MonadIO m, IsFormSubmissionRequest a) => a -> m (Bool, [Text], [Text])
- formSubmissionRequestSubmit :: (HasCallStack, MonadIO m, IsFormSubmissionRequest a) => a -> m ()
Exported types
newtype FormSubmissionRequest Source #
Memory-managed wrapper type.
FormSubmissionRequest (ManagedPtr FormSubmissionRequest) |
Instances
class (GObject o, IsDescendantOf FormSubmissionRequest o) => IsFormSubmissionRequest o Source #
Type class for types which can be safely cast to FormSubmissionRequest
, for instance with toFormSubmissionRequest
.
Instances
(GObject o, IsDescendantOf FormSubmissionRequest o) => IsFormSubmissionRequest o Source # | |
Defined in GI.WebKit.Objects.FormSubmissionRequest |
toFormSubmissionRequest :: (MonadIO m, IsFormSubmissionRequest o) => o -> m FormSubmissionRequest Source #
Cast to FormSubmissionRequest
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, listTextFields, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, submit, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
listTextFields
formSubmissionRequestListTextFields Source #
:: (HasCallStack, MonadIO m, IsFormSubmissionRequest a) | |
=> a |
|
-> m (Bool, [Text], [Text]) | Returns: |
Get lists of the text fields contained in the form associated to request
.
Get lists with the names and values of the text fields contained in
the form associated to request
. Note that names and values may be
Nothing
.
If this function returns False
, then both fieldNames
and
fieldValues
will be empty.
Since: 2.20
submit
formSubmissionRequestSubmit Source #
:: (HasCallStack, MonadIO m, IsFormSubmissionRequest a) | |
=> a |
|
-> m () |
Continue the form submission.