Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
CookieJarDB
is a CookieJar
that reads cookies from and
writes them to a sqlite database in the new Mozilla format.
(This is identical to <literal>SoupCookieJarSqlite</literal> in libsoup-gnome; it has just been moved into libsoup proper, and renamed to avoid conflicting.)
Synopsis
- newtype CookieJarDB = CookieJarDB (ManagedPtr CookieJarDB)
- class (GObject o, IsDescendantOf CookieJarDB o) => IsCookieJarDB o
- toCookieJarDB :: (MonadIO m, IsCookieJarDB o) => o -> m CookieJarDB
- cookieJarDBNew :: (HasCallStack, MonadIO m) => Text -> Bool -> m CookieJarDB
- constructCookieJarDBFilename :: (IsCookieJarDB o, MonadIO m) => Text -> m (GValueConstruct o)
- getCookieJarDBFilename :: (MonadIO m, IsCookieJarDB o) => o -> m (Maybe Text)
Exported types
newtype CookieJarDB Source #
Memory-managed wrapper type.
CookieJarDB (ManagedPtr CookieJarDB) |
Instances
Eq CookieJarDB Source # | |
Defined in GI.Soup.Objects.CookieJarDB (==) :: CookieJarDB -> CookieJarDB -> Bool # (/=) :: CookieJarDB -> CookieJarDB -> Bool # | |
GObject CookieJarDB Source # | |
Defined in GI.Soup.Objects.CookieJarDB | |
ManagedPtrNewtype CookieJarDB Source # | |
Defined in GI.Soup.Objects.CookieJarDB toManagedPtr :: CookieJarDB -> ManagedPtr CookieJarDB | |
TypedObject CookieJarDB Source # | |
Defined in GI.Soup.Objects.CookieJarDB | |
HasParentTypes CookieJarDB Source # | |
Defined in GI.Soup.Objects.CookieJarDB | |
IsGValue (Maybe CookieJarDB) Source # | Convert |
Defined in GI.Soup.Objects.CookieJarDB gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe CookieJarDB -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe CookieJarDB) | |
type ParentTypes CookieJarDB Source # | |
Defined in GI.Soup.Objects.CookieJarDB |
class (GObject o, IsDescendantOf CookieJarDB o) => IsCookieJarDB o Source #
Type class for types which can be safely cast to CookieJarDB
, for instance with toCookieJarDB
.
Instances
(GObject o, IsDescendantOf CookieJarDB o) => IsCookieJarDB o Source # | |
Defined in GI.Soup.Objects.CookieJarDB |
toCookieJarDB :: (MonadIO m, IsCookieJarDB o) => o -> m CookieJarDB Source #
Cast to CookieJarDB
, 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
addCookie, addCookieFull, addCookieWithFirstParty, addFeature, allCookies, attach, bindProperty, bindPropertyFull, deleteCookie, detach, forceFloating, freezeNotify, getv, hasFeature, isFloating, isPersistent, notify, notifyByPspec, ref, refSink, removeFeature, runDispose, save, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getAcceptPolicy, getCookieList, getCookieListWithSameSiteInfo, getCookies, getData, getProperty, getQdata.
Setters
setAcceptPolicy, setCookie, setCookieWithFirstParty, setData, setDataFull, setProperty.
new
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Bool |
|
-> m CookieJarDB | Returns: the new |
Creates a CookieJarDB
.
filename
will be read in at startup to create an initial set of
cookies. If readOnly
is False
, then the non-session cookies will
be written to filename
when the 'changed' signal is emitted from
the jar. (If readOnly
is True
, then the cookie jar will only be
used for this session, and changes made to it will be lost when the
jar is destroyed.)
Since: 2.42
Properties
filename
No description available in the introspection data.
constructCookieJarDBFilename :: (IsCookieJarDB o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “filename
” property. This is rarely needed directly, but it is used by new
.
getCookieJarDBFilename :: (MonadIO m, IsCookieJarDB o) => o -> m (Maybe Text) Source #
Get the value of the “filename
” property.
When overloading is enabled, this is equivalent to
get
cookieJarDB #filename