Example #1
0
void IPCServiceMain::registerFunctions()
{
#ifndef DESURA_CLIENT
	REG_FUNCTION_VOID( IPCServiceMain, updateRegKey );
	REG_FUNCTION_VOID( IPCServiceMain, updateBinaryRegKeyBlob);

	REG_FUNCTION_VOID( IPCServiceMain, dispVersion );
	
	REG_FUNCTION_VOID( IPCServiceMain, setAppDataPath );
	REG_FUNCTION_VOID( IPCServiceMain, setCrashSettings );

	REG_FUNCTION_VOID( IPCServiceMain, removeUninstallRegKey);
	REG_FUNCTION_VOID( IPCServiceMain, setUninstallRegKey);
	REG_FUNCTION_VOID( IPCServiceMain, updateAllUninstallRegKey);

	REG_FUNCTION_VOID( IPCServiceMain, addDesuraToGameExplorer);
	REG_FUNCTION_VOID( IPCServiceMain, addItemGameToGameExplorer);
	REG_FUNCTION_VOID( IPCServiceMain, removeGameFromGameExplorer);

	REG_FUNCTION_VOID( IPCServiceMain, updateShortCuts);
	REG_FUNCTION_VOID( IPCServiceMain, fixFolderPermissions);

	REG_FUNCTION_VOID( IPCServiceMain, runInstallScript);

#else

	REG_FUNCTION_VOID( IPCServiceMain, warning );
	REG_FUNCTION_VOID( IPCServiceMain, message );
	REG_FUNCTION_VOID( IPCServiceMain, debug );

	REG_FUNCTION( IPCServiceMain, getSpecialPath );

#endif
}
Example #2
0
void IPCUpdateApp::registerFunctions()
{
#ifndef DESURA_CLIENT
	REG_FUNCTION_VOID( IPCUpdateApp, stop );
	REG_FUNCTION_VOID( IPCUpdateApp, start );

	LINK_EVENT( onProgressEvent, uint32 );
	LINK_EVENT( onErrorEvent, gcException );
	LINK_EVENT_VOID( onCompleteEvent );

	REG_FUNCTION( IPCUpdateApp, updateService);
	REG_FUNCTION( IPCUpdateApp, fixDataDir);
#else
	REG_EVENT( onProgressEvent );
	REG_EVENT( onErrorEvent );
	REG_EVENT_VOID( onCompleteEvent );
#endif
}
Example #3
0
void IPCBrowser::registerFunctions()
{
#ifndef DESURA_CLIENT
	REG_FUNCTION_VOID( IPCBrowser, newBrowser );

	REG_FUNCTION_VOID( IPCBrowser, refresh );
	REG_FUNCTION_VOID( IPCBrowser, stop );
	REG_FUNCTION_VOID( IPCBrowser, back );
	REG_FUNCTION_VOID( IPCBrowser, forward );

	REG_FUNCTION_VOID( IPCBrowser, forceRefresh );
	REG_FUNCTION_VOID( IPCBrowser, print );
	REG_FUNCTION_VOID( IPCBrowser, viewSource );
	REG_FUNCTION_VOID( IPCBrowser, zoomIn );
	REG_FUNCTION_VOID( IPCBrowser, zoomOut );
	REG_FUNCTION_VOID( IPCBrowser, zoomNormal );

	REG_FUNCTION_VOID( IPCBrowser, onResize );
	REG_FUNCTION_VOID( IPCBrowser, onPaint );
	REG_FUNCTION_VOID( IPCBrowser, onFocus );
	REG_FUNCTION_VOID( IPCBrowser, loadUrl );

	REG_FUNCTION_VOID( IPCBrowser, setCookies );
	REG_FUNCTION_VOID( IPCBrowser, executeJScript );
#else
	REG_FUNCTION( IPCBrowser, getThemeFolder );

	REG_FUNCTION_VOID( IPCBrowser, clearCrumbs );
	REG_FUNCTION_VOID( IPCBrowser, addCrumb );
	REG_FUNCTION_VOID( IPCBrowser, setCounts );

	REG_FUNCTION( IPCBrowser, onNavigateUrl );
	REG_FUNCTION_VOID( IPCBrowser, onPageLoadStart );
	REG_FUNCTION_VOID( IPCBrowser, onPageLoadEnd );
	REG_FUNCTION( IPCBrowser, onKeyEvent );
	REG_FUNCTION_VOID( IPCBrowser, onLogConsoleMsg );
	REG_FUNCTION_VOID( IPCBrowser, launchLink );

	REG_FUNCTION( IPCBrowser, handlePopupMenu );

#endif
}
Example #4
0
void IPCToolMain::registerFunctions()
{
#ifndef DESURA_CLIENT
	REG_FUNCTION_VOID(IPCToolMain, setCrashSettings);
	REG_FUNCTION(IPCToolMain, installTool);

	LINK_EVENT(onErrorEvent, gcException);
	LINK_EVENT(onCompleteEvent, int32);
#else
	REG_EVENT(onErrorEvent);
	REG_EVENT(onCompleteEvent);

	REG_FUNCTION_VOID(IPCToolMain, warning);
	REG_FUNCTION_VOID(IPCToolMain, message);
	REG_FUNCTION_VOID(IPCToolMain, debug);
#endif
}