classinfo.h
资源名称:vlc-1.0.5.zip [点击查看]
上传用户:kjfoods
上传日期:2020-07-06
资源大小:29949k
文件大小:1k
源码类别:
midi
开发平台:
Unix_Linux
- #include "nsIClassInfo.h"
- // helper class to implement all necessary nsIClassInfo method stubs
- // and to set flags used by the security system
- class ClassInfo : public nsIClassInfo
- {
- // These flags are used by the DOM and security systems to signal that
- // JavaScript callers are allowed to call this object's scritable methods.
- NS_IMETHOD GetFlags(PRUint32 *aFlags)
- {*aFlags = nsIClassInfo::PLUGIN_OBJECT | nsIClassInfo::DOM_OBJECT;
- return NS_OK;}
- NS_IMETHOD GetImplementationLanguage(PRUint32 *aImplementationLanguage)
- {*aImplementationLanguage = nsIProgrammingLanguage::CPLUSPLUS;
- return NS_OK;}
- // The rest of the methods can safely return error codes...
- NS_IMETHOD GetInterfaces(PRUint32 *count, nsIID * **array)
- {return NS_ERROR_NOT_IMPLEMENTED;}
- NS_IMETHOD GetHelperForLanguage(PRUint32 language, nsISupports **_retval)
- {return NS_ERROR_NOT_IMPLEMENTED;}
- NS_IMETHOD GetContractID(char * *aContractID)
- {return NS_ERROR_NOT_IMPLEMENTED;}
- NS_IMETHOD GetClassDescription(char * *aClassDescription)
- {return NS_ERROR_NOT_IMPLEMENTED;}
- NS_IMETHOD GetClassID(nsCID * *aClassID)
- {return NS_ERROR_NOT_IMPLEMENTED;}
- NS_IMETHOD GetClassIDNoAlloc(nsCID *aClassIDNoAlloc)
- {return NS_ERROR_NOT_IMPLEMENTED;}
- };