module GI.WebKit.Objects.DOMDOMApplicationCache
(
DOMDOMApplicationCache(..) ,
IsDOMDOMApplicationCache ,
toDOMDOMApplicationCache ,
noDOMDOMApplicationCache ,
DOMDOMApplicationCacheAbortMethodInfo ,
dOMDOMApplicationCacheAbort ,
DOMDOMApplicationCacheDispatchEventMethodInfo,
dOMDOMApplicationCacheDispatchEvent ,
DOMDOMApplicationCacheGetStatusMethodInfo,
dOMDOMApplicationCacheGetStatus ,
DOMDOMApplicationCacheSwapCacheMethodInfo,
dOMDOMApplicationCacheSwapCache ,
DOMDOMApplicationCacheUpdateMethodInfo ,
dOMDOMApplicationCacheUpdate ,
DOMDOMApplicationCacheStatusPropertyInfo,
dOMDOMApplicationCacheStatus ,
getDOMDOMApplicationCacheStatus ,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.WebKit.Interfaces.DOMEventTarget as WebKit.DOMEventTarget
import qualified GI.WebKit.Objects.DOMEvent as WebKit.DOMEvent
import qualified GI.WebKit.Objects.DOMObject as WebKit.DOMObject
newtype DOMDOMApplicationCache = DOMDOMApplicationCache (ManagedPtr DOMDOMApplicationCache)
foreign import ccall "webkit_dom_dom_application_cache_get_type"
c_webkit_dom_dom_application_cache_get_type :: IO GType
instance GObject DOMDOMApplicationCache where
gobjectType _ = c_webkit_dom_dom_application_cache_get_type
class GObject o => IsDOMDOMApplicationCache o
#if MIN_VERSION_base(4,9,0)
instance (GObject a, O.UnknownAncestorError DOMDOMApplicationCache a) =>
IsDOMDOMApplicationCache a
#endif
instance IsDOMDOMApplicationCache DOMDOMApplicationCache
instance WebKit.DOMObject.IsDOMObject DOMDOMApplicationCache
instance GObject.Object.IsObject DOMDOMApplicationCache
instance WebKit.DOMEventTarget.IsDOMEventTarget DOMDOMApplicationCache
toDOMDOMApplicationCache :: IsDOMDOMApplicationCache o => o -> IO DOMDOMApplicationCache
toDOMDOMApplicationCache = unsafeCastTo DOMDOMApplicationCache
noDOMDOMApplicationCache :: Maybe DOMDOMApplicationCache
noDOMDOMApplicationCache = Nothing
type family ResolveDOMDOMApplicationCacheMethod (t :: Symbol) (o :: *) :: * where
ResolveDOMDOMApplicationCacheMethod "abort" o = DOMDOMApplicationCacheAbortMethodInfo
ResolveDOMDOMApplicationCacheMethod "addEventListener" o = WebKit.DOMEventTarget.DOMEventTargetAddEventListenerMethodInfo
ResolveDOMDOMApplicationCacheMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveDOMDOMApplicationCacheMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveDOMDOMApplicationCacheMethod "dispatchEvent" o = DOMDOMApplicationCacheDispatchEventMethodInfo
ResolveDOMDOMApplicationCacheMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveDOMDOMApplicationCacheMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveDOMDOMApplicationCacheMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveDOMDOMApplicationCacheMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveDOMDOMApplicationCacheMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveDOMDOMApplicationCacheMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveDOMDOMApplicationCacheMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveDOMDOMApplicationCacheMethod "removeEventListener" o = WebKit.DOMEventTarget.DOMEventTargetRemoveEventListenerMethodInfo
ResolveDOMDOMApplicationCacheMethod "replaceData" o = GObject.Object.ObjectReplaceDataMethodInfo
ResolveDOMDOMApplicationCacheMethod "replaceQdata" o = GObject.Object.ObjectReplaceQdataMethodInfo
ResolveDOMDOMApplicationCacheMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveDOMDOMApplicationCacheMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveDOMDOMApplicationCacheMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveDOMDOMApplicationCacheMethod "swapCache" o = DOMDOMApplicationCacheSwapCacheMethodInfo
ResolveDOMDOMApplicationCacheMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveDOMDOMApplicationCacheMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveDOMDOMApplicationCacheMethod "update" o = DOMDOMApplicationCacheUpdateMethodInfo
ResolveDOMDOMApplicationCacheMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveDOMDOMApplicationCacheMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveDOMDOMApplicationCacheMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveDOMDOMApplicationCacheMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveDOMDOMApplicationCacheMethod "getStatus" o = DOMDOMApplicationCacheGetStatusMethodInfo
ResolveDOMDOMApplicationCacheMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveDOMDOMApplicationCacheMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveDOMDOMApplicationCacheMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveDOMDOMApplicationCacheMethod t DOMDOMApplicationCache, O.MethodInfo info DOMDOMApplicationCache p) => O.IsLabelProxy t (DOMDOMApplicationCache -> p) where
fromLabelProxy _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#if MIN_VERSION_base(4,9,0)
instance (info ~ ResolveDOMDOMApplicationCacheMethod t DOMDOMApplicationCache, O.MethodInfo info DOMDOMApplicationCache p) => O.IsLabel t (DOMDOMApplicationCache -> p) where
fromLabel _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#endif
getDOMDOMApplicationCacheStatus :: (MonadIO m, IsDOMDOMApplicationCache o) => o -> m Word32
getDOMDOMApplicationCacheStatus obj = liftIO $ getObjectPropertyUInt32 obj "status"
data DOMDOMApplicationCacheStatusPropertyInfo
instance AttrInfo DOMDOMApplicationCacheStatusPropertyInfo where
type AttrAllowedOps DOMDOMApplicationCacheStatusPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint DOMDOMApplicationCacheStatusPropertyInfo = (~) ()
type AttrBaseTypeConstraint DOMDOMApplicationCacheStatusPropertyInfo = IsDOMDOMApplicationCache
type AttrGetType DOMDOMApplicationCacheStatusPropertyInfo = Word32
type AttrLabel DOMDOMApplicationCacheStatusPropertyInfo = "status"
type AttrOrigin DOMDOMApplicationCacheStatusPropertyInfo = DOMDOMApplicationCache
attrGet _ = getDOMDOMApplicationCacheStatus
attrSet _ = undefined
attrConstruct _ = undefined
attrClear _ = undefined
instance O.HasAttributeList DOMDOMApplicationCache
type instance O.AttributeList DOMDOMApplicationCache = DOMDOMApplicationCacheAttributeList
type DOMDOMApplicationCacheAttributeList = ('[ '("coreObject", WebKit.DOMObject.DOMObjectCoreObjectPropertyInfo), '("status", DOMDOMApplicationCacheStatusPropertyInfo)] :: [(Symbol, *)])
dOMDOMApplicationCacheStatus :: AttrLabelProxy "status"
dOMDOMApplicationCacheStatus = AttrLabelProxy
type instance O.SignalList DOMDOMApplicationCache = DOMDOMApplicationCacheSignalList
type DOMDOMApplicationCacheSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, *)])
foreign import ccall "webkit_dom_dom_application_cache_abort" webkit_dom_dom_application_cache_abort ::
Ptr DOMDOMApplicationCache ->
IO ()
dOMDOMApplicationCacheAbort ::
(B.CallStack.HasCallStack, MonadIO m, IsDOMDOMApplicationCache a) =>
a
-> m ()
dOMDOMApplicationCacheAbort self = liftIO $ do
self' <- unsafeManagedPtrCastPtr self
webkit_dom_dom_application_cache_abort self'
touchManagedPtr self
return ()
data DOMDOMApplicationCacheAbortMethodInfo
instance (signature ~ (m ()), MonadIO m, IsDOMDOMApplicationCache a) => O.MethodInfo DOMDOMApplicationCacheAbortMethodInfo a signature where
overloadedMethod _ = dOMDOMApplicationCacheAbort
foreign import ccall "webkit_dom_dom_application_cache_dispatch_event" webkit_dom_dom_application_cache_dispatch_event ::
Ptr DOMDOMApplicationCache ->
Ptr WebKit.DOMEvent.DOMEvent ->
Ptr (Ptr GError) ->
IO CInt
dOMDOMApplicationCacheDispatchEvent ::
(B.CallStack.HasCallStack, MonadIO m, IsDOMDOMApplicationCache a, WebKit.DOMEvent.IsDOMEvent b) =>
a
-> b
-> m ()
dOMDOMApplicationCacheDispatchEvent self evt = liftIO $ do
self' <- unsafeManagedPtrCastPtr self
evt' <- unsafeManagedPtrCastPtr evt
onException (do
_ <- propagateGError $ webkit_dom_dom_application_cache_dispatch_event self' evt'
touchManagedPtr self
touchManagedPtr evt
return ()
) (do
return ()
)
data DOMDOMApplicationCacheDispatchEventMethodInfo
instance (signature ~ (b -> m ()), MonadIO m, IsDOMDOMApplicationCache a, WebKit.DOMEvent.IsDOMEvent b) => O.MethodInfo DOMDOMApplicationCacheDispatchEventMethodInfo a signature where
overloadedMethod _ = dOMDOMApplicationCacheDispatchEvent
foreign import ccall "webkit_dom_dom_application_cache_get_status" webkit_dom_dom_application_cache_get_status ::
Ptr DOMDOMApplicationCache ->
IO Word16
dOMDOMApplicationCacheGetStatus ::
(B.CallStack.HasCallStack, MonadIO m, IsDOMDOMApplicationCache a) =>
a
-> m Word16
dOMDOMApplicationCacheGetStatus self = liftIO $ do
self' <- unsafeManagedPtrCastPtr self
result <- webkit_dom_dom_application_cache_get_status self'
touchManagedPtr self
return result
data DOMDOMApplicationCacheGetStatusMethodInfo
instance (signature ~ (m Word16), MonadIO m, IsDOMDOMApplicationCache a) => O.MethodInfo DOMDOMApplicationCacheGetStatusMethodInfo a signature where
overloadedMethod _ = dOMDOMApplicationCacheGetStatus
foreign import ccall "webkit_dom_dom_application_cache_swap_cache" webkit_dom_dom_application_cache_swap_cache ::
Ptr DOMDOMApplicationCache ->
Ptr (Ptr GError) ->
IO ()
dOMDOMApplicationCacheSwapCache ::
(B.CallStack.HasCallStack, MonadIO m, IsDOMDOMApplicationCache a) =>
a
-> m ()
dOMDOMApplicationCacheSwapCache self = liftIO $ do
self' <- unsafeManagedPtrCastPtr self
onException (do
propagateGError $ webkit_dom_dom_application_cache_swap_cache self'
touchManagedPtr self
return ()
) (do
return ()
)
data DOMDOMApplicationCacheSwapCacheMethodInfo
instance (signature ~ (m ()), MonadIO m, IsDOMDOMApplicationCache a) => O.MethodInfo DOMDOMApplicationCacheSwapCacheMethodInfo a signature where
overloadedMethod _ = dOMDOMApplicationCacheSwapCache
foreign import ccall "webkit_dom_dom_application_cache_update" webkit_dom_dom_application_cache_update ::
Ptr DOMDOMApplicationCache ->
Ptr (Ptr GError) ->
IO ()
dOMDOMApplicationCacheUpdate ::
(B.CallStack.HasCallStack, MonadIO m, IsDOMDOMApplicationCache a) =>
a
-> m ()
dOMDOMApplicationCacheUpdate self = liftIO $ do
self' <- unsafeManagedPtrCastPtr self
onException (do
propagateGError $ webkit_dom_dom_application_cache_update self'
touchManagedPtr self
return ()
) (do
return ()
)
data DOMDOMApplicationCacheUpdateMethodInfo
instance (signature ~ (m ()), MonadIO m, IsDOMDOMApplicationCache a) => O.MethodInfo DOMDOMApplicationCacheUpdateMethodInfo a signature where
overloadedMethod _ = dOMDOMApplicationCacheUpdate