Ejemplo n.º 1
0
long LuaWin32Shell::RegisterObject( XL_LRT_ENV_HANDLE hEnv )
{
	assert(hEnv);
	if(hEnv == NULL)
	{
		return XLLRT_RESULT_ENV_INVALID;
	}

	XLLRTObject theObject;
	theObject.ClassName = XLUE_OSSHELL_CLASSNAME;
	theObject.MemberFunctions = LuaOSShellMemberFunctions;
	theObject.ObjName = XLUE_OSSHELL_OBJNAME;
	theObject.userData = NULL;
	theObject.pfnGetObject = LuaWin32Shell::GetObject;

	long lRet = XLLRT_RegisterGlobalObj(hEnv,theObject); 
	assert(lRet == XLLRT_RESULT_SUCCESS);
	if (lRet != XLLRT_RESULT_SUCCESS)
	{
		return lRet;
	}
	assert(lRet == XLLRT_RESULT_SUCCESS);

	return lRet;
}
Ejemplo n.º 2
0
void LuaListenPreFactory::RegisterObj(XL_LRT_ENV_HANDLE hEnv)
{
	if(hEnv == NULL)
		return ;

	XLLRTObject theObject;
	theObject.ClassName = GSL_FACTORY_LUA_CLASS;
	theObject.MemberFunctions = LuaXLYYPreFactoryMemberFunctions;
	theObject.ObjName = GSL_FACTORY_LUA_OBJ;
	theObject.userData = NULL;
	theObject.pfnGetObject = (fnGetObject)LuaListenPreFactory::Instance;

	XLLRT_RegisterGlobalObj(hEnv,theObject); 
}
void CLuaThumbnailLoaderFactory::RegisterObj(XL_LRT_ENV_HANDLE hEnv)
{
	if(hEnv == NULL)
		return ;

	XLLRTObject theObject;
	theObject.ClassName = THUMBNAILSLOADERFACTORY_LUA_CLASS;
	theObject.MemberFunctions = LuaThumbnailsLoaderFactoryMemberFunctions;
	theObject.ObjName = THUMBNAILSLOADERFACTORY_LUA_OBJ;
	theObject.userData = NULL;
	theObject.pfnGetObject = (fnGetObject)CLuaThumbnailLoaderFactory::Instance;

	XLLRT_RegisterGlobalObj(hEnv,theObject);
	CLuaThumbnailLoader::RegisterClass(hEnv);
}
Ejemplo n.º 4
0
void LuaAsynUtil::RegisterSelf( XL_LRT_ENV_HANDLE hEnv )
{
	if (hEnv == NULL)
	{
		return;
	}

	XLLRTObject theObject;
	theObject.ClassName = XMPTIPWND_ASYNCUTIL_CLASS;
	theObject.MemberFunctions = s_functionlist;
	theObject.ObjName = XMPTIPWND_ASYNCUTIL_OBJ;
	theObject.userData = NULL;
	theObject.pfnGetObject = (fnGetObject)LuaAsynUtil::GetInstance;

	XLLRT_RegisterGlobalObj(hEnv,theObject);
}
Ejemplo n.º 5
0
void LuaOSShell::RegisterObj(XL_LRT_ENV_HANDLE hEnv)
{
	if(hEnv == NULL)
	{
		return ;
	}

	XLLRTObject theObject;
	theObject.ClassName = LUAOSSHELL_CLASS;
	theObject.MemberFunctions = LuaOSShellMemberFunctions;
	theObject.ObjName = LUAOSSHELL_OBJ;
	theObject.userData = NULL;
	theObject.pfnGetObject = (fnGetObject)LuaOSShell::GetObject;

	XLLRT_RegisterGlobalObj(hEnv,theObject); 
}
Ejemplo n.º 6
0
long LuaStickerCore::RegisterObject( XL_LRT_ENV_HANDLE hEnv )
{
	if (hEnv == NULL)
	{
		return XLLRT_RESULT_ENV_INVALID;
	}

	XLLRTObject obj;
	obj.ClassName = XLUE_LUASTICKERCORE_CLASSNAME;
	obj.ObjName = XLUE_LUASTICKERCORE_OBJNAME;
	obj.MemberFunctions = LuaStickerCoreFuncs;
	obj.userData = NULL;
	obj.pfnGetObject = LuaStickerCore::GetObject;

	long lRet = XLLRT_RegisterGlobalObj(hEnv, obj);
	return lRet;
}
Ejemplo n.º 7
0
void LuaDirFactory::RegisterObj(XL_LRT_ENV_HANDLE hEnv)
{
    if(hEnv == NULL)
	{
        return ;
	}

    XLLRTObject factoryObject;
	factoryObject.ClassName = "LuaDir.Factory.";
    factoryObject.MemberFunctions = s_LuaDirFactoryMemberFunctions;
	factoryObject.ObjName = "LuaDir.Factory.Object";

    factoryObject.userData = NULL;
    factoryObject.pfnGetObject = (fnGetObject)LuaDirFactory::Instance;

    XLLRT_RegisterGlobalObj(hEnv, factoryObject); 
}
Ejemplo n.º 8
0
void LogObjectFactory::RegisterObj(XL_LRT_ENV_HANDLE hEnv)
{
    if(hEnv == NULL)
	{
        return ;
	}

    XLLRTObject factoryObject;
	factoryObject.ClassName ="LogObjectFactory";
    factoryObject.MemberFunctions = mLogObjectFactoryMemberFunctions;
	factoryObject.ObjName =LOG_CLASS_LUA_FACTORY;

    factoryObject.userData = NULL;
    factoryObject.pfnGetObject = (fnGetObject)LogObjectFactory::Instance;

    XLLRT_RegisterGlobalObj(hEnv,factoryObject); 
}
Ejemplo n.º 9
0
void LuaDataObjectHelper::RegisterSelf( XL_LRT_ENV_HANDLE hEnv )
{
    assert(hEnv);
    if(hEnv == NULL)
    {
        return ;
    }

    XLLRTObject theObject;
    theObject.ClassName = DATAOBJECT_HELPER_LUA_CLASS;
    theObject.MemberFunctions = LuaDatObjectHelperMemberFunctions;
    theObject.ObjName = DATAOBJECT_HELPER_LUA_OBJ;
    theObject.userData = NULL;
    theObject.pfnGetObject = (fnGetObject)LuaDataObjectHelper::GetInstance;

    long result = XLLRT_RegisterGlobalObj(hEnv,theObject); 
    assert(!result);
}
Ejemplo n.º 10
0
void LuaBoltFoxApp::RegisterSelf( XL_LRT_ENV_HANDLE hEnv )
{
	assert(hEnv);
	if(hEnv == NULL)
	{
		return ;
	}

	XLLRTObject theObject;
	theObject.ClassName = BOLTFOX_APP_LUA_CLASS;
	theObject.MemberFunctions = LuaWizardAppMemberFunctions;
	theObject.ObjName = BOLTFOX_APP_LUA_OBJ;
	theObject.userData = NULL;
	theObject.pfnGetObject = (fnGetObject)LuaBoltFoxApp::GetInstance;

	long result = XLLRT_RegisterGlobalObj(hEnv,theObject); 
	assert(!result);
}
Ejemplo n.º 11
0
void LuaSkinManager::RegisterSelf( XL_LRT_ENV_HANDLE hEnv )
{
    assert(hEnv);
    if(hEnv == NULL)
    {
        return ;
    }

    XLLRTObject theObject;
    theObject.ClassName = WIZARD_SKINMANAGER_LUA_CLASS;
    theObject.MemberFunctions = LuaWizardSkinManagerMemberFunctions;
    theObject.ObjName = WIZARD_SKINMANAGER_LUA_OBJ;
    theObject.userData = NULL;
    theObject.pfnGetObject = (fnGetObject)LuaSkinManager::GetInstance;

    long result = XLLRT_RegisterGlobalObj(hEnv,theObject); 
    assert(!result);
}