예제 #1
0
DesuraJSUploadInfo::DesuraJSUploadInfo() : DesuraJSBase("uploads", "native_binding_uploadinfo.js")
{
	REG_SIMPLE_JS_FUNCTION( getUploadFromId, DesuraJSUploadInfo );
	REG_SIMPLE_JS_OBJ_FUNCTION( getUploadId, DesuraJSUploadInfo );

	REG_SIMPLE_JS_OBJ_FUNCTION( shouldDeleteMcf, DesuraJSUploadInfo );
	REG_SIMPLE_JS_OBJ_VOIDFUNCTION( setDeleteMcf, DesuraJSUploadInfo );
	REG_SIMPLE_JS_OBJ_FUNCTION( getItem, DesuraJSUploadInfo );
	REG_SIMPLE_JS_OBJ_FUNCTION( getItemId, DesuraJSUploadInfo );

	REG_SIMPLE_JS_OBJ_VOIDFUNCTION( remove, DesuraJSUploadInfo );
	REG_SIMPLE_JS_OBJ_VOIDFUNCTION( pause, DesuraJSUploadInfo );
	REG_SIMPLE_JS_OBJ_VOIDFUNCTION( unpause, DesuraJSUploadInfo );
	REG_SIMPLE_JS_OBJ_FUNCTION( isPaused, DesuraJSUploadInfo );

	REG_SIMPLE_JS_OBJ_FUNCTION( isComplete, DesuraJSUploadInfo );
	REG_SIMPLE_JS_OBJ_FUNCTION( isValid, DesuraJSUploadInfo );
	REG_SIMPLE_JS_OBJ_FUNCTION( hasError, DesuraJSUploadInfo );
	REG_SIMPLE_JS_OBJ_FUNCTION( hasStarted, DesuraJSUploadInfo );

	REG_SIMPLE_JS_OBJ_VOIDFUNCTION( exploreMcf, DesuraJSUploadInfo );
	REG_SIMPLE_JS_OBJ_FUNCTION( getProgress, DesuraJSUploadInfo );

	REG_SIMPLE_JS_OBJ_VOIDFUNCTION( cancel, DesuraJSUploadInfo );
	REG_SIMPLE_JS_OBJ_FUNCTION( getFileName, DesuraJSUploadInfo );

	m_uiIsValidHash = UTIL::MISC::RSHash_CSTR("isValid");
	m_uiGetUploadFromIdHash = UTIL::MISC::RSHash_CSTR("getUploadFromId");
}
예제 #2
0
FileSystemJSBinding::FileSystemJSBinding() : DesuraJSBase("fs", "installer_binding_fs.js")
{
	REG_SIMPLE_JS_FUNCTION( IsValidFile, FileSystemJSBinding );
	REG_SIMPLE_JS_FUNCTION( IsValidFolder, FileSystemJSBinding );
	REG_SIMPLE_JS_FUNCTION( CopyFile, FileSystemJSBinding );
	REG_SIMPLE_JS_FUNCTION( DeleteFile, FileSystemJSBinding );
	REG_SIMPLE_JS_FUNCTION( DeleteFolder, FileSystemJSBinding );
	REG_SIMPLE_JS_FUNCTION( SetFolderPermissions, FileSystemJSBinding );
	REG_SIMPLE_JS_FUNCTION( GetFileSize, FileSystemJSBinding );

	REG_SIMPLE_JS_FUNCTION( OpenFileForWrite, FileSystemJSBinding );
	REG_SIMPLE_JS_FUNCTION(WriteFile, FileSystemJSBinding);
	REG_SIMPLE_JS_VOIDFUNCTION(CloseFile, FileSystemJSBinding);
}
예제 #3
0
DesuraJSSettings::DesuraJSSettings() : DesuraJSBase<DesuraJSSettings>("settings", "native_binding_settings.js")
{
	REG_SIMPLE_JS_FUNCTION( getValue,	DesuraJSSettings );
	REG_SIMPLE_JS_FUNCTION( getCoreCount,		DesuraJSSettings );

	REG_SIMPLE_JS_FUNCTION( getLanguages, DesuraJSSettings );
	REG_SIMPLE_JS_FUNCTION( getSteamNames,	DesuraJSSettings );
	REG_SIMPLE_JS_FUNCTION( getThemes, DesuraJSSettings );

	REG_SIMPLE_JS_VOIDFUNCTION( setValue, DesuraJSSettings );

	REG_SIMPLE_JS_FUNCTION( getCurrentCIPItems, DesuraJSSettings );
	REG_SIMPLE_JS_FUNCTION( getAllCIPItems,	DesuraJSSettings );
	REG_SIMPLE_JS_FUNCTION( isValidCIPPath, DesuraJSSettings );
	REG_SIMPLE_JS_FUNCTION( browseCIPPath, DesuraJSSettings );

	REG_SIMPLE_JS_VOIDFUNCTION( updateCIPList,		DesuraJSSettings );
	REG_SIMPLE_JS_VOIDFUNCTION( saveCIPList, DesuraJSSettings );

	REG_SIMPLE_JS_FUNCTION( isValidLinkBinary, DesuraJSSettings );
	REG_SIMPLE_JS_FUNCTION( browseLinkBinary, DesuraJSSettings );
}
예제 #4
0
	ItemExtender() :  DesuraJSBase("item", "installer_binding_item_service.js")
	{
		REG_SIMPLE_JS_OBJ_FUNCTION( GetInstallPath, ItemExtender );
		REG_SIMPLE_JS_FUNCTION( GetSpecialPath, ItemExtender );
		REG_SIMPLE_JS_FUNCTION( GetWildcardPath, ItemExtender );
	}
예제 #5
0
ItemJSBinding::ItemJSBinding() : DesuraJSBase<ItemJSBinding>("item", "installer_binding_item.js")
{
	REG_SIMPLE_JS_FUNCTION( GetRealItem, ItemJSBinding );
}
예제 #6
0
DesuraJSBinding::DesuraJSBinding() : DesuraJSBase("app", "native_binding.js")
{
	REGISTER_JS_FUNCTION( getLocalString, DesuraJSBinding );
	REG_SIMPLE_JS_FUNCTION( getItemInfoFromId, DesuraJSBinding );
	REG_SIMPLE_JS_FUNCTION( getDevItems, DesuraJSBinding );
	REG_SIMPLE_JS_FUNCTION( getGames, DesuraJSBinding );
	REG_SIMPLE_JS_FUNCTION( getMods, DesuraJSBinding );
	REG_SIMPLE_JS_FUNCTION( getLinks, DesuraJSBinding );

	REG_SIMPLE_JS_FUNCTION( getFavorites, DesuraJSBinding );
	REG_SIMPLE_JS_FUNCTION( getRecent, DesuraJSBinding );
	REG_SIMPLE_JS_FUNCTION( getUploads, DesuraJSBinding );
	REG_SIMPLE_JS_FUNCTION( getNewItems, DesuraJSBinding );


	REG_SIMPLE_JS_FUNCTION( getThemeColor, DesuraJSBinding );
	REG_SIMPLE_JS_FUNCTION( getThemeImage, DesuraJSBinding );
	REG_SIMPLE_JS_FUNCTION( base64encode, DesuraJSBinding );

	REG_SIMPLE_JS_VOIDFUNCTION( setCacheValue, DesuraJSBinding );
	REG_SIMPLE_JS_FUNCTION( getCacheValue, DesuraJSBinding );

	REG_SIMPLE_JS_FUNCTION( getItemFromId, DesuraJSBinding );
	REG_SIMPLE_JS_FUNCTION( getTypeFromId, DesuraJSBinding );

	REG_SIMPLE_JS_FUNCTION( isOffline, DesuraJSBinding );
	REG_SIMPLE_JS_FUNCTION( getCVarValue, DesuraJSBinding );

	REG_SIMPLE_JS_FUNCTION( isValidIcon, DesuraJSBinding );

	REG_SIMPLE_JS_VOIDFUNCTION( updateCounts, DesuraJSBinding );
	REG_SIMPLE_JS_VOIDFUNCTION( forceUpdatePoll, DesuraJSBinding );

	REG_SIMPLE_JS_FUNCTION( isWindows, DesuraJSBinding );
	REG_SIMPLE_JS_FUNCTION( isLinux, DesuraJSBinding );
	REG_SIMPLE_JS_FUNCTION( is32Bit, DesuraJSBinding );
	REG_SIMPLE_JS_FUNCTION( is64Bit, DesuraJSBinding );


	REG_SIMPLE_JS_FUNCTION( addLink, DesuraJSBinding );
	REG_SIMPLE_JS_OBJ_VOIDFUNCTION( delLink, DesuraJSBinding );
	REG_SIMPLE_JS_OBJ_VOIDFUNCTION( updateLink, DesuraJSBinding );

	REG_SIMPLE_JS_VOIDFUNCTION( login, DesuraJSBinding );
	REG_SIMPLE_JS_VOIDFUNCTION( loginError, DesuraJSBinding );

	REG_SIMPLE_JS_VOIDFUNCTION( ping, DesuraJSBinding );

	REG_SIMPLE_JS_VOIDFUNCTION( loggedOut, DesuraJSBinding)
}