Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

classinfo.h

00001 #include "nsIClassInfo.h"
00002 
00003 // helper class to implement all necessary nsIClassInfo method stubs
00004 // and to set flags used by the security system
00005 class  ClassInfo : public nsIClassInfo
00006 {
00007   // These flags are used by the DOM and security systems to signal that 
00008   // JavaScript callers are allowed to call this object's scritable methods.
00009   NS_IMETHOD GetFlags(PRUint32 *aFlags)
00010     {*aFlags = nsIClassInfo::PLUGIN_OBJECT | nsIClassInfo::DOM_OBJECT;
00011      return NS_OK;}
00012   NS_IMETHOD GetImplementationLanguage(PRUint32 *aImplementationLanguage)
00013     {*aImplementationLanguage = nsIProgrammingLanguage::CPLUSPLUS;
00014      return NS_OK;}
00015 
00016   // The rest of the methods can safely return error codes...
00017   NS_IMETHOD GetInterfaces(PRUint32 *count, nsIID * **array)
00018     {return NS_ERROR_NOT_IMPLEMENTED;}
00019   NS_IMETHOD GetHelperForLanguage(PRUint32 language, nsISupports **_retval)
00020     {return NS_ERROR_NOT_IMPLEMENTED;}
00021   NS_IMETHOD GetContractID(char * *aContractID)
00022     {return NS_ERROR_NOT_IMPLEMENTED;}
00023   NS_IMETHOD GetClassDescription(char * *aClassDescription)
00024     {return NS_ERROR_NOT_IMPLEMENTED;}
00025   NS_IMETHOD GetClassID(nsCID * *aClassID)
00026     {return NS_ERROR_NOT_IMPLEMENTED;}
00027   NS_IMETHOD GetClassIDNoAlloc(nsCID *aClassIDNoAlloc)
00028     {return NS_ERROR_NOT_IMPLEMENTED;}
00029 };
00030 

Generated on Tue Dec 20 10:14:59 2005 for vlc-0.8.4a by  doxygen 1.4.2