-- 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/DOMMimeType.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.DOMMimeType
       (domMimeTypeGetSuffixes, domMimeTypeGetDescription,
        domMimeTypeGetEnabledPlugin, DOMMimeType, DOMMimeTypeClass,
        castToDOMMimeType, gTypeDOMMimeType, toDOMMimeType)
       where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
{-# LINE 9 "./Graphics/UI/Gtk/WebKit/DOM/DOMMimeType.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
domMimeTypeGetSuffixes ::
                       (DOMMimeTypeClass self, GlibString string) => self -> IO string
domMimeTypeGetSuffixes self
  = ((\(DOMMimeType arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_dom_mime_type_get_suffixes argPtr1)
{-# LINE 16 "./Graphics/UI/Gtk/WebKit/DOM/DOMMimeType.chs" #-}
       (toDOMMimeType self))
      >>=
      readUTFString
 
domMimeTypeGetDescription ::
                          (DOMMimeTypeClass self, GlibString string) => self -> IO string
domMimeTypeGetDescription self
  = ((\(DOMMimeType arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_dom_mime_type_get_description argPtr1)
{-# LINE 24 "./Graphics/UI/Gtk/WebKit/DOM/DOMMimeType.chs" #-}
       (toDOMMimeType self))
      >>=
      readUTFString
 
domMimeTypeGetEnabledPlugin ::
                            (DOMMimeTypeClass self) => self -> IO (Maybe DOMPlugin)
domMimeTypeGetEnabledPlugin self
  = maybeNull (makeNewGObject mkDOMPlugin)
      ((\(DOMMimeType arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_dom_mime_type_get_enabled_plugin argPtr1)
{-# LINE 33 "./Graphics/UI/Gtk/WebKit/DOM/DOMMimeType.chs" #-}
         (toDOMMimeType self))

foreign import ccall safe "webkit_dom_dom_mime_type_get_suffixes"
  webkit_dom_dom_mime_type_get_suffixes :: ((Ptr DOMMimeType) -> (IO (Ptr CChar)))

foreign import ccall safe "webkit_dom_dom_mime_type_get_description"
  webkit_dom_dom_mime_type_get_description :: ((Ptr DOMMimeType) -> (IO (Ptr CChar)))

foreign import ccall safe "webkit_dom_dom_mime_type_get_enabled_plugin"
  webkit_dom_dom_mime_type_get_enabled_plugin :: ((Ptr DOMMimeType) -> (IO (Ptr DOMPlugin)))