// This is a generated source file for Chilkat version 11.2.0
#ifndef _C_CkTaskWH
#define _C_CkTaskWH
#include "chilkatDefs.h"

#include "ck_inttypes.h"
#include "Chilkat_C.h"


CK_C_VISIBLE_PUBLIC void CkTaskW_setAbortCheck(HCkTaskW cHandle, BOOL (*fnAbortCheck)(void));
CK_C_VISIBLE_PUBLIC void CkTaskW_setPercentDone(HCkTaskW cHandle, BOOL (*fnPercentDone)(int pctDone));
CK_C_VISIBLE_PUBLIC void CkTaskW_setProgressInfo(HCkTaskW cHandle, void (*fnProgressInfo)(const wchar_t *name, const wchar_t *value));
CK_C_VISIBLE_PUBLIC void CkTaskW_setTaskCompleted(HCkTaskW cHandle, void (*fnTaskCompleted)(HCkTaskW hTask));

CK_C_VISIBLE_PUBLIC HCkTaskW CkTaskW_Create(void);
CK_C_VISIBLE_PUBLIC void CkTaskW_Dispose(HCkTaskW handle);
CK_C_VISIBLE_PUBLIC void CkTaskW_getDebugLogFilePath(HCkTaskW cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void  CkTaskW_putDebugLogFilePath(HCkTaskW cHandle, const wchar_t *newVal);
CK_C_VISIBLE_PUBLIC const wchar_t *CkTaskW_debugLogFilePath(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkTaskW_getFinished(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC int CkTaskW_getHeartbeatMs(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC void  CkTaskW_putHeartbeatMs(HCkTaskW cHandle, int newVal);
CK_C_VISIBLE_PUBLIC BOOL CkTaskW_getInert(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkTaskW_getKeepProgressLog(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC void  CkTaskW_putKeepProgressLog(HCkTaskW cHandle, BOOL newVal);
CK_C_VISIBLE_PUBLIC void CkTaskW_getLastErrorHtml(HCkTaskW cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC const wchar_t *CkTaskW_lastErrorHtml(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC void CkTaskW_getLastErrorText(HCkTaskW cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC const wchar_t *CkTaskW_lastErrorText(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC void CkTaskW_getLastErrorXml(HCkTaskW cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC const wchar_t *CkTaskW_lastErrorXml(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkTaskW_getLastMethodSuccess(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC void  CkTaskW_putLastMethodSuccess(HCkTaskW cHandle, BOOL newVal);
CK_C_VISIBLE_PUBLIC BOOL CkTaskW_getLive(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC int CkTaskW_getPercentDone(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC int CkTaskW_getProgressLogSize(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC void CkTaskW_getResultErrorText(HCkTaskW cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC const wchar_t *CkTaskW_resultErrorText(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC void CkTaskW_getResultType(HCkTaskW cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC const wchar_t *CkTaskW_resultType(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC void CkTaskW_getStatus(HCkTaskW cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC const wchar_t *CkTaskW_status(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC int CkTaskW_getStatusInt(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC int CkTaskW_getTaskId(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkTaskW_getTaskSuccess(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC void CkTaskW_getUserData(HCkTaskW cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void  CkTaskW_putUserData(HCkTaskW cHandle, const wchar_t *newVal);
CK_C_VISIBLE_PUBLIC const wchar_t *CkTaskW_userData(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkTaskW_getVerboseLogging(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC void  CkTaskW_putVerboseLogging(HCkTaskW cHandle, BOOL newVal);
CK_C_VISIBLE_PUBLIC void CkTaskW_getVersion(HCkTaskW cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC const wchar_t *CkTaskW_version(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkTaskW_Cancel(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC void CkTaskW_ClearProgressLog(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkTaskW_CopyResultBytes(HCkTaskW cHandle, HCkByteData outBytes);
CK_C_VISIBLE_PUBLIC BOOL CkTaskW_GetResultBool(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkTaskW_GetResultBytes(HCkTaskW cHandle, HCkByteData outBytes);
CK_C_VISIBLE_PUBLIC int CkTaskW_GetResultInt(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkTaskW_GetResultString(HCkTaskW cHandle, HCkString outStr);
CK_C_VISIBLE_PUBLIC const wchar_t *CkTaskW_getResultString(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkTaskW_ProgressInfoName(HCkTaskW cHandle, int index, HCkString outStr);
CK_C_VISIBLE_PUBLIC const wchar_t *CkTaskW_progressInfoName(HCkTaskW cHandle, int index);
CK_C_VISIBLE_PUBLIC BOOL CkTaskW_ProgressInfoValue(HCkTaskW cHandle, int index, HCkString outStr);
CK_C_VISIBLE_PUBLIC const wchar_t *CkTaskW_progressInfoValue(HCkTaskW cHandle, int index);
CK_C_VISIBLE_PUBLIC void CkTaskW_RemoveProgressInfo(HCkTaskW cHandle, int index);
CK_C_VISIBLE_PUBLIC BOOL CkTaskW_Run(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkTaskW_RunSynchronously(HCkTaskW cHandle);
CK_C_VISIBLE_PUBLIC void CkTaskW_SleepMs(HCkTaskW cHandle, int numMs);
CK_C_VISIBLE_PUBLIC BOOL CkTaskW_Wait(HCkTaskW cHandle, int maxWaitMs);
#endif
