// This is a generated source file for Chilkat version 11.5.0
#ifndef _C_CkOAuth2_H
#define _C_CkOAuth2_H
#include "chilkatDefs.h"
#include "ck_inttypes.h"
#include "Chilkat_C.h"


CK_C_VISIBLE_PUBLIC void CkOAuth2_setAbortCheck(HCkOAuth2 cHandle, BOOL (*fnAbortCheck)(void));
CK_C_VISIBLE_PUBLIC void CkOAuth2_setPercentDone(HCkOAuth2 cHandle, BOOL (*fnPercentDone)(int pctDone));
CK_C_VISIBLE_PUBLIC void CkOAuth2_setProgressInfo(HCkOAuth2 cHandle, void (*fnProgressInfo)(const char *name, const char *value));
CK_C_VISIBLE_PUBLIC void CkOAuth2_setTaskCompleted(HCkOAuth2 cHandle, void (*fnTaskCompleted)(HCkTask hTask));

CK_C_VISIBLE_PUBLIC void CkOAuth2_setAbortCheck2(HCkOAuth2 cHandle, BOOL (*fnAbortCheck2)(void *pContext));
CK_C_VISIBLE_PUBLIC void CkOAuth2_setPercentDone2(HCkOAuth2 cHandle, BOOL (*fnPercentDone2)(int pctDone, void *pContext));
CK_C_VISIBLE_PUBLIC void CkOAuth2_setProgressInfo2(HCkOAuth2 cHandle, void (*fnProgressInfo2)(const char *name, const char *value, void *pContext));
CK_C_VISIBLE_PUBLIC void CkOAuth2_setTaskCompleted2(HCkOAuth2 cHandle, void (*fnTaskCompleted2)(HCkTask hTask, void *pContext));

// setExternalProgress is for C callback functions defined in the external programming language (such as Go)
CK_C_VISIBLE_PUBLIC void CkOAuth2_setExternalProgress(HCkOAuth2 cHandle, BOOL on);
CK_C_VISIBLE_PUBLIC void CkOAuth2_setCallbackContext(HCkOAuth2 cHandle, void *pContext);

CK_C_VISIBLE_PUBLIC HCkOAuth2 CkOAuth2_Create(void);
CK_C_VISIBLE_PUBLIC HCkOAuth2 CkOAuth2_Create2(int progLang);
CK_C_VISIBLE_PUBLIC void CkOAuth2_Dispose(HCkOAuth2 handle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getAccessToken(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putAccessToken(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_accessToken(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getAccessTokenResponse(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_accessTokenResponse(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getAppCallbackUrl(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putAppCallbackUrl(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_appCallbackUrl(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC int CkOAuth2_getAuthFlowState(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getAuthorizationEndpoint(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putAuthorizationEndpoint(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_authorizationEndpoint(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getClientId(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putClientId(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_clientId(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getClientSecret(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putClientSecret(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_clientSecret(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_getCodeChallenge(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putCodeChallenge(HCkOAuth2 cHandle, BOOL newVal);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getCodeChallengeMethod(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putCodeChallengeMethod(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_codeChallengeMethod(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getDebugLogFilePath(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putDebugLogFilePath(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_debugLogFilePath(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_getEnableSecrets(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putEnableSecrets(HCkOAuth2 cHandle, BOOL newVal);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getFailureInfo(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_failureInfo(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_getIncludeNonce(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putIncludeNonce(HCkOAuth2 cHandle, BOOL newVal);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getLastErrorHtml(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_lastErrorHtml(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getLastErrorText(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_lastErrorText(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getLastErrorXml(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_lastErrorXml(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_getLastMethodSuccess(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putLastMethodSuccess(HCkOAuth2 cHandle, BOOL newVal);
CK_C_VISIBLE_PUBLIC int CkOAuth2_getListenPort(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putListenPort(HCkOAuth2 cHandle, int newVal);
CK_C_VISIBLE_PUBLIC int CkOAuth2_getListenPortRangeEnd(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putListenPortRangeEnd(HCkOAuth2 cHandle, int newVal);
CK_C_VISIBLE_PUBLIC int CkOAuth2_getListenPortSelected(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getLocalHost(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putLocalHost(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_localHost(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC int CkOAuth2_getNonceLength(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putNonceLength(HCkOAuth2 cHandle, int newVal);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_getOob(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putOob(HCkOAuth2 cHandle, BOOL newVal);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getRedirectAllowHtml(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putRedirectAllowHtml(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_redirectAllowHtml(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getRedirectDenyHtml(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putRedirectDenyHtml(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_redirectDenyHtml(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getRedirectReqReceived(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_redirectReqReceived(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getRefreshToken(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putRefreshToken(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_refreshToken(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getResource(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putResource(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_resource(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getResponseMode(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putResponseMode(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_responseMode(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getResponseType(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putResponseType(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_responseType(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getScope(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putScope(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_scope(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getStateParam(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putStateParam(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_stateParam(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getTokenEndpoint(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putTokenEndpoint(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_tokenEndpoint(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getTokenType(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putTokenType(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_tokenType(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getUncommonOptions(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putUncommonOptions(HCkOAuth2 cHandle, const char *newVal);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_uncommonOptions(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_getUseBasicAuth(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putUseBasicAuth(HCkOAuth2 cHandle, BOOL newVal);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_getUtf8(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putUtf8(HCkOAuth2 cHandle, BOOL newVal);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_getVerboseLogging(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC void CkOAuth2_putVerboseLogging(HCkOAuth2 cHandle, BOOL newVal);
CK_C_VISIBLE_PUBLIC void CkOAuth2_getVersion(HCkOAuth2 cHandle, HCkString retval);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_version(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_AddAuthQueryParam(HCkOAuth2 cHandle, const char *name, const char *value);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_AddRefreshQueryParam(HCkOAuth2 cHandle, const char *name, const char *value);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_AddTokenQueryParam(HCkOAuth2 cHandle, const char *name, const char *value);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_Cancel(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_ExchangeCodeForToken(HCkOAuth2 cHandle, const char *code);
CK_C_VISIBLE_PUBLIC HCkTask CkOAuth2_ExchangeCodeForTokenAsync(HCkOAuth2 cHandle, const char *code);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_GetAccessTokenResponseSb(HCkOAuth2 cHandle, HCkStringBuilder sb);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_GetRedirectRequestParam(HCkOAuth2 cHandle, const char *paramName, HCkString outStr);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_getRedirectRequestParam(HCkOAuth2 cHandle, const char *paramName);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_LaunchBrowser(HCkOAuth2 cHandle, const char *url);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_LoadTaskCaller(HCkOAuth2 cHandle, HCkTask task);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_RefreshAccessToken(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC HCkTask CkOAuth2_RefreshAccessTokenAsync(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_SetRefreshHeader(HCkOAuth2 cHandle, const char *name, const char *value);
CK_C_VISIBLE_PUBLIC void CkOAuth2_SleepMs(HCkOAuth2 cHandle, int millisec);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_StartAuth(HCkOAuth2 cHandle, HCkString outStr);
CK_C_VISIBLE_PUBLIC const char *CkOAuth2_startAuth(HCkOAuth2 cHandle);
CK_C_VISIBLE_PUBLIC BOOL CkOAuth2_UseConnection(HCkOAuth2 cHandle, HCkSocket sock);
#endif
