text:
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module    : QProgressDialog.hs
    Copyright : (c) David Harley 2010
    Project   : qtHaskell
    Version   : 1.1.4
    Modified  : 2010-09-02 17:02:25

    Warning   : this file is machine generated - do not modify.
--}
-----------------------------------------------------------------------------

module Qtc.Gui.QProgressDialog (
  QqProgressDialog(..)
  ,autoClose
  ,autoReset
  ,cancel
  ,QforceShow(..)
  ,minimumDuration
  ,setAutoClose
  ,setAutoReset
  ,setBar
  ,setCancelButton
  ,setCancelButtonText
  ,setLabel
  ,setMinimumDuration
  ,wasCanceled
  ,qProgressDialog_delete
  ,qProgressDialog_deleteLater
  )
  where

import Qth.ClassTypes.Core
import Qtc.Enums.Base
import Qtc.Enums.Gui.QPaintDevice
import Qtc.Enums.Core.Qt

import Qtc.Classes.Base
import Qtc.Classes.Qccs
import Qtc.Classes.Core
import Qtc.ClassTypes.Core
import Qth.ClassTypes.Core
import Qtc.Classes.Gui
import Qtc.ClassTypes.Gui

instance QuserMethod (QProgressDialog ()) (()) (IO ()) where
 userMethod qobj evid ()
  = withObjectPtr qobj $ \cobj_qobj ->
    qtc_QProgressDialog_userMethod cobj_qobj (toCInt evid)

foreign import ccall "qtc_QProgressDialog_userMethod" qtc_QProgressDialog_userMethod :: Ptr (TQProgressDialog a) -> CInt -> IO ()

instance QuserMethod (QProgressDialogSc a) (()) (IO ()) where
 userMethod qobj evid ()
  = withObjectPtr qobj $ \cobj_qobj ->
    qtc_QProgressDialog_userMethod cobj_qobj (toCInt evid)

instance QuserMethod (QProgressDialog ()) (QVariant ()) (IO (QVariant ())) where
 userMethod qobj evid qvoj
  = withObjectRefResult $
    withObjectPtr qobj $ \cobj_qobj ->
    withObjectPtr qvoj $ \cobj_qvoj ->
    qtc_QProgressDialog_userMethodVariant cobj_qobj (toCInt evid) cobj_qvoj

foreign import ccall "qtc_QProgressDialog_userMethodVariant" qtc_QProgressDialog_userMethodVariant :: Ptr (TQProgressDialog a) -> CInt -> Ptr (TQVariant ()) -> IO (Ptr (TQVariant ()))

instance QuserMethod (QProgressDialogSc a) (QVariant ()) (IO (QVariant ())) where
 userMethod qobj evid qvoj
  = withObjectRefResult $
    withObjectPtr qobj $ \cobj_qobj ->
    withObjectPtr qvoj $ \cobj_qvoj ->
    qtc_QProgressDialog_userMethodVariant cobj_qobj (toCInt evid) cobj_qvoj

class QqProgressDialog x1 where
  qProgressDialog :: x1 -> IO (QProgressDialog ())

instance QqProgressDialog (()) where
 qProgressDialog ()
  = withQProgressDialogResult $
    qtc_QProgressDialog

foreign import ccall "qtc_QProgressDialog" qtc_QProgressDialog :: IO (Ptr (TQProgressDialog ()))

instance QqProgressDialog ((QWidget t1)) where
 qProgressDialog (x1)
  = withQProgressDialogResult $
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog1 cobj_x1

foreign import ccall "qtc_QProgressDialog1" qtc_QProgressDialog1 :: Ptr (TQWidget t1) -> IO (Ptr (TQProgressDialog ()))

instance QqProgressDialog ((QWidget t1, WindowFlags)) where
 qProgressDialog (x1, x2)
  = withQProgressDialogResult $
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog2 cobj_x1 (toCLong $ qFlags_toInt x2)

foreign import ccall "qtc_QProgressDialog2" qtc_QProgressDialog2 :: Ptr (TQWidget t1) -> CLong -> IO (Ptr (TQProgressDialog ()))

instance QqProgressDialog ((String, String, Int, Int)) where
 qProgressDialog (x1, x2, x3, x4)
  = withQProgressDialogResult $
    withCWString x1 $ \cstr_x1 ->
    withCWString x2 $ \cstr_x2 ->
    qtc_QProgressDialog3 cstr_x1 cstr_x2 (toCInt x3) (toCInt x4)

foreign import ccall "qtc_QProgressDialog3" qtc_QProgressDialog3 :: CWString -> CWString -> CInt -> CInt -> IO (Ptr (TQProgressDialog ()))

instance QqProgressDialog ((String, String, Int, Int, QWidget t5)) where
 qProgressDialog (x1, x2, x3, x4, x5)
  = withQProgressDialogResult $
    withCWString x1 $ \cstr_x1 ->
    withCWString x2 $ \cstr_x2 ->
    withObjectPtr x5 $ \cobj_x5 ->
    qtc_QProgressDialog4 cstr_x1 cstr_x2 (toCInt x3) (toCInt x4) cobj_x5

foreign import ccall "qtc_QProgressDialog4" qtc_QProgressDialog4 :: CWString -> CWString -> CInt -> CInt -> Ptr (TQWidget t5) -> IO (Ptr (TQProgressDialog ()))

instance QqProgressDialog ((String, String, Int, Int, QWidget t5, WindowFlags)) where
 qProgressDialog (x1, x2, x3, x4, x5, x6)
  = withQProgressDialogResult $
    withCWString x1 $ \cstr_x1 ->
    withCWString x2 $ \cstr_x2 ->
    withObjectPtr x5 $ \cobj_x5 ->
    qtc_QProgressDialog5 cstr_x1 cstr_x2 (toCInt x3) (toCInt x4) cobj_x5 (toCLong $ qFlags_toInt x6)

foreign import ccall "qtc_QProgressDialog5" qtc_QProgressDialog5 :: CWString -> CWString -> CInt -> CInt -> Ptr (TQWidget t5) -> CLong -> IO (Ptr (TQProgressDialog ()))

autoClose :: QProgressDialog a -> (()) -> IO (Bool)
autoClose x0 ()
  = withBoolResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_autoClose cobj_x0

foreign import ccall "qtc_QProgressDialog_autoClose" qtc_QProgressDialog_autoClose :: Ptr (TQProgressDialog a) -> IO CBool

autoReset :: QProgressDialog a -> (()) -> IO (Bool)
autoReset x0 ()
  = withBoolResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_autoReset cobj_x0

foreign import ccall "qtc_QProgressDialog_autoReset" qtc_QProgressDialog_autoReset :: Ptr (TQProgressDialog a) -> IO CBool

cancel :: QProgressDialog a -> (()) -> IO ()
cancel x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_cancel cobj_x0

foreign import ccall "qtc_QProgressDialog_cancel" qtc_QProgressDialog_cancel :: Ptr (TQProgressDialog a) -> IO ()

instance QchangeEvent (QProgressDialog ()) ((QEvent t1)) where
 changeEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_changeEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_changeEvent_h" qtc_QProgressDialog_changeEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQEvent t1) -> IO ()

instance QchangeEvent (QProgressDialogSc a) ((QEvent t1)) where
 changeEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_changeEvent_h cobj_x0 cobj_x1

instance QcloseEvent (QProgressDialog ()) ((QCloseEvent t1)) where
 closeEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_closeEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_closeEvent_h" qtc_QProgressDialog_closeEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQCloseEvent t1) -> IO ()

instance QcloseEvent (QProgressDialogSc a) ((QCloseEvent t1)) where
 closeEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_closeEvent_h cobj_x0 cobj_x1

class QforceShow x0 x1 where
 forceShow :: x0 -> x1 -> IO ()

instance QforceShow (QProgressDialog ()) (()) where
 forceShow x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_forceShow cobj_x0

foreign import ccall "qtc_QProgressDialog_forceShow" qtc_QProgressDialog_forceShow :: Ptr (TQProgressDialog a) -> IO ()

instance QforceShow (QProgressDialogSc a) (()) where
 forceShow x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_forceShow cobj_x0

instance QlabelText (QProgressDialog a) (()) where
 labelText x0 ()
  = withStringResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_labelText cobj_x0

foreign import ccall "qtc_QProgressDialog_labelText" qtc_QProgressDialog_labelText :: Ptr (TQProgressDialog a) -> IO (Ptr (TQString ()))

instance Qqmaximum (QProgressDialog a) (()) (IO (Int)) where
 qmaximum x0 ()
  = withIntResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_maximum cobj_x0

foreign import ccall "qtc_QProgressDialog_maximum" qtc_QProgressDialog_maximum :: Ptr (TQProgressDialog a) -> IO CInt

instance Qqminimum (QProgressDialog a) (()) (IO (Int)) where
 qminimum x0 ()
  = withIntResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_minimum cobj_x0

foreign import ccall "qtc_QProgressDialog_minimum" qtc_QProgressDialog_minimum :: Ptr (TQProgressDialog a) -> IO CInt

minimumDuration :: QProgressDialog a -> (()) -> IO (Int)
minimumDuration x0 ()
  = withIntResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_minimumDuration cobj_x0

foreign import ccall "qtc_QProgressDialog_minimumDuration" qtc_QProgressDialog_minimumDuration :: Ptr (TQProgressDialog a) -> IO CInt

instance Qreset (QProgressDialog a) (()) (IO ()) where
 reset x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_reset cobj_x0

foreign import ccall "qtc_QProgressDialog_reset" qtc_QProgressDialog_reset :: Ptr (TQProgressDialog a) -> IO ()

instance QresizeEvent (QProgressDialog ()) ((QResizeEvent t1)) where
 resizeEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_resizeEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_resizeEvent_h" qtc_QProgressDialog_resizeEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQResizeEvent t1) -> IO ()

instance QresizeEvent (QProgressDialogSc a) ((QResizeEvent t1)) where
 resizeEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_resizeEvent_h cobj_x0 cobj_x1

setAutoClose :: QProgressDialog a -> ((Bool)) -> IO ()
setAutoClose x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_setAutoClose cobj_x0 (toCBool x1)

foreign import ccall "qtc_QProgressDialog_setAutoClose" qtc_QProgressDialog_setAutoClose :: Ptr (TQProgressDialog a) -> CBool -> IO ()

setAutoReset :: QProgressDialog a -> ((Bool)) -> IO ()
setAutoReset x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_setAutoReset cobj_x0 (toCBool x1)

foreign import ccall "qtc_QProgressDialog_setAutoReset" qtc_QProgressDialog_setAutoReset :: Ptr (TQProgressDialog a) -> CBool -> IO ()

setBar :: QProgressDialog a -> ((QProgressBar t1)) -> IO ()
setBar x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_setBar cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_setBar" qtc_QProgressDialog_setBar :: Ptr (TQProgressDialog a) -> Ptr (TQProgressBar t1) -> IO ()

setCancelButton :: QProgressDialog a -> ((QPushButton t1)) -> IO ()
setCancelButton x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_setCancelButton cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_setCancelButton" qtc_QProgressDialog_setCancelButton :: Ptr (TQProgressDialog a) -> Ptr (TQPushButton t1) -> IO ()

setCancelButtonText :: QProgressDialog a -> ((String)) -> IO ()
setCancelButtonText x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withCWString x1 $ \cstr_x1 ->
    qtc_QProgressDialog_setCancelButtonText cobj_x0 cstr_x1

foreign import ccall "qtc_QProgressDialog_setCancelButtonText" qtc_QProgressDialog_setCancelButtonText :: Ptr (TQProgressDialog a) -> CWString -> IO ()

setLabel :: QProgressDialog a -> ((QLabel t1)) -> IO ()
setLabel x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_setLabel cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_setLabel" qtc_QProgressDialog_setLabel :: Ptr (TQProgressDialog a) -> Ptr (TQLabel t1) -> IO ()

instance QsetLabelText (QProgressDialog a) ((String)) where
 setLabelText x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withCWString x1 $ \cstr_x1 ->
    qtc_QProgressDialog_setLabelText cobj_x0 cstr_x1

foreign import ccall "qtc_QProgressDialog_setLabelText" qtc_QProgressDialog_setLabelText :: Ptr (TQProgressDialog a) -> CWString -> IO ()

instance QsetMaximum (QProgressDialog a) ((Int)) where
 setMaximum x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_setMaximum cobj_x0 (toCInt x1)

foreign import ccall "qtc_QProgressDialog_setMaximum" qtc_QProgressDialog_setMaximum :: Ptr (TQProgressDialog a) -> CInt -> IO ()

instance QsetMinimum (QProgressDialog a) ((Int)) where
 setMinimum x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_setMinimum cobj_x0 (toCInt x1)

foreign import ccall "qtc_QProgressDialog_setMinimum" qtc_QProgressDialog_setMinimum :: Ptr (TQProgressDialog a) -> CInt -> IO ()

setMinimumDuration :: QProgressDialog a -> ((Int)) -> IO ()
setMinimumDuration x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_setMinimumDuration cobj_x0 (toCInt x1)

foreign import ccall "qtc_QProgressDialog_setMinimumDuration" qtc_QProgressDialog_setMinimumDuration :: Ptr (TQProgressDialog a) -> CInt -> IO ()

instance QsetRange (QProgressDialog a) ((Int, Int)) where
 setRange x0 (x1, x2)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_setRange cobj_x0 (toCInt x1) (toCInt x2)

foreign import ccall "qtc_QProgressDialog_setRange" qtc_QProgressDialog_setRange :: Ptr (TQProgressDialog a) -> CInt -> CInt -> IO ()

instance QsetValue (QProgressDialog a) ((Int)) where
 setValue x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_setValue cobj_x0 (toCInt x1)

foreign import ccall "qtc_QProgressDialog_setValue" qtc_QProgressDialog_setValue :: Ptr (TQProgressDialog a) -> CInt -> IO ()

instance QsetWindowModality (QProgressDialog a) ((WindowModality)) where
 setWindowModality x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QWidget_setWindowModality cobj_x0 (toCLong $ qEnum_toInt x1)

foreign import ccall "qtc_QWidget_setWindowModality" qtc_QWidget_setWindowModality :: Ptr (TQWidget a) -> CLong -> IO ()

instance QshowEvent (QProgressDialog ()) ((QShowEvent t1)) where
 showEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_showEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_showEvent_h" qtc_QProgressDialog_showEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQShowEvent t1) -> IO ()

instance QshowEvent (QProgressDialogSc a) ((QShowEvent t1)) where
 showEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_showEvent_h cobj_x0 cobj_x1

instance QqsizeHint (QProgressDialog ()) (()) where
 qsizeHint x0 ()
  = withQSizeResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_sizeHint_h cobj_x0

foreign import ccall "qtc_QProgressDialog_sizeHint_h" qtc_QProgressDialog_sizeHint_h :: Ptr (TQProgressDialog a) -> IO (Ptr (TQSize ()))

instance QqsizeHint (QProgressDialogSc a) (()) where
 qsizeHint x0 ()
  = withQSizeResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_sizeHint_h cobj_x0

instance QsizeHint (QProgressDialog ()) (()) where
 sizeHint x0 ()
  = withSizeResult $ \csize_ret_w csize_ret_h ->
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_sizeHint_qth_h cobj_x0 csize_ret_w csize_ret_h

foreign import ccall "qtc_QProgressDialog_sizeHint_qth_h" qtc_QProgressDialog_sizeHint_qth_h :: Ptr (TQProgressDialog a) -> Ptr CInt -> Ptr CInt -> IO ()

instance QsizeHint (QProgressDialogSc a) (()) where
 sizeHint x0 ()
  = withSizeResult $ \csize_ret_w csize_ret_h ->
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_sizeHint_qth_h cobj_x0 csize_ret_w csize_ret_h

instance Qvalue (QProgressDialog a) (()) (IO (Int)) where
 value x0 ()
  = withIntResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_value cobj_x0

foreign import ccall "qtc_QProgressDialog_value" qtc_QProgressDialog_value :: Ptr (TQProgressDialog a) -> IO CInt

wasCanceled :: QProgressDialog a -> (()) -> IO (Bool)
wasCanceled x0 ()
  = withBoolResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_wasCanceled cobj_x0

foreign import ccall "qtc_QProgressDialog_wasCanceled" qtc_QProgressDialog_wasCanceled :: Ptr (TQProgressDialog a) -> IO CBool

qProgressDialog_delete :: QProgressDialog a -> IO ()
qProgressDialog_delete x0
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_delete cobj_x0

foreign import ccall "qtc_QProgressDialog_delete" qtc_QProgressDialog_delete :: Ptr (TQProgressDialog a) -> IO ()

qProgressDialog_deleteLater :: QProgressDialog a -> IO ()
qProgressDialog_deleteLater x0
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_deleteLater cobj_x0

foreign import ccall "qtc_QProgressDialog_deleteLater" qtc_QProgressDialog_deleteLater :: Ptr (TQProgressDialog a) -> IO ()

instance Qaccept (QProgressDialog ()) (()) where
 accept x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_accept_h cobj_x0

foreign import ccall "qtc_QProgressDialog_accept_h" qtc_QProgressDialog_accept_h :: Ptr (TQProgressDialog a) -> IO ()

instance Qaccept (QProgressDialogSc a) (()) where
 accept x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_accept_h cobj_x0

instance QadjustPosition (QProgressDialog ()) ((QWidget t1)) where
 adjustPosition x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_adjustPosition cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_adjustPosition" qtc_QProgressDialog_adjustPosition :: Ptr (TQProgressDialog a) -> Ptr (TQWidget t1) -> IO ()

instance QadjustPosition (QProgressDialogSc a) ((QWidget t1)) where
 adjustPosition x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_adjustPosition cobj_x0 cobj_x1

instance QcontextMenuEvent (QProgressDialog ()) ((QContextMenuEvent t1)) where
 contextMenuEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_contextMenuEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_contextMenuEvent_h" qtc_QProgressDialog_contextMenuEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQContextMenuEvent t1) -> IO ()

instance QcontextMenuEvent (QProgressDialogSc a) ((QContextMenuEvent t1)) where
 contextMenuEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_contextMenuEvent_h cobj_x0 cobj_x1

instance Qdone (QProgressDialog ()) ((Int)) where
 done x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_done_h cobj_x0 (toCInt x1)

foreign import ccall "qtc_QProgressDialog_done_h" qtc_QProgressDialog_done_h :: Ptr (TQProgressDialog a) -> CInt -> IO ()

instance Qdone (QProgressDialogSc a) ((Int)) where
 done x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_done_h cobj_x0 (toCInt x1)

instance Qevent (QProgressDialog ()) ((QEvent t1)) where
 event x0 (x1)
  = withBoolResult $
    withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_event_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_event_h" qtc_QProgressDialog_event_h :: Ptr (TQProgressDialog a) -> Ptr (TQEvent t1) -> IO CBool

instance Qevent (QProgressDialogSc a) ((QEvent t1)) where
 event x0 (x1)
  = withBoolResult $
    withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_event_h cobj_x0 cobj_x1

instance QeventFilter (QProgressDialog ()) ((QObject t1, QEvent t2)) where
 eventFilter x0 (x1, x2)
  = withBoolResult $
    withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    withObjectPtr x2 $ \cobj_x2 ->
    qtc_QProgressDialog_eventFilter cobj_x0 cobj_x1 cobj_x2

foreign import ccall "qtc_QProgressDialog_eventFilter" qtc_QProgressDialog_eventFilter :: Ptr (TQProgressDialog a) -> Ptr (TQObject t1) -> Ptr (TQEvent t2) -> IO CBool

instance QeventFilter (QProgressDialogSc a) ((QObject t1, QEvent t2)) where
 eventFilter x0 (x1, x2)
  = withBoolResult $
    withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    withObjectPtr x2 $ \cobj_x2 ->
    qtc_QProgressDialog_eventFilter cobj_x0 cobj_x1 cobj_x2

instance QkeyPressEvent (QProgressDialog ()) ((QKeyEvent t1)) where
 keyPressEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_keyPressEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_keyPressEvent_h" qtc_QProgressDialog_keyPressEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQKeyEvent t1) -> IO ()

instance QkeyPressEvent (QProgressDialogSc a) ((QKeyEvent t1)) where
 keyPressEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_keyPressEvent_h cobj_x0 cobj_x1

instance QqminimumSizeHint (QProgressDialog ()) (()) where
 qminimumSizeHint x0 ()
  = withQSizeResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_minimumSizeHint_h cobj_x0

foreign import ccall "qtc_QProgressDialog_minimumSizeHint_h" qtc_QProgressDialog_minimumSizeHint_h :: Ptr (TQProgressDialog a) -> IO (Ptr (TQSize ()))

instance QqminimumSizeHint (QProgressDialogSc a) (()) where
 qminimumSizeHint x0 ()
  = withQSizeResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_minimumSizeHint_h cobj_x0

instance QminimumSizeHint (QProgressDialog ()) (()) where
 minimumSizeHint x0 ()
  = withSizeResult $ \csize_ret_w csize_ret_h ->
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_minimumSizeHint_qth_h cobj_x0 csize_ret_w csize_ret_h

foreign import ccall "qtc_QProgressDialog_minimumSizeHint_qth_h" qtc_QProgressDialog_minimumSizeHint_qth_h :: Ptr (TQProgressDialog a) -> Ptr CInt -> Ptr CInt -> IO ()

instance QminimumSizeHint (QProgressDialogSc a) (()) where
 minimumSizeHint x0 ()
  = withSizeResult $ \csize_ret_w csize_ret_h ->
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_minimumSizeHint_qth_h cobj_x0 csize_ret_w csize_ret_h

instance Qreject (QProgressDialog ()) (()) where
 reject x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_reject_h cobj_x0

foreign import ccall "qtc_QProgressDialog_reject_h" qtc_QProgressDialog_reject_h :: Ptr (TQProgressDialog a) -> IO ()

instance Qreject (QProgressDialogSc a) (()) where
 reject x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_reject_h cobj_x0

instance QsetVisible (QProgressDialog ()) ((Bool)) where
 setVisible x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_setVisible_h cobj_x0 (toCBool x1)

foreign import ccall "qtc_QProgressDialog_setVisible_h" qtc_QProgressDialog_setVisible_h :: Ptr (TQProgressDialog a) -> CBool -> IO ()

instance QsetVisible (QProgressDialogSc a) ((Bool)) where
 setVisible x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_setVisible_h cobj_x0 (toCBool x1)

instance QactionEvent (QProgressDialog ()) ((QActionEvent t1)) where
 actionEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_actionEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_actionEvent_h" qtc_QProgressDialog_actionEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQActionEvent t1) -> IO ()

instance QactionEvent (QProgressDialogSc a) ((QActionEvent t1)) where
 actionEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_actionEvent_h cobj_x0 cobj_x1

instance QaddAction (QProgressDialog ()) ((QAction t1)) (IO ()) where
 addAction x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_addAction cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_addAction" qtc_QProgressDialog_addAction :: Ptr (TQProgressDialog a) -> Ptr (TQAction t1) -> IO ()

instance QaddAction (QProgressDialogSc a) ((QAction t1)) (IO ()) where
 addAction x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_addAction cobj_x0 cobj_x1

instance Qcreate (QProgressDialog ()) (()) (IO ()) where
 create x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_create cobj_x0

foreign import ccall "qtc_QProgressDialog_create" qtc_QProgressDialog_create :: Ptr (TQProgressDialog a) -> IO ()

instance Qcreate (QProgressDialogSc a) (()) (IO ()) where
 create x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_create cobj_x0

instance Qcreate (QProgressDialog ()) ((QVoid t1)) (IO ()) where
 create x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_create1 cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_create1" qtc_QProgressDialog_create1 :: Ptr (TQProgressDialog a) -> Ptr (TQVoid t1) -> IO ()

instance Qcreate (QProgressDialogSc a) ((QVoid t1)) (IO ()) where
 create x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_create1 cobj_x0 cobj_x1

instance Qcreate (QProgressDialog ()) ((QVoid t1, Bool)) (IO ()) where
 create x0 (x1, x2)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_create2 cobj_x0 cobj_x1 (toCBool x2)

foreign import ccall "qtc_QProgressDialog_create2" qtc_QProgressDialog_create2 :: Ptr (TQProgressDialog a) -> Ptr (TQVoid t1) -> CBool -> IO ()

instance Qcreate (QProgressDialogSc a) ((QVoid t1, Bool)) (IO ()) where
 create x0 (x1, x2)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_create2 cobj_x0 cobj_x1 (toCBool x2)

instance Qcreate (QProgressDialog ()) ((QVoid t1, Bool, Bool)) (IO ()) where
 create x0 (x1, x2, x3)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_create3 cobj_x0 cobj_x1 (toCBool x2) (toCBool x3)

foreign import ccall "qtc_QProgressDialog_create3" qtc_QProgressDialog_create3 :: Ptr (TQProgressDialog a) -> Ptr (TQVoid t1) -> CBool -> CBool -> IO ()

instance Qcreate (QProgressDialogSc a) ((QVoid t1, Bool, Bool)) (IO ()) where
 create x0 (x1, x2, x3)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_create3 cobj_x0 cobj_x1 (toCBool x2) (toCBool x3)

instance Qdestroy (QProgressDialog ()) (()) where
 destroy x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_destroy cobj_x0

foreign import ccall "qtc_QProgressDialog_destroy" qtc_QProgressDialog_destroy :: Ptr (TQProgressDialog a) -> IO ()

instance Qdestroy (QProgressDialogSc a) (()) where
 destroy x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_destroy cobj_x0

instance Qdestroy (QProgressDialog ()) ((Bool)) where
 destroy x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_destroy1 cobj_x0 (toCBool x1)

foreign import ccall "qtc_QProgressDialog_destroy1" qtc_QProgressDialog_destroy1 :: Ptr (TQProgressDialog a) -> CBool -> IO ()

instance Qdestroy (QProgressDialogSc a) ((Bool)) where
 destroy x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_destroy1 cobj_x0 (toCBool x1)

instance Qdestroy (QProgressDialog ()) ((Bool, Bool)) where
 destroy x0 (x1, x2)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_destroy2 cobj_x0 (toCBool x1) (toCBool x2)

foreign import ccall "qtc_QProgressDialog_destroy2" qtc_QProgressDialog_destroy2 :: Ptr (TQProgressDialog a) -> CBool -> CBool -> IO ()

instance Qdestroy (QProgressDialogSc a) ((Bool, Bool)) where
 destroy x0 (x1, x2)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_destroy2 cobj_x0 (toCBool x1) (toCBool x2)

instance QdevType (QProgressDialog ()) (()) where
 devType x0 ()
  = withIntResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_devType_h cobj_x0

foreign import ccall "qtc_QProgressDialog_devType_h" qtc_QProgressDialog_devType_h :: Ptr (TQProgressDialog a) -> IO CInt

instance QdevType (QProgressDialogSc a) (()) where
 devType x0 ()
  = withIntResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_devType_h cobj_x0

instance QdragEnterEvent (QProgressDialog ()) ((QDragEnterEvent t1)) where
 dragEnterEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_dragEnterEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_dragEnterEvent_h" qtc_QProgressDialog_dragEnterEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQDragEnterEvent t1) -> IO ()

instance QdragEnterEvent (QProgressDialogSc a) ((QDragEnterEvent t1)) where
 dragEnterEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_dragEnterEvent_h cobj_x0 cobj_x1

instance QdragLeaveEvent (QProgressDialog ()) ((QDragLeaveEvent t1)) where
 dragLeaveEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_dragLeaveEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_dragLeaveEvent_h" qtc_QProgressDialog_dragLeaveEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQDragLeaveEvent t1) -> IO ()

instance QdragLeaveEvent (QProgressDialogSc a) ((QDragLeaveEvent t1)) where
 dragLeaveEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_dragLeaveEvent_h cobj_x0 cobj_x1

instance QdragMoveEvent (QProgressDialog ()) ((QDragMoveEvent t1)) where
 dragMoveEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_dragMoveEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_dragMoveEvent_h" qtc_QProgressDialog_dragMoveEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQDragMoveEvent t1) -> IO ()

instance QdragMoveEvent (QProgressDialogSc a) ((QDragMoveEvent t1)) where
 dragMoveEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_dragMoveEvent_h cobj_x0 cobj_x1

instance QdropEvent (QProgressDialog ()) ((QDropEvent t1)) where
 dropEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_dropEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_dropEvent_h" qtc_QProgressDialog_dropEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQDropEvent t1) -> IO ()

instance QdropEvent (QProgressDialogSc a) ((QDropEvent t1)) where
 dropEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_dropEvent_h cobj_x0 cobj_x1

instance QenabledChange (QProgressDialog ()) ((Bool)) where
 enabledChange x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_enabledChange cobj_x0 (toCBool x1)

foreign import ccall "qtc_QProgressDialog_enabledChange" qtc_QProgressDialog_enabledChange :: Ptr (TQProgressDialog a) -> CBool -> IO ()

instance QenabledChange (QProgressDialogSc a) ((Bool)) where
 enabledChange x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_enabledChange cobj_x0 (toCBool x1)

instance QenterEvent (QProgressDialog ()) ((QEvent t1)) where
 enterEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_enterEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_enterEvent_h" qtc_QProgressDialog_enterEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQEvent t1) -> IO ()

instance QenterEvent (QProgressDialogSc a) ((QEvent t1)) where
 enterEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_enterEvent_h cobj_x0 cobj_x1

instance QfocusInEvent (QProgressDialog ()) ((QFocusEvent t1)) where
 focusInEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_focusInEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_focusInEvent_h" qtc_QProgressDialog_focusInEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQFocusEvent t1) -> IO ()

instance QfocusInEvent (QProgressDialogSc a) ((QFocusEvent t1)) where
 focusInEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_focusInEvent_h cobj_x0 cobj_x1

instance QfocusNextChild (QProgressDialog ()) (()) where
 focusNextChild x0 ()
  = withBoolResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_focusNextChild cobj_x0

foreign import ccall "qtc_QProgressDialog_focusNextChild" qtc_QProgressDialog_focusNextChild :: Ptr (TQProgressDialog a) -> IO CBool

instance QfocusNextChild (QProgressDialogSc a) (()) where
 focusNextChild x0 ()
  = withBoolResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_focusNextChild cobj_x0

instance QfocusNextPrevChild (QProgressDialog ()) ((Bool)) where
 focusNextPrevChild x0 (x1)
  = withBoolResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_focusNextPrevChild cobj_x0 (toCBool x1)

foreign import ccall "qtc_QProgressDialog_focusNextPrevChild" qtc_QProgressDialog_focusNextPrevChild :: Ptr (TQProgressDialog a) -> CBool -> IO CBool

instance QfocusNextPrevChild (QProgressDialogSc a) ((Bool)) where
 focusNextPrevChild x0 (x1)
  = withBoolResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_focusNextPrevChild cobj_x0 (toCBool x1)

instance QfocusOutEvent (QProgressDialog ()) ((QFocusEvent t1)) where
 focusOutEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_focusOutEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_focusOutEvent_h" qtc_QProgressDialog_focusOutEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQFocusEvent t1) -> IO ()

instance QfocusOutEvent (QProgressDialogSc a) ((QFocusEvent t1)) where
 focusOutEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_focusOutEvent_h cobj_x0 cobj_x1

instance QfocusPreviousChild (QProgressDialog ()) (()) where
 focusPreviousChild x0 ()
  = withBoolResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_focusPreviousChild cobj_x0

foreign import ccall "qtc_QProgressDialog_focusPreviousChild" qtc_QProgressDialog_focusPreviousChild :: Ptr (TQProgressDialog a) -> IO CBool

instance QfocusPreviousChild (QProgressDialogSc a) (()) where
 focusPreviousChild x0 ()
  = withBoolResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_focusPreviousChild cobj_x0

instance QfontChange (QProgressDialog ()) ((QFont t1)) where
 fontChange x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_fontChange cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_fontChange" qtc_QProgressDialog_fontChange :: Ptr (TQProgressDialog a) -> Ptr (TQFont t1) -> IO ()

instance QfontChange (QProgressDialogSc a) ((QFont t1)) where
 fontChange x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_fontChange cobj_x0 cobj_x1

instance QheightForWidth (QProgressDialog ()) ((Int)) where
 heightForWidth x0 (x1)
  = withIntResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_heightForWidth_h cobj_x0 (toCInt x1)

foreign import ccall "qtc_QProgressDialog_heightForWidth_h" qtc_QProgressDialog_heightForWidth_h :: Ptr (TQProgressDialog a) -> CInt -> IO CInt

instance QheightForWidth (QProgressDialogSc a) ((Int)) where
 heightForWidth x0 (x1)
  = withIntResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_heightForWidth_h cobj_x0 (toCInt x1)

instance QhideEvent (QProgressDialog ()) ((QHideEvent t1)) where
 hideEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_hideEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_hideEvent_h" qtc_QProgressDialog_hideEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQHideEvent t1) -> IO ()

instance QhideEvent (QProgressDialogSc a) ((QHideEvent t1)) where
 hideEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_hideEvent_h cobj_x0 cobj_x1

instance QinputMethodEvent (QProgressDialog ()) ((QInputMethodEvent t1)) where
 inputMethodEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_inputMethodEvent cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_inputMethodEvent" qtc_QProgressDialog_inputMethodEvent :: Ptr (TQProgressDialog a) -> Ptr (TQInputMethodEvent t1) -> IO ()

instance QinputMethodEvent (QProgressDialogSc a) ((QInputMethodEvent t1)) where
 inputMethodEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_inputMethodEvent cobj_x0 cobj_x1

instance QinputMethodQuery (QProgressDialog ()) ((InputMethodQuery)) where
 inputMethodQuery x0 (x1)
  = withQVariantResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_inputMethodQuery_h cobj_x0 (toCLong $ qEnum_toInt x1)

foreign import ccall "qtc_QProgressDialog_inputMethodQuery_h" qtc_QProgressDialog_inputMethodQuery_h :: Ptr (TQProgressDialog a) -> CLong -> IO (Ptr (TQVariant ()))

instance QinputMethodQuery (QProgressDialogSc a) ((InputMethodQuery)) where
 inputMethodQuery x0 (x1)
  = withQVariantResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_inputMethodQuery_h cobj_x0 (toCLong $ qEnum_toInt x1)

instance QkeyReleaseEvent (QProgressDialog ()) ((QKeyEvent t1)) where
 keyReleaseEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_keyReleaseEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_keyReleaseEvent_h" qtc_QProgressDialog_keyReleaseEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQKeyEvent t1) -> IO ()

instance QkeyReleaseEvent (QProgressDialogSc a) ((QKeyEvent t1)) where
 keyReleaseEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_keyReleaseEvent_h cobj_x0 cobj_x1

instance QlanguageChange (QProgressDialog ()) (()) where
 languageChange x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_languageChange cobj_x0

foreign import ccall "qtc_QProgressDialog_languageChange" qtc_QProgressDialog_languageChange :: Ptr (TQProgressDialog a) -> IO ()

instance QlanguageChange (QProgressDialogSc a) (()) where
 languageChange x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_languageChange cobj_x0

instance QleaveEvent (QProgressDialog ()) ((QEvent t1)) where
 leaveEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_leaveEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_leaveEvent_h" qtc_QProgressDialog_leaveEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQEvent t1) -> IO ()

instance QleaveEvent (QProgressDialogSc a) ((QEvent t1)) where
 leaveEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_leaveEvent_h cobj_x0 cobj_x1

instance Qmetric (QProgressDialog ()) ((PaintDeviceMetric)) where
 metric x0 (x1)
  = withIntResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_metric cobj_x0 (toCLong $ qEnum_toInt x1)

foreign import ccall "qtc_QProgressDialog_metric" qtc_QProgressDialog_metric :: Ptr (TQProgressDialog a) -> CLong -> IO CInt

instance Qmetric (QProgressDialogSc a) ((PaintDeviceMetric)) where
 metric x0 (x1)
  = withIntResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_metric cobj_x0 (toCLong $ qEnum_toInt x1)

instance QmouseDoubleClickEvent (QProgressDialog ()) ((QMouseEvent t1)) where
 mouseDoubleClickEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_mouseDoubleClickEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_mouseDoubleClickEvent_h" qtc_QProgressDialog_mouseDoubleClickEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQMouseEvent t1) -> IO ()

instance QmouseDoubleClickEvent (QProgressDialogSc a) ((QMouseEvent t1)) where
 mouseDoubleClickEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_mouseDoubleClickEvent_h cobj_x0 cobj_x1

instance QmouseMoveEvent (QProgressDialog ()) ((QMouseEvent t1)) where
 mouseMoveEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_mouseMoveEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_mouseMoveEvent_h" qtc_QProgressDialog_mouseMoveEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQMouseEvent t1) -> IO ()

instance QmouseMoveEvent (QProgressDialogSc a) ((QMouseEvent t1)) where
 mouseMoveEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_mouseMoveEvent_h cobj_x0 cobj_x1

instance QmousePressEvent (QProgressDialog ()) ((QMouseEvent t1)) where
 mousePressEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_mousePressEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_mousePressEvent_h" qtc_QProgressDialog_mousePressEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQMouseEvent t1) -> IO ()

instance QmousePressEvent (QProgressDialogSc a) ((QMouseEvent t1)) where
 mousePressEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_mousePressEvent_h cobj_x0 cobj_x1

instance QmouseReleaseEvent (QProgressDialog ()) ((QMouseEvent t1)) where
 mouseReleaseEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_mouseReleaseEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_mouseReleaseEvent_h" qtc_QProgressDialog_mouseReleaseEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQMouseEvent t1) -> IO ()

instance QmouseReleaseEvent (QProgressDialogSc a) ((QMouseEvent t1)) where
 mouseReleaseEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_mouseReleaseEvent_h cobj_x0 cobj_x1

instance Qmove (QProgressDialog ()) ((Int, Int)) where
 move x0 (x1, x2)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_move1 cobj_x0 (toCInt x1) (toCInt x2)

foreign import ccall "qtc_QProgressDialog_move1" qtc_QProgressDialog_move1 :: Ptr (TQProgressDialog a) -> CInt -> CInt -> IO ()

instance Qmove (QProgressDialogSc a) ((Int, Int)) where
 move x0 (x1, x2)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_move1 cobj_x0 (toCInt x1) (toCInt x2)

instance Qmove (QProgressDialog ()) ((Point)) where
 move x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withCPoint x1 $ \cpoint_x1_x cpoint_x1_y ->
    qtc_QProgressDialog_move_qth cobj_x0 cpoint_x1_x cpoint_x1_y

foreign import ccall "qtc_QProgressDialog_move_qth" qtc_QProgressDialog_move_qth :: Ptr (TQProgressDialog a) -> CInt -> CInt -> IO ()

instance Qmove (QProgressDialogSc a) ((Point)) where
 move x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withCPoint x1 $ \cpoint_x1_x cpoint_x1_y ->
    qtc_QProgressDialog_move_qth cobj_x0 cpoint_x1_x cpoint_x1_y

instance Qqmove (QProgressDialog ()) ((QPoint t1)) where
 qmove x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_move cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_move" qtc_QProgressDialog_move :: Ptr (TQProgressDialog a) -> Ptr (TQPoint t1) -> IO ()

instance Qqmove (QProgressDialogSc a) ((QPoint t1)) where
 qmove x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_move cobj_x0 cobj_x1

instance QmoveEvent (QProgressDialog ()) ((QMoveEvent t1)) where
 moveEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_moveEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_moveEvent_h" qtc_QProgressDialog_moveEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQMoveEvent t1) -> IO ()

instance QmoveEvent (QProgressDialogSc a) ((QMoveEvent t1)) where
 moveEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_moveEvent_h cobj_x0 cobj_x1

instance QpaintEngine (QProgressDialog ()) (()) where
 paintEngine x0 ()
  = withObjectRefResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_paintEngine_h cobj_x0

foreign import ccall "qtc_QProgressDialog_paintEngine_h" qtc_QProgressDialog_paintEngine_h :: Ptr (TQProgressDialog a) -> IO (Ptr (TQPaintEngine ()))

instance QpaintEngine (QProgressDialogSc a) (()) where
 paintEngine x0 ()
  = withObjectRefResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_paintEngine_h cobj_x0

instance QpaintEvent (QProgressDialog ()) ((QPaintEvent t1)) where
 paintEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_paintEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_paintEvent_h" qtc_QProgressDialog_paintEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQPaintEvent t1) -> IO ()

instance QpaintEvent (QProgressDialogSc a) ((QPaintEvent t1)) where
 paintEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_paintEvent_h cobj_x0 cobj_x1

instance QpaletteChange (QProgressDialog ()) ((QPalette t1)) where
 paletteChange x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_paletteChange cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_paletteChange" qtc_QProgressDialog_paletteChange :: Ptr (TQProgressDialog a) -> Ptr (TQPalette t1) -> IO ()

instance QpaletteChange (QProgressDialogSc a) ((QPalette t1)) where
 paletteChange x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_paletteChange cobj_x0 cobj_x1

instance Qrepaint (QProgressDialog ()) (()) where
 repaint x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_repaint cobj_x0

foreign import ccall "qtc_QProgressDialog_repaint" qtc_QProgressDialog_repaint :: Ptr (TQProgressDialog a) -> IO ()

instance Qrepaint (QProgressDialogSc a) (()) where
 repaint x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_repaint cobj_x0

instance Qrepaint (QProgressDialog ()) ((Int, Int, Int, Int)) where
 repaint x0 (x1, x2, x3, x4)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_repaint2 cobj_x0 (toCInt x1) (toCInt x2) (toCInt x3) (toCInt x4)

foreign import ccall "qtc_QProgressDialog_repaint2" qtc_QProgressDialog_repaint2 :: Ptr (TQProgressDialog a) -> CInt -> CInt -> CInt -> CInt -> IO ()

instance Qrepaint (QProgressDialogSc a) ((Int, Int, Int, Int)) where
 repaint x0 (x1, x2, x3, x4)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_repaint2 cobj_x0 (toCInt x1) (toCInt x2) (toCInt x3) (toCInt x4)

instance Qrepaint (QProgressDialog ()) ((QRegion t1)) where
 repaint x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_repaint1 cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_repaint1" qtc_QProgressDialog_repaint1 :: Ptr (TQProgressDialog a) -> Ptr (TQRegion t1) -> IO ()

instance Qrepaint (QProgressDialogSc a) ((QRegion t1)) where
 repaint x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_repaint1 cobj_x0 cobj_x1

instance QresetInputContext (QProgressDialog ()) (()) where
 resetInputContext x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_resetInputContext cobj_x0

foreign import ccall "qtc_QProgressDialog_resetInputContext" qtc_QProgressDialog_resetInputContext :: Ptr (TQProgressDialog a) -> IO ()

instance QresetInputContext (QProgressDialogSc a) (()) where
 resetInputContext x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_resetInputContext cobj_x0

instance Qresize (QProgressDialog ()) ((Int, Int)) (IO ()) where
 resize x0 (x1, x2)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_resize1 cobj_x0 (toCInt x1) (toCInt x2)

foreign import ccall "qtc_QProgressDialog_resize1" qtc_QProgressDialog_resize1 :: Ptr (TQProgressDialog a) -> CInt -> CInt -> IO ()

instance Qresize (QProgressDialogSc a) ((Int, Int)) (IO ()) where
 resize x0 (x1, x2)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_resize1 cobj_x0 (toCInt x1) (toCInt x2)

instance Qqresize (QProgressDialog ()) ((QSize t1)) where
 qresize x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_resize cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_resize" qtc_QProgressDialog_resize :: Ptr (TQProgressDialog a) -> Ptr (TQSize t1) -> IO ()

instance Qqresize (QProgressDialogSc a) ((QSize t1)) where
 qresize x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_resize cobj_x0 cobj_x1

instance Qresize (QProgressDialog ()) ((Size)) (IO ()) where
 resize x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withCSize x1 $ \csize_x1_w csize_x1_h ->
    qtc_QProgressDialog_resize_qth cobj_x0 csize_x1_w csize_x1_h

foreign import ccall "qtc_QProgressDialog_resize_qth" qtc_QProgressDialog_resize_qth :: Ptr (TQProgressDialog a) -> CInt -> CInt -> IO ()

instance Qresize (QProgressDialogSc a) ((Size)) (IO ()) where
 resize x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withCSize x1 $ \csize_x1_w csize_x1_h ->
    qtc_QProgressDialog_resize_qth cobj_x0 csize_x1_w csize_x1_h

instance QsetGeometry (QProgressDialog ()) ((Int, Int, Int, Int)) where
 setGeometry x0 (x1, x2, x3, x4)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_setGeometry1 cobj_x0 (toCInt x1) (toCInt x2) (toCInt x3) (toCInt x4)

foreign import ccall "qtc_QProgressDialog_setGeometry1" qtc_QProgressDialog_setGeometry1 :: Ptr (TQProgressDialog a) -> CInt -> CInt -> CInt -> CInt -> IO ()

instance QsetGeometry (QProgressDialogSc a) ((Int, Int, Int, Int)) where
 setGeometry x0 (x1, x2, x3, x4)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_setGeometry1 cobj_x0 (toCInt x1) (toCInt x2) (toCInt x3) (toCInt x4)

instance QqsetGeometry (QProgressDialog ()) ((QRect t1)) where
 qsetGeometry x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_setGeometry cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_setGeometry" qtc_QProgressDialog_setGeometry :: Ptr (TQProgressDialog a) -> Ptr (TQRect t1) -> IO ()

instance QqsetGeometry (QProgressDialogSc a) ((QRect t1)) where
 qsetGeometry x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_setGeometry cobj_x0 cobj_x1

instance QsetGeometry (QProgressDialog ()) ((Rect)) where
 setGeometry x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withCRect x1 $ \crect_x1_x crect_x1_y  crect_x1_w crect_x1_h ->
    qtc_QProgressDialog_setGeometry_qth cobj_x0 crect_x1_x crect_x1_y crect_x1_w crect_x1_h

foreign import ccall "qtc_QProgressDialog_setGeometry_qth" qtc_QProgressDialog_setGeometry_qth :: Ptr (TQProgressDialog a) -> CInt -> CInt -> CInt -> CInt -> IO ()

instance QsetGeometry (QProgressDialogSc a) ((Rect)) where
 setGeometry x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withCRect x1 $ \crect_x1_x crect_x1_y  crect_x1_w crect_x1_h ->
    qtc_QProgressDialog_setGeometry_qth cobj_x0 crect_x1_x crect_x1_y crect_x1_w crect_x1_h

instance QsetMouseTracking (QProgressDialog ()) ((Bool)) where
 setMouseTracking x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_setMouseTracking cobj_x0 (toCBool x1)

foreign import ccall "qtc_QProgressDialog_setMouseTracking" qtc_QProgressDialog_setMouseTracking :: Ptr (TQProgressDialog a) -> CBool -> IO ()

instance QsetMouseTracking (QProgressDialogSc a) ((Bool)) where
 setMouseTracking x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_setMouseTracking cobj_x0 (toCBool x1)

instance QtabletEvent (QProgressDialog ()) ((QTabletEvent t1)) where
 tabletEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_tabletEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_tabletEvent_h" qtc_QProgressDialog_tabletEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQTabletEvent t1) -> IO ()

instance QtabletEvent (QProgressDialogSc a) ((QTabletEvent t1)) where
 tabletEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_tabletEvent_h cobj_x0 cobj_x1

instance QupdateMicroFocus (QProgressDialog ()) (()) where
 updateMicroFocus x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_updateMicroFocus cobj_x0

foreign import ccall "qtc_QProgressDialog_updateMicroFocus" qtc_QProgressDialog_updateMicroFocus :: Ptr (TQProgressDialog a) -> IO ()

instance QupdateMicroFocus (QProgressDialogSc a) (()) where
 updateMicroFocus x0 ()
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_updateMicroFocus cobj_x0

instance QwheelEvent (QProgressDialog ()) ((QWheelEvent t1)) where
 wheelEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_wheelEvent_h cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_wheelEvent_h" qtc_QProgressDialog_wheelEvent_h :: Ptr (TQProgressDialog a) -> Ptr (TQWheelEvent t1) -> IO ()

instance QwheelEvent (QProgressDialogSc a) ((QWheelEvent t1)) where
 wheelEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_wheelEvent_h cobj_x0 cobj_x1

instance QwindowActivationChange (QProgressDialog ()) ((Bool)) where
 windowActivationChange x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_windowActivationChange cobj_x0 (toCBool x1)

foreign import ccall "qtc_QProgressDialog_windowActivationChange" qtc_QProgressDialog_windowActivationChange :: Ptr (TQProgressDialog a) -> CBool -> IO ()

instance QwindowActivationChange (QProgressDialogSc a) ((Bool)) where
 windowActivationChange x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_windowActivationChange cobj_x0 (toCBool x1)

instance QchildEvent (QProgressDialog ()) ((QChildEvent t1)) where
 childEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_childEvent cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_childEvent" qtc_QProgressDialog_childEvent :: Ptr (TQProgressDialog a) -> Ptr (TQChildEvent t1) -> IO ()

instance QchildEvent (QProgressDialogSc a) ((QChildEvent t1)) where
 childEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_childEvent cobj_x0 cobj_x1

instance QconnectNotify (QProgressDialog ()) ((String)) where
 connectNotify x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withCWString x1 $ \cstr_x1 ->
    qtc_QProgressDialog_connectNotify cobj_x0 cstr_x1

foreign import ccall "qtc_QProgressDialog_connectNotify" qtc_QProgressDialog_connectNotify :: Ptr (TQProgressDialog a) -> CWString -> IO ()

instance QconnectNotify (QProgressDialogSc a) ((String)) where
 connectNotify x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withCWString x1 $ \cstr_x1 ->
    qtc_QProgressDialog_connectNotify cobj_x0 cstr_x1

instance QcustomEvent (QProgressDialog ()) ((QEvent t1)) where
 customEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_customEvent cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_customEvent" qtc_QProgressDialog_customEvent :: Ptr (TQProgressDialog a) -> Ptr (TQEvent t1) -> IO ()

instance QcustomEvent (QProgressDialogSc a) ((QEvent t1)) where
 customEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_customEvent cobj_x0 cobj_x1

instance QdisconnectNotify (QProgressDialog ()) ((String)) where
 disconnectNotify x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withCWString x1 $ \cstr_x1 ->
    qtc_QProgressDialog_disconnectNotify cobj_x0 cstr_x1

foreign import ccall "qtc_QProgressDialog_disconnectNotify" qtc_QProgressDialog_disconnectNotify :: Ptr (TQProgressDialog a) -> CWString -> IO ()

instance QdisconnectNotify (QProgressDialogSc a) ((String)) where
 disconnectNotify x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withCWString x1 $ \cstr_x1 ->
    qtc_QProgressDialog_disconnectNotify cobj_x0 cstr_x1

instance Qreceivers (QProgressDialog ()) ((String)) where
 receivers x0 (x1)
  = withIntResult $
    withObjectPtr x0 $ \cobj_x0 ->
    withCWString x1 $ \cstr_x1 ->
    qtc_QProgressDialog_receivers cobj_x0 cstr_x1

foreign import ccall "qtc_QProgressDialog_receivers" qtc_QProgressDialog_receivers :: Ptr (TQProgressDialog a) -> CWString -> IO CInt

instance Qreceivers (QProgressDialogSc a) ((String)) where
 receivers x0 (x1)
  = withIntResult $
    withObjectPtr x0 $ \cobj_x0 ->
    withCWString x1 $ \cstr_x1 ->
    qtc_QProgressDialog_receivers cobj_x0 cstr_x1

instance Qsender (QProgressDialog ()) (()) where
 sender x0 ()
  = withQObjectResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_sender cobj_x0

foreign import ccall "qtc_QProgressDialog_sender" qtc_QProgressDialog_sender :: Ptr (TQProgressDialog a) -> IO (Ptr (TQObject ()))

instance Qsender (QProgressDialogSc a) (()) where
 sender x0 ()
  = withQObjectResult $
    withObjectPtr x0 $ \cobj_x0 ->
    qtc_QProgressDialog_sender cobj_x0

instance QtimerEvent (QProgressDialog ()) ((QTimerEvent t1)) where
 timerEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_timerEvent cobj_x0 cobj_x1

foreign import ccall "qtc_QProgressDialog_timerEvent" qtc_QProgressDialog_timerEvent :: Ptr (TQProgressDialog a) -> Ptr (TQTimerEvent t1) -> IO ()

instance QtimerEvent (QProgressDialogSc a) ((QTimerEvent t1)) where
 timerEvent x0 (x1)
  = withObjectPtr x0 $ \cobj_x0 ->
    withObjectPtr x1 $ \cobj_x1 ->
    qtc_QProgressDialog_timerEvent cobj_x0 cobj_x1


text:
@interface ServerUser ()
@property (nonatomic, readwrite) YRBTClientDevice *device;
@property (nonatomic, readwrite) BOOL isSubscribed;
@property (nonatomic) NSMutableArray <NSDictionary *> *messageQueue;
@end

@implementation ServerUser

#pragma mark - Dynamic Properties

- (NSString *)identifier {
    if (self.isChatOwner) {
        return [super identifier];
    } else {
        return self.device.uuid.UUIDString;
    }
}

@end

redpajama_set_name: RedPajamaGithub


text:
package Paws::StorageGateway::DeleteTape;
  use Moose;
  has GatewayARN => (is => 'ro', isa => 'Str', required => 1);
  has TapeARN => (is => 'ro', isa => 'Str', required => 1);

  use MooseX::ClassAttribute;

  class_has _api_call => (isa => 'Str', is => 'ro', default => 'DeleteTape');
  class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::StorageGateway::DeleteTapeOutput');
  class_has _result_key => (isa => 'Str', is => 'ro');
1;

### main pod documentation begin ###

=head1 NAME

Paws::StorageGateway::DeleteTape - Arguments for method DeleteTape on Paws::StorageGateway

=head1 DESCRIPTION

This class represents the parameters used for calling the method DeleteTape on the
AWS Storage Gateway service. Use the attributes of this class
as arguments to method DeleteTape.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DeleteTape.

As an example:

  $service_obj->DeleteTape(Att1 => $value1, Att2 => $value2, ...);

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.

=head1 ATTRIBUTES

=head2 B<REQUIRED> GatewayARN => Str

The unique Amazon Resource Name (ARN) of the gateway that the virtual
tape to delete is associated with. Use the ListGateways operation to
return a list of gateways for your account and region.

=head2 B<REQUIRED> TapeARN => Str

The Amazon Resource Name (ARN) of the virtual tape to delete.

=head1 SEE ALSO

This class forms part of L<Paws>, documenting arguments for method DeleteTape in L<Paws::StorageGateway>

=head1 BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues

=cut


text:
package xmpmm

import (
	"fmt"
	"github.com/trimmer-io/go-xmp/models/xmp_dm"
	"github.com/trimmer-io/go-xmp/xmp"
)

var (
	NsXmpMM = xmp.NewNamespace("xmpMM", "http://ns.adobe.com/xap/1.0/mm/", NewModel)
	nsStEvt = xmp.NewNamespace("stEvt", "http://ns.adobe.com/xap/1.0/sType/ResourceEvent#", nil)
	nsStRef = xmp.NewNamespace("stRef", "http://ns.adobe.com/xap/1.0/sType/ResourceRef#", nil)
	nsStVer = xmp.NewNamespace("stVer", "http://ns.adobe.com/xap/1.0/sType/Version#", nil)
)

func init() {
	xmp.Register(NsXmpMM, xmp.XmpMetadata)
	xmp.Register(nsStEvt)
	xmp.Register(nsStRef)
	xmp.Register(nsStVer)
}

func NewModel(name string) xmp.Model {
	return &XmpMM{}
}

func MakeModel(d *xmp.Document) (*XmpMM, error) {
	m, err := d.MakeModel(NsXmpMM)
	if err != nil {
		return nil, err
	}
	x, _ := m.(*XmpMM)
	return x, nil
}

func FindModel(d *xmp.Document) *XmpMM {
	if m := d.FindModel(NsXmpMM); m != nil {
		return m.(*XmpMM)
	}
	return nil
}

type XmpMM struct {
	DerivedFrom        *ResourceRef         `xmp:"xmpMM:DerivedFrom"`
	DocumentID         xmp.GUID             `xmp:"xmpMM:DocumentID"`
	History            ResourceEventArray   `xmp:"xmpMM:History"`
	Ingredients        ResourceRefArray     `xmp:"xmpMM:Ingredients"`
	InstanceID         xmp.GUID             `xmp:"xmpMM:InstanceID"`
	ManagedFrom        *ResourceRef         `xmp:"xmpMM:ManagedFrom"`
	Manager            xmp.AgentName        `xmp:"xmpMM:Manager"`
	ManageTo           xmp.Uri              `xmp:"xmpMM:ManageTo"`
	ManageUI           xmp.Uri              `xmp:"xmpMM:ManageUI"`
	ManagerVariant     string               `xmp:"xmpMM:ManagerVariant"`
	OriginalDocumentID xmp.GUID             `xmp:"xmpMM:OriginalDocumentID"`
	Pantry             xmp.ExtensionArray   `xmp:"xmpMM:Pantry,omitempty"`
	RenditionClass     xmpdm.RenditionClass `xmp:"xmpMM:RenditionClass"`
	RenditionParams    string               `xmp:"xmpMM:RenditionParams"`
	VersionID          string               `xmp:"xmpMM:VersionID"`
	Versions           StVersionArray       `xmp:"xmpMM:Versions"`
}

func (x XmpMM) Can(nsName string) bool {
	return NsXmpMM.GetName() == nsName
}

func (x XmpMM) Namespaces() xmp.NamespaceList {
	return xmp.NamespaceList{NsXmpMM}
}

func (x *XmpMM) SyncModel(d *xmp.Document) error {
	return nil
}

func (x *XmpMM) SyncFromXMP(d *xmp.Document) error {
	return nil
}

func (x XmpMM) SyncToXMP(d *xmp.Document) error {
	return nil
}

func (x *XmpMM) CanTag(tag string) bool {
	_, err := xmp.GetNativeField(x, tag)
	return err == nil
}

func (x *XmpMM) GetTag(tag string) (string, error) {
	if v, err := xmp.GetNativeField(x, tag); err != nil {
		return "", fmt.Errorf("%s: %v", NsXmpMM.GetName(), err)
	} else {
		return v, nil
	}
}

func (x *XmpMM) SetTag(tag, value string) error {
	if err := xmp.SetNativeField(x, tag, value); err != nil {
		return fmt.Errorf("%s: %v", NsXmpMM.GetName(), err)
	}
	return nil
}

func (x *XmpMM) AddPantry(d *xmp.Document) {
	node := xmp.NewNode(xmp.NewName("rdf:Description"))
	cpy := xmp.NewDocument()
	cpy.Merge(d, xmp.MERGE)
	node.Nodes = cpy.Nodes()
	x.Pantry = append(x.Pantry, (*xmp.Extension)(node))
}

func (x *XmpMM) AddHistory(e *ResourceEvent) {
	x.History = append(x.History, e)
}

func (x *XmpMM) AddVersion(v *StVersion) {
	x.Versions = append(x.Versions, v)
}

func (x *XmpMM) GetLastEvent() *ResourceEvent {
	if l := len(x.History); l > 0 {
		return x.History[l-1]
	}
	return nil
}

func (x *XmpMM) GetPreviousVersion() *StVersion {
	if l := len(x.Versions); l > 1 {
		return x.Versions[l-2]
	}
	return nil
}

func (x *XmpMM) GetLastVersion() *StVersion {
	if l := len(x.Versions); l > 0 {
		return x.Versions[l-1]
	}
	return nil
}

func (x *XmpMM) GetPreviousVersionId() string {
	if v := x.GetPreviousVersion(); v != nil {
		return v.Version
	}
	return ""
}

func (x *XmpMM) GetLastVersionId() string {
	if v := x.GetLastVersion(); v != nil {
		return v.Version
	}
	return ""
}

func (x *XmpMM) SetPreviousVersionId(version string) {
	if l := len(x.Versions); l > 0 {
		x.Versions[l-1].Version = version
	}
}

func (x *XmpMM) SelfResourceRef(version string) *ResourceRef {
	ref := &ResourceRef{
		OriginalDocumentID: x.OriginalDocumentID,
		DocumentID:         x.DocumentID,
		InstanceID:         x.InstanceID,
		Manager:            x.Manager,
		ManagerVariant:     x.ManagerVariant,
		ManageTo:           x.ManageTo,
		ManageUI:           x.ManageUI,
		RenditionClass:     x.RenditionClass,
		RenditionParams:    x.RenditionParams,
		MaskMarkers:        xmpdm.MaskNone,
		VersionID:          version,
	}
	if e := x.GetLastEvent(); e != nil {
		ref.LastModifyDate = e.When
	}
	return ref
}

// assumes InstanceID and VersionID are changed outside
func (x *XmpMM) AppendVersionHistory(action ActionType, modifier, changed string, date xmp.Date) {
	// append change to last version
	v := x.GetLastVersion()

	// make new version if none exists or if list does not contain
	// entry for the current version
	if v == nil || v.Version != x.VersionID {
		v = &StVersion{
			Event: ResourceEvent{
				Action:        action,
				Changed:       xmpdm.NewPartList(changed),
				InstanceID:    x.InstanceID,
				SoftwareAgent: xmp.Agent,
				When:          date,
			},
			Modifier:   modifier,
			ModifyDate: date,
			Version:    x.VersionID,
		}
		x.AddVersion(v)
		return
	}
	v.Event.Changed.Add(changed)
}


text:
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.apimanagement.generated;

import com.azure.core.util.Context;

/** Samples for Gateway Delete. */
public final class GatewayDeleteSamples {
    /*
     * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGateway.json
     */
    /**
     * Sample code: ApiManagementDeleteGateway.
     *
     * @param manager Entry point to ApiManagementManager.
     */
    public static void apiManagementDeleteGateway(
        com.azure.resourcemanager.apimanagement.ApiManagementManager manager) {
        manager.gateways().deleteWithResponse("rg1", "apimService1", "gw1", "*", Context.NONE);
    }
}


text:
import argparse
import getpass
import json
import logging
import os
from typing import Optional, List, Union, Iterable

from . import imp_exp
from .importer import SharedFolder, Permission, PathDelimiter, replace_email_domain
from .json.json import KeeperJsonImporter, KeeperJsonExporter
from .lastpass import fetcher
from .lastpass.vault import Vault
from .thycotic import thycotic
from .. import api
from ..commands.base import raise_parse_exception, suppress_exit, user_choice, Command
from ..params import KeeperParams

def register_commands(commands):
    commands['import'] = RecordImportCommand()
    commands['export'] = RecordExportCommand()
    commands['download-membership'] = DownloadMembershipCommand()
    commands['apply-membership'] = ApplyMembershipCommand()

def register_command_info(aliases, command_info):
    for p in [import_parser, export_parser, download_membership_parser, apply_membership_parser]:
        command_info[p.prog] = p.description

import_parser = argparse.ArgumentParser(prog='import', description='Import data from a local file into Keeper.')
import_parser.add_argument('--display-csv', '-dc', dest='display_csv', action='store_true',
                           help='display Keeper CSV import instructions')
import_parser.add_argument('--display-json', '-dj', dest='display_json', action='store_true',
                           help='display Keeper JSON import instructions')
import_parser.add_argument(
    '--format', choices=['json', 'csv', 'keepass', 'lastpass', 'myki', 'nordpass', 'manageengine', '1password',
                         'bitwarden', 'thycotic'],
    required=True, help='file format'
)
import_parser.add_argument('--folder', dest='folder', action='store',
                           help='import into a separate folder.')
import_parser.add_argument('-s', '--shared', dest='shared', action='store_true',
                           help='import folders as Keeper shared folders')
import_parser.add_argument('-p', '--permissions', dest='permissions', action='store',
                           help='default shared folder permissions: manage (U)sers, manage (R)ecords, can (E)dit, can (S)hare, or (A)ll, (N)one')
import_parser.add_argument('--update',  dest='update',  action='store_true',
                           help='Update records with common login, url or title')
import_parser.add_argument('--users',  dest='users',  action='store_true',
                           help='Update shared folder user permissions only')
import_parser.add_argument('--record-type', dest='record_type', action='store',
                           help='Import legacy records as record type')
import_parser.add_argument('--login-type', '-l', dest='login_type', action='store_true',
                           help='Import legacy records as login record type')
import_parser.add_argument('--old-domain', '-od', dest='old_domain', action='store',
                           help='old domain for changing user emails in permissions')
import_parser.add_argument('--new-domain', '-nd', dest='new_domain', action='store',
                           help='new domain for changing user emails in permissions')
import_parser.add_argument('--file-cache', dest='tmpdir', action='store',
                           help='Temp directory used to cache encrypted attachment imports')
import_parser.add_argument(
    'name', type=str, help='file name (json, csv, keepass, 1password), account name (lastpass), or URL (ManageEngine, Thycotic)'
)
import_parser.error = raise_parse_exception
import_parser.exit = suppress_exit

export_parser = argparse.ArgumentParser(prog='export', description='Export data from Keeper to a local file.')
export_parser.add_argument('--format', dest='format', choices=['json', 'csv', 'keepass'], required=True, help='file format')
export_parser.add_argument('--max-size', dest='max_size', help='Maximum file attachment file. Example: 100K, 50M, 2G. Default: 10M')
export_parser.add_argument('-kp', '--keepass-file-password', dest='keepass_file_password', action='store', help='Password for the exported Keepass file')
export_parser.add_argument('--force', dest='force', action='store_true', help='Suppress user interaction. Assume "yes"')
export_parser.add_argument('--folder', dest='folder', action='store', help='Export data from the specific folder only.')
export_parser.add_argument('name', type=str, nargs='?', help='file name or console output if omitted (except keepass)')
export_parser.error = raise_parse_exception
export_parser.exit = suppress_exit

download_membership_parser = argparse.ArgumentParser(prog='download-membership', description='Unload shared folder membership to JSON file.')
download_membership_parser.add_argument('--source', dest='source', choices=['keeper', 'lastpass', 'thycotic'], required=True, help='Shared folder membership source')
download_membership_parser.add_argument('--folder', dest='folder', action='store', help='import into a separate folder.')
download_membership_parser.add_argument('-p', '--permissions', dest='permissions', action='store', help='force shared folder permissions: manage (U)sers, manage (R)ecords')
download_membership_parser.add_argument('-r', '--restrictions', dest='restrictions', action='store', help='force shared folder restrictions: manage (U)sers, manage (R)ecords')
download_membership_parser.add_argument('--old-domain', '-od', dest='old_domain', action='store',  help='old domain for changing user emails in permissions')
download_membership_parser.add_argument('--new-domain', '-nd', dest='new_domain', action='store',  help='new domain for changing user emails in permissions')
download_membership_parser.add_argument('name', type=str, nargs='?', help='Output file name. "shared_folder_membership.json" if omitted.')
download_membership_parser.error = raise_parse_exception
download_membership_parser.exit = suppress_exit

apply_membership_parser = argparse.ArgumentParser(prog='apply-membership', description='Loads shared folder membership from JSON file into Keeper.')
apply_membership_parser.add_argument('name', type=str, nargs='?', help='Output file name. "shared_folder_membership.json" if omitted.')
apply_membership_parser.error = raise_parse_exception
apply_membership_parser.exit = suppress_exit

csv_instructions = '''CSV Import Instructions

File Format:
Folder,Title,Login,Password,Website Address,Notes,Shared Folder,Custom Fields

• To specify subfolders, use backslash "\\" between folder names
• To make a shared folder specify the name or path to it in the 7th field

Example 1: Create a regular folder at the root level with 2 custom fields
My Business Stuff,Twitter,marketing@company.com,123456,https://twitter.com,These are some notes,,API Key,5555,Date Created, 2018-04-02

Example 2: Create a shared subfolder inside another folder with edit and re-share permission
Personal,Twitter,craig@gmail.com,123456,https://twitter.com,,Social Media#edit#reshare

To load the sample data:
import --format=csv sample_data/import.csv
'''

json_instructions = '''JSON Import Instructions

Example JSON import file can be found in sample_data/import.json.txt.

The JSON file supports creating records, folders and shared folders.

Within shared folders, you can also automatically assign user or team permissions.

To load the sample file into your vault, run this command:
import --format=json sample_data/import.json.txt
'''

class ImporterCommand(Command):
    def execute_args(self, params, args, **kwargs):
        if args.find('--display-csv') >= 0 or args.find('-dc') >= 0:
            print(csv_instructions)
        elif args.find('--display-json') >= 0 or args.find('-dj') >= 0:
            print(json_instructions)
        else:
            Command.execute_args(self, params, args, **kwargs)

class RecordImportCommand(ImporterCommand):
    def get_parser(self):
        return import_parser

    def execute(self, params, **kwargs):
        if params.enforcements and 'booleans' in params.enforcements:
            restricted = next((x['value'] for x in params.enforcements['booleans'] if x['key'] == 'restrict_import'), False)
            if restricted:
                logging.warning('"import" is restricted by Keeper Administrator')
                return
        update_flag = kwargs['update'] if 'update' in kwargs else False
        import_format = kwargs['format'] if 'format' in kwargs else None
        import_name = kwargs['name'] if 'name' in kwargs else None
        shared = kwargs.get('shared') or False
        manage_users = False
        manage_records = False
        can_edit = False
        can_share = False
        if import_format and import_name:
            permissions = kwargs.get('permissions')
            if shared and not permissions:
                permissions = user_choice('Default shared folder permissions: manage (U)sers, manage (R)ecords, can (E)dit, can (S)hare, or (A)ll, (N)one', 'uresan', show_choice=False, multi_choice=True)
            if permissions:
                chars = set()
                chars.update([x for x in permissions.lower()])
                if 'a' in chars:
                    manage_users = True
                    manage_records = True
                    can_edit = True
                    can_share = True
                else:
                    if 'u' in chars:
                        manage_users = True
                    if 'r' in chars:
                        manage_records = True
                    if 'e' in chars:
                        can_edit = True
                    if 's' in chars:
                        can_share = True

            logging.info('Processing... please wait.')
            record_type = ''
            if kwargs.get('login_type'):
                record_type = 'login'
            rt = kwargs.get('record_type')
            if rt:
                if record_type and record_type != rt:
                    logging.warning('Options login-type and record-type are mutually exclusive.')
                    return
                record_type = rt
            if record_type:
                rti = None
                if params.record_type_cache:
                    for rts in params.record_type_cache.values():
                        try:
                            rto = json.loads(rts)
                            if rto.get('$id') == record_type:
                                rti = rto
                                break
                        except:
                            pass
                if rti is None:
                    logging.warning(f'Record type "{record_type}" not found.')
                    return

            imp_exp._import(params, import_format, import_name, shared=shared, import_into=kwargs.get('folder'),
                            manage_users=manage_users, manage_records=manage_records, users_only=kwargs.get('users') or False,
                            can_edit=can_edit, can_share=can_share, update_flag=update_flag, tmpdir=kwargs.get('tmpdir'),
                            old_domain=kwargs.get('old_domain'), new_domain=kwargs.get('new_domain'),
                            record_type=record_type)
        else:
            logging.error('Missing argument')

class RecordExportCommand(ImporterCommand):
    def get_parser(self):
        return export_parser

    def execute(self, params, **kwargs):

        if is_export_restricted(params):
            logging.warning('Permissions Required: `export` command is disabled. '
                            'Please contact your enterprise administrator.')
            return

        export_format = kwargs.pop('format', None)
        export_name = kwargs.pop('name', None)

        if format:
            msize = kwargs.pop('max_size', None)    # type: str
            if msize:
                multiplier = 1
                scale = msize[-1].upper()
                if scale == 'K':
                    multiplier = 1024
                elif scale == 'M':
                    multiplier = 1024 ** 2
                elif scale == 'G':
                    multiplier = 1024 ** 3

                if multiplier != 1:
                    msize = msize[:-1]
                try:
                    max_size = int(msize) * multiplier
                    kwargs['max_size'] = max_size
                except ValueError:
                    logging.error('Invalid maximum attachment file size parameter: %s', kwargs.get('max_size'))
                    return

            imp_exp.export(params, export_format, export_name, **kwargs)
        else:
            logging.error('Missing argument')

def is_export_restricted(params):
    is_export_restricted = False

    booleans = params.enforcements['booleans'] if params.enforcements and 'booleans' in params.enforcements else []

    if len(booleans) > 0:
        restrict_export_boolean = next((s for s in booleans if s['key'] == 'restrict_export'), None)

        if restrict_export_boolean:
            is_export_restricted = restrict_export_boolean['value']

    return is_export_restricted

def set_permission(perm, user, permit, restrict, perm_name):
    p = (user[perm_name] or permit[perm_name]) and not restrict[perm_name]
    setattr(perm, perm_name, p)

class DownloadMembershipCommand(Command):
    def get_parser(self):  # type: () -> Optional[argparse.ArgumentParser]
        return download_membership_parser

    def execute(self, params, **kwargs):  # type: (KeeperParams, **any) -> any
        source = kwargs.get('source') or 'keeper'
        file_name = kwargs.get('name') or 'shared_folder_membership.json'
        old_domain = kwargs.get('old_domain')
        new_domain = kwargs.get('new_domain')
        import_into = kwargs.get('folder')
        if import_into:
            import_into = import_into.replace(PathDelimiter, 2 * PathDelimiter)

        permissions = kwargs.get('permissions')
        permit = {'manage_users': False, 'manage_records': False}
        if permissions:
            if 'u' in permissions.lower():
                permit['manage_users'] = True
            if 'r' in permissions.lower():
                permit['manage_records'] = True

        restrictions = kwargs.get('restrictions')
        restrict = {'manage_users': False, 'manage_records': False}
        if restrictions:
            if 'u' in restrictions.lower():
                restrict['manage_users'] = True
            if 'r' in restrictions.lower():
                restrict['manage_records'] = True

        shared_folders = []  # type: List[SharedFolder]

        json_importer = KeeperJsonImporter()

        if os.path.exists(file_name):
            for sf in json_importer.do_import(file_name, users_only=True):
                if isinstance(sf, SharedFolder):
                    shared_folders.append(sf)

        json_shared_folders = set((x.uid for x in shared_folders))

        added_members = []  # type: List[SharedFolder]
        if source == 'keeper':
            if params.shared_folder_cache:
                for shared_folder_uid in params.shared_folder_cache:
                    if shared_folder_uid in json_shared_folders:
                        continue
                    shared_folder = api.get_shared_folder(params, shared_folder_uid)
                    sf = SharedFolder()
                    sf.uid = shared_folder.shared_folder_uid
                    sf.path = imp_exp.get_folder_path(params, shared_folder.shared_folder_uid)
                    sf.manage_users = shared_folder.default_manage_users
                    sf.manage_records = shared_folder.default_manage_records
                    sf.can_edit = shared_folder.default_can_edit
                    sf.can_share = shared_folder.default_can_share
                    sf.permissions = []
                    if shared_folder.teams:
                        for team in shared_folder.teams:
                            perm = Permission()
                            perm.uid = team['team_uid']
                            perm.name = team['name']
                            set_permission(perm, team, permit, restrict, 'manage_users')
                            set_permission(perm, team, permit, restrict, 'manage_records')
                            sf.permissions.append(perm)
                    if shared_folder.users:
                        for user in shared_folder.users:
                            perm = Permission()
                            perm.name = user['username']
                            set_permission(perm, user, permit, restrict, 'manage_users')
                            set_permission(perm, user, permit, restrict, 'manage_records')
                            sf.permissions.append(perm)
                    added_members.append(sf)

        elif source == 'lastpass':
            username = input('...' + 'LastPass Username'.rjust(30) + ': ')
            if not username:
                logging.warning('LastPass username is required')
                return
            password = getpass.getpass(prompt='...' + 'LastPass Password'.rjust(30) + ': ', stream=None)
            if not password:
                logging.warning('LastPass password is required')
                return

            print('Press <Enter> if account is not protected with Multifactor Authentication')
            twofa_code = getpass.getpass(prompt='...' + 'Multifactor Password'.rjust(30) + ': ', stream=None)
            if not twofa_code:
                twofa_code = None

            session = None
            try:
                session = fetcher.login(username, password, twofa_code, None)
                blob = fetcher.fetch(session)
                encryption_key = blob.encryption_key(username, password)
                vault = Vault(blob, encryption_key, session, shared_folder_details=False, get_attachments=False)

                lastpass_shared_folder = [x for x in vault.shared_folders]

                for lpsf in lastpass_shared_folder:
                    if lpsf.id in json_shared_folders:
                        continue

                    logging.info('Loading shared folder membership for "%s"', lpsf.name)

                    members, teams, error = fetcher.fetch_shared_folder_members(session, lpsf.id)
                    sf = SharedFolder()
                    sf.uid = lpsf.id
                    if import_into:
                        sf.path = f'{import_into}{PathDelimiter}{lpsf.name}'
                    else:
                        sf.path = lpsf.name
                    sf.permissions = []
                    if members:
                        sf.permissions.extend((
                            self._lastpass_permission(x, permit, restrict, old_host=old_domain, new_host=new_domain)
                            for x in members
                        ))
                    if teams:
                        sf.permissions.extend((
                            self._lastpass_permission(x, permit, restrict, team=True) for x in teams
                        ))
                    added_members.append(sf)
            except Exception as e:
                logging.warning(e)
            finally:
                if session:
                    fetcher.logout(session)

        elif source == 'thycotic':
            added_members.extend(DownloadMembershipCommand.get_thycotic_membership())

        if added_members:
            shared_folders.extend(added_members)
            json_exporter = KeeperJsonExporter()
            json_exporter.do_export(file_name, shared_folders)
            logging.info('%d shared folder memberships downloaded.', len(added_members))
        else:
            logging.info('No folder memberships downloaded.')

    @staticmethod
    def _lastpass_permission(lp_permission, permit, restrict, team=False, old_host=None, new_host=None):
        # type: (dict, dict, dict, Optional[bool], Optional[str], Optional[str]) -> Permission
        permission = Permission()
        if team:
            permission.name = lp_permission['name']
        else:
            permission.name = replace_email_domain(lp_permission['username'], old_host, new_host)
        manage_records = lp_permission['readonly'] == '0'
        permission.manage_records = (manage_records or permit['manage_records']) and not restrict['manage_records']
        manage_users = lp_permission['can_administer'] == '1'
        permission.manage_users = (manage_users or permit['manage_users']) and not restrict['manage_users']
        return permission

    @staticmethod
    def request_totp():
        return input('...' + 'Enter TOTP Code'.rjust(30) + ': ')

    @staticmethod
    def get_thycotic_membership():    # type: () -> Iterable[Union[SharedFolder]]
        url = input('...' + 'Thycotic Host or URL'.rjust(30) + ': ')
        if not url:
            logging.warning('Thycotic Host or URL is required')
            return
        if not url.startswith('https://'):
            url = f'https://{url}/SecretServer'
        username = input('...' + 'Thycotic Username'.rjust(30) + ': ')
        if not username:
            logging.warning('Thycotic username is required')
            return
        password = getpass.getpass(prompt='...' + 'Thycotic Password'.rjust(30) + ': ', stream=None)
        if not password:
            logging.warning('Thycotic password is required')
            return

        auth = thycotic.ThycoticAuth(url)
        auth.authenticate(username, password, on_totp=DownloadMembershipCommand.request_totp)

        user_rs = auth.thycotic_search('/v1/users')
        users = {x['id']: {
            'emailAddress': x.get('emailAddress', ''),
            'userName': x.get('userName', ''),
        } for x in user_rs}

        group_rs = auth.thycotic_search('/v1/groups/lookup')
        for group in group_rs:
            group_id = group['id']
            group_name = group.pop('value', None)
            if group_name:
                group['name'] = group_name
            members = auth.thycotic_search(f'/v1/groups/{group_id}/users')
            group['members'] = [x['userId'] for x in members]
        groups = {x['id']: x for x in group_rs}

        folder_rs = auth.thycotic_search('/v1/folders?filter.onlyIncludeRootFolders=true')
        pos = 0
        while pos < len(folder_rs):
            folder = folder_rs[pos]
            pos += 1
            folder_id = folder['id']
            fs = auth.thycotic_search(f'/v1/folders?filter.parentFolderId={folder_id}')
            folder_rs.extend(fs)
        folders = {x['id']: {
            'folderName': x['folderName'],
            'folderPath': x['folderPath'],
            'parentFolderId': x['parentFolderId'],
        } for x in folder_rs}

        personal_name = folders[1]['folderName'] if 1 in folders else ''
        for folder in folders.values():
            path = folder['folderPath']   # type: str
            path = path.strip('\\')
            if personal_name and path.startswith(personal_name):
                path = path[len(personal_name):]
                path = path.strip('\\')
            folder['folderPath'] = path

        for folder_id in folders:
            folder = folders[folder_id]
            if folder_id > 1:
                permissions = auth.thycotic_search(f'/v1/folder-permissions?filter.folderId={folder_id}')
                folder['permissions'] = [x for x in permissions if x['secretAccessRoleName'] != 'Owner' or x['folderAccessRoleName'] != 'Owner']
            else:
                folder['permissions'] = []

        # remove permissions from Shared Folder Folders
        user_folders = []
        shared_folders = set()
        for folder_id, folder in folders.items():
            parent_folder_id = folder.get('parentFolderId', -1)
            if parent_folder_id > 0:
                continue
            permissions = folder.get('permissions', [])
            if len(permissions) == 0:
                user_folders.append(folder_id)
            else:
                shared_folders.add(folder_id)

        pos = 0
        while pos < len(user_folders):
            parent_folder_id = user_folders[pos]
            pos += 1
            for folder_id, folder in folders.items():
                if folder['parentFolderId'] != parent_folder_id:
                    continue
                permissions = folder.get('permissions', [])
                if len(permissions) == 0:
                    user_folders.append(folder_id)
                else:
                    shared_folders.add(folder_id)
        for folder_id in shared_folders:
            folder = folders[folder_id]
            shared_folder = SharedFolder()
            shared_folder.path = folder['folderPath']
            shared_folder.permissions = []
            for p in folder.get('permissions', []):
                folder_permission = p.get('folderAccessRoleName')
                manage_users = folder_permission in ('Owner', 'Edit')
                secret_permission = p.get('secretAccessRoleName')
                manage_records = secret_permission in ('Owner', 'Edit') or folder_permission == 'Add Secret'

                user_id = p.get('userId', -1)
                if user_id in users:
                    user = users[user_id]
                    email = user.get('emailAddress')
                    if email:
                        perm = Permission()
                        perm.name = email
                        perm.manage_users = manage_users
                        perm.manage_records = manage_records
                        shared_folder.permissions.append(perm)
                else:
                    group_id = p.get('groupId', -1)
                    if group_id in groups:
                        group = groups[group_id]
                        team_name = group.get('name')
                        if team_name:
                            perm = Permission()
                            perm.name = team_name
                            perm.manage_users = manage_users
                            perm.manage_records = manage_records
                            shared_folder.permissions.append(perm)
            yield shared_folder

class ApplyMembershipCommand(Command):
    def get_parser(self):  # type: () -> Optional[argparse.ArgumentParser]
        return apply_membership_parser

    def execute(self, params, **kwargs):  # type: (KeeperParams, **any) -> any
        file_name = kwargs.get('name') or 'shared_folder_membership.json'
        if not os.path.exists(file_name):
            logging.warning('Shared folder membership file "%s" not found', file_name)
            return

        file_name = kwargs.get('name') or 'shared_folder_membership.json'

        shared_folders = []  # type: List[SharedFolder]

        if os.path.exists(file_name):
            json_importer = KeeperJsonImporter()
            for sf in json_importer.do_import(file_name, users_only=True):
                if isinstance(sf, SharedFolder):
                    shared_folders.append(sf)

        if len(shared_folders) > 0:
            imp_exp.import_user_permissions(params, shared_folders)


text:
export { default as MessageContent } from './MessageContent'
export { default as MessageTimestamp } from './MessageTimestamp'
export { default as MessageUser } from './MessageUser'
export { default as MessageUserAvatar } from './MessageUserAvatar'


text:
from django import template
from django.utils.safestring import mark_safe
register = template.Library()

@register.assignment_tag
def form_tag(body):
    """
    tag usage {% form_tag id %}
    """
    if '[totc-form' in body:
        start_index = body.find('totc-form id=')
        start_id_index = start_index + 13
        end_index = body.find(']', start_index)
        form_id = body[start_id_index:end_index]
        replace_string = '''

Thanks for your submission!

        ''' % (form_id, form_id)
        safe = mark_safe(replace_string)
        body = body.replace(body[start_index-1:end_index+1], safe)
    return mark_safe(body)


text:
//
//  MessageViewController.m
//  LessionBook
//
//  Created by scjy on 16/3/18.
//  Copyright © 2016年 迪士尼工作室. All rights reserved.
//

#import "MessageViewController.h"
#import "LinkManViewController.h"
#import <EaseMobSDKFull/EaseMob.h>
#import "SingleViewController.h"

@interface MessageViewController ()<UITableViewDataSource, UITableViewDelegate,EMChatManagerDelegate>

@property (nonatomic, strong) UITableView *tableView;

//会话列表数组
@property (nonatomic, strong) NSArray *conversionArray;

@end

@implementation MessageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"消息";
    //导航栏颜色
    self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:0 green:201 / 255.0 blue:1 alpha:1.0];
    [self showBackButton:@"ic_arrow_general2"];
    [self showRightBarButton:@"清空"];
    self.tableView.tableFooterView = [[UIView alloc] init];
    [self.view addSubview:self.tableView];
}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    //tabBar显示
    self.tabBarController.tabBar.hidden = NO;
    self.tabBarController.tabBar.frame = CGRectMake(0, kScreenHeight - 44, kScreenWidth, 44);
    //获取数据库中的所有会话列表以及是否更新内存中的会话
    self.conversionArray = [[EaseMob sharedInstance].chatManager loadAllConversationsFromDatabaseWithAppend2Chat:YES];
    [self.tableView reloadData];
}

#pragma mark -----CustomMethod

- (void)backAction:(UIButton *)btn{
    [self.tabBarController dismissViewControllerAnimated:YES completion:nil];
}

//移除所有会话记录
-(void)leftTitleAction:(UIButton *)btn{
    [[EaseMob sharedInstance].chatManager removeAllConversationsWithDeleteMessages:self append2Chat:YES];
    self.conversionArray = [[EaseMob sharedInstance].chatManager loadAllConversationsFromDatabaseWithAppend2Chat:YES];
    [self.tableView reloadData];
}

#pragma mark --------------UITableViewDataSource

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return self.conversionArray.count;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    static NSString *cellID = @"cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:cellID];
    }
    if (self.conversionArray.count > 0) {
        EMConversation *conversation = self.conversionArray[indexPath.row];
        cell.textLabel.text = conversation.chatter;
        EMMessage *message = conversation.latestMessage;
        id<IEMMessageBody> msBody = message.messageBodies.firstObject;
        switch (msBody.messageBodyType) {
            case eMessageBodyType_Text:{
                NSString *txt = ((EMTextMessageBody *)msBody).text;
                cell.detailTextLabel.text = txt;
                cell.imageView.layer.cornerRadius = 25;
                cell.imageView.clipsToBounds = YES;
                cell.imageView.image = [UIImage imageNamed:@"EaseUIResource.bundle/user"];
            }
                break;
            default:
                break;
        }
    }
       return cell;
}

#pragma mark --------------UITableViewDelegate

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    EMConversation *conversation = self.conversionArray[indexPath.row];
    SingleViewController *singleVC = [[SingleViewController alloc] initWithConversationChatter:conversation.chatter conversationType:conversation.conversationType];
    [self.navigationController pushViewController:singleVC animated:YES];
}

#pragma mark --------------Lazyloading

-(UITableView *)tableView{
    if (_tableView == nil) {
        self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight - 64) style:UITableViewStylePlain];
        self.tableView.dataSource = self;
        self.tableView.delegate = self;
        self.tableView.rowHeight = 50;
    }
    return _tableView;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end