module Graphics.UI.Gtk.WebKit.WebDatabase (
WebDatabase,
WebDatabaseClass,
webDatabaseGetDisplayName,
webDatabaseGetExpectedSize,
webDatabaseGetFilename,
webDatabaseGetName,
webDatabaseGetSecurityOrigin,
webDatabaseGetSize,
webDatabaseRemove,
) where
import Control.Monad (liftM)
import System.Glib.FFI
import System.Glib.UTFString
import System.Glib.GList
import System.Glib.GError
import Graphics.UI.Gtk.Gdk.Events
import Graphics.UI.Gtk.Abstract.Object (makeNewObject)
import Graphics.UI.Gtk.WebKit.Types
import System.Glib.GObject
webDatabaseGetDisplayName ::
(WebDatabaseClass self, GlibString string) => self
-> IO string
webDatabaseGetDisplayName wd =
(\(WebDatabase arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_web_database_get_display_name argPtr1) (toWebDatabase wd) >>= peekUTFString
webDatabaseGetExpectedSize ::
WebDatabaseClass self => self
-> IO Int
webDatabaseGetExpectedSize wd =
liftM fromIntegral $ (\(WebDatabase arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_web_database_get_expected_size argPtr1) (toWebDatabase wd)
webDatabaseGetFilename ::
(WebDatabaseClass self, GlibString string) => self
-> IO string
webDatabaseGetFilename wd =
(\(WebDatabase arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_web_database_get_filename argPtr1) (toWebDatabase wd) >>= peekUTFString
webDatabaseGetName ::
(WebDatabaseClass self, GlibString string) => self
-> IO string
webDatabaseGetName wd =
(\(WebDatabase arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_web_database_get_name argPtr1) (toWebDatabase wd) >>= peekUTFString
webDatabaseGetSecurityOrigin ::
WebDatabaseClass self => self
-> IO SecurityOrigin
webDatabaseGetSecurityOrigin wd =
makeNewGObject mkSecurityOrigin $ (\(WebDatabase arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_web_database_get_security_origin argPtr1) (toWebDatabase wd)
webDatabaseGetSize ::
WebDatabaseClass self => self
-> IO Int
webDatabaseGetSize wd =
liftM fromIntegral $ (\(WebDatabase arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_web_database_get_size argPtr1) (toWebDatabase wd)
webDatabaseRemove ::
WebDatabaseClass self => self
-> IO ()
webDatabaseRemove wd =
(\(WebDatabase arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_web_database_remove argPtr1) (toWebDatabase wd)
foreign import ccall safe "webkit_web_database_get_display_name"
webkit_web_database_get_display_name :: ((Ptr WebDatabase) -> (IO (Ptr CChar)))
foreign import ccall safe "webkit_web_database_get_expected_size"
webkit_web_database_get_expected_size :: ((Ptr WebDatabase) -> (IO CULong))
foreign import ccall safe "webkit_web_database_get_filename"
webkit_web_database_get_filename :: ((Ptr WebDatabase) -> (IO (Ptr CChar)))
foreign import ccall safe "webkit_web_database_get_name"
webkit_web_database_get_name :: ((Ptr WebDatabase) -> (IO (Ptr CChar)))
foreign import ccall safe "webkit_web_database_get_security_origin"
webkit_web_database_get_security_origin :: ((Ptr WebDatabase) -> (IO (Ptr SecurityOrigin)))
foreign import ccall safe "webkit_web_database_get_size"
webkit_web_database_get_size :: ((Ptr WebDatabase) -> (IO CULong))
foreign import ccall safe "webkit_web_database_remove"
webkit_web_database_remove :: ((Ptr WebDatabase) -> (IO ()))