-- GENERATED by C->Haskell Compiler, version 0.13.12 (gtk2hs branch) "Bin IO", 27 May 2012 (Haskell)
-- Edit the ORIGNAL .chs file instead!


{-# LINE 1 "./Graphics/UI/Gtk/WebKit/DOM/File.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.File
       (fileGetName,
        fileGetWebkitRelativePath,
        File, FileClass, castToFile, gTypeFile, toFile) where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
{-# LINE 10 "./Graphics/UI/Gtk/WebKit/DOM/File.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
fileGetName ::
            (FileClass self, GlibString string) => self -> IO string
fileGetName self
  = ((\(File arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_file_get_name argPtr1) (toFile self)) >>=
      readUTFString
 
fileGetWebkitRelativePath ::
                          (FileClass self, GlibString string) => self -> IO string
fileGetWebkitRelativePath self
  = ((\(File arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_file_get_webkit_relative_path argPtr1)
{-# LINE 24 "./Graphics/UI/Gtk/WebKit/DOM/File.chs" #-}
       (toFile self))
      >>=
      readUTFString

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/File.h webkit_dom_file_get_name"
  webkit_dom_file_get_name :: ((Ptr File) -> (IO (Ptr CChar)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/File.h webkit_dom_file_get_webkit_relative_path"
  webkit_dom_file_get_webkit_relative_path :: ((Ptr File) -> (IO (Ptr CChar)))