| 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 |
GI.WebKit2.Objects.FaviconDatabase
Description
No description available in the introspection data.
Synopsis
- newtype FaviconDatabase = FaviconDatabase (ManagedPtr FaviconDatabase)
- class (GObject o, IsDescendantOf FaviconDatabase o) => IsFaviconDatabase o
- toFaviconDatabase :: (MonadIO m, IsFaviconDatabase o) => o -> m FaviconDatabase
- faviconDatabaseClear :: (HasCallStack, MonadIO m, IsFaviconDatabase a) => a -> m ()
- faviconDatabaseGetFavicon :: (HasCallStack, MonadIO m, IsFaviconDatabase a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- faviconDatabaseGetFaviconFinish :: (HasCallStack, MonadIO m, IsFaviconDatabase a, IsAsyncResult b) => a -> b -> m Surface
- faviconDatabaseGetFaviconUri :: (HasCallStack, MonadIO m, IsFaviconDatabase a) => a -> Text -> m (Maybe Text)
- type FaviconDatabaseFaviconChangedCallback = Text -> Text -> IO ()
- afterFaviconDatabaseFaviconChanged :: (IsFaviconDatabase a, MonadIO m) => a -> ((?self :: a) => FaviconDatabaseFaviconChangedCallback) -> m SignalHandlerId
- onFaviconDatabaseFaviconChanged :: (IsFaviconDatabase a, MonadIO m) => a -> ((?self :: a) => FaviconDatabaseFaviconChangedCallback) -> m SignalHandlerId
Exported types
newtype FaviconDatabase Source #
Memory-managed wrapper type.
Constructors
| FaviconDatabase (ManagedPtr FaviconDatabase) |
Instances
| Eq FaviconDatabase Source # | |
Defined in GI.WebKit2.Objects.FaviconDatabase Methods (==) :: FaviconDatabase -> FaviconDatabase -> Bool # (/=) :: FaviconDatabase -> FaviconDatabase -> Bool # | |
| GObject FaviconDatabase Source # | |
Defined in GI.WebKit2.Objects.FaviconDatabase | |
| ManagedPtrNewtype FaviconDatabase Source # | |
Defined in GI.WebKit2.Objects.FaviconDatabase Methods toManagedPtr :: FaviconDatabase -> ManagedPtr FaviconDatabase # | |
| TypedObject FaviconDatabase Source # | |
Defined in GI.WebKit2.Objects.FaviconDatabase | |
| HasParentTypes FaviconDatabase Source # | |
Defined in GI.WebKit2.Objects.FaviconDatabase | |
| IsGValue (Maybe FaviconDatabase) Source # | Convert |
Defined in GI.WebKit2.Objects.FaviconDatabase Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe FaviconDatabase -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe FaviconDatabase) # | |
| type ParentTypes FaviconDatabase Source # | |
Defined in GI.WebKit2.Objects.FaviconDatabase | |
class (GObject o, IsDescendantOf FaviconDatabase o) => IsFaviconDatabase o Source #
Type class for types which can be safely cast to FaviconDatabase, for instance with toFaviconDatabase.
Instances
| (GObject o, IsDescendantOf FaviconDatabase o) => IsFaviconDatabase o Source # | |
Defined in GI.WebKit2.Objects.FaviconDatabase | |
toFaviconDatabase :: (MonadIO m, IsFaviconDatabase o) => o -> m FaviconDatabase Source #
Cast to FaviconDatabase, 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, clear, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getFavicon, getFaviconFinish, getFaviconUri, getProperty, getQdata.
Setters
clear
Arguments
| :: (HasCallStack, MonadIO m, IsFaviconDatabase a) | |
| => a |
|
| -> m () |
Clears all icons from the database.
getFavicon
faviconDatabaseGetFavicon Source #
Arguments
| :: (HasCallStack, MonadIO m, IsFaviconDatabase a, IsCancellable b) | |
| => a |
|
| -> Text |
|
| -> Maybe b |
|
| -> Maybe AsyncReadyCallback |
|
| -> m () |
Asynchronously obtains a Surface of the favicon for the
given page URI. It returns the cached icon if it's in the database
asynchronously waiting for the icon to be read from the database.
This is an asynchronous method. When the operation is finished, callback will
be invoked. You can then call faviconDatabaseGetFaviconFinish
to get the result of the operation.
You must call webContextSetFaviconDatabaseDirectory for
the WebContext associated with this FaviconDatabase
before attempting to use this function; otherwise,
faviconDatabaseGetFaviconFinish will return
FaviconDatabaseErrorNotInitialized.
getFaviconFinish
faviconDatabaseGetFaviconFinish Source #
Arguments
| :: (HasCallStack, MonadIO m, IsFaviconDatabase a, IsAsyncResult b) | |
| => a |
|
| -> b |
|
| -> m Surface | Returns: a new reference to a |
Finishes an operation started with faviconDatabaseGetFavicon.
getFaviconUri
faviconDatabaseGetFaviconUri Source #
Arguments
| :: (HasCallStack, MonadIO m, IsFaviconDatabase a) | |
| => a |
|
| -> Text |
|
| -> m (Maybe Text) | Returns: a newly allocated URI for the favicon, or |
Obtains the URI of the favicon for the given pageUri.
Signals
faviconChanged
type FaviconDatabaseFaviconChangedCallback Source #
Arguments
| = Text |
|
| -> Text |
|
| -> IO () |
This signal is emitted when the favicon URI of pageUri has
been changed to faviconUri in the database. You can connect
to this signal and call faviconDatabaseGetFavicon
to get the favicon. If you are interested in the favicon of a
WebView it's easier to use the WebView:favicon
property. See webViewGetFavicon for more details.
afterFaviconDatabaseFaviconChanged :: (IsFaviconDatabase a, MonadIO m) => a -> ((?self :: a) => FaviconDatabaseFaviconChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the faviconChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after faviconDatabase #faviconChanged callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onFaviconDatabaseFaviconChanged :: (IsFaviconDatabase a, MonadIO m) => a -> ((?self :: a) => FaviconDatabaseFaviconChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the faviconChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on faviconDatabase #faviconChanged callback