PageRenderTime 37ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIProgrammingLanguage.h

http://firefox-mac-pdf.googlecode.com/
C Header | 113 lines | 55 code | 36 blank | 22 comment | 0 complexity | 566e2ca7af7fb6a627adea85a458d7a9 MD5 | raw file
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/xpcom/base/nsIProgrammingLanguage.idl
  3. */
  4. #ifndef __gen_nsIProgrammingLanguage_h__
  5. #define __gen_nsIProgrammingLanguage_h__
  6. #ifndef __gen_nsISupports_h__
  7. #include "nsISupports.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. #ifdef XP_OS2 // OS2 has UNKNOWN problems :)
  14. #undef UNKNOWN
  15. #endif
  16. /* starting interface: nsIProgrammingLanguage */
  17. #define NS_IPROGRAMMINGLANGUAGE_IID_STR "ea604e90-40ba-11d5-90bb-0010a4e73d9a"
  18. #define NS_IPROGRAMMINGLANGUAGE_IID \
  19. {0xea604e90, 0x40ba, 0x11d5, \
  20. { 0x90, 0xbb, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}
  21. /**
  22. * Enumeration of Programming Languages
  23. * @status FROZEN
  24. */
  25. class NS_NO_VTABLE NS_SCRIPTABLE nsIProgrammingLanguage : public nsISupports {
  26. public:
  27. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROGRAMMINGLANGUAGE_IID)
  28. /**
  29. * Identifiers for programming languages.
  30. */
  31. enum { UNKNOWN = 0U };
  32. enum { CPLUSPLUS = 1U };
  33. enum { JAVASCRIPT = 2U };
  34. enum { PYTHON = 3U };
  35. enum { PERL = 4U };
  36. enum { JAVA = 5U };
  37. enum { ZX81_BASIC = 6U };
  38. enum { JAVASCRIPT2 = 7U };
  39. enum { RUBY = 8U };
  40. enum { PHP = 9U };
  41. enum { TCL = 10U };
  42. enum { MAX = 10U };
  43. };
  44. NS_DEFINE_STATIC_IID_ACCESSOR(nsIProgrammingLanguage, NS_IPROGRAMMINGLANGUAGE_IID)
  45. /* Use this macro when declaring classes that implement this interface. */
  46. #define NS_DECL_NSIPROGRAMMINGLANGUAGE \
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  48. #define NS_FORWARD_NSIPROGRAMMINGLANGUAGE(_to) \
  49. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  50. #define NS_FORWARD_SAFE_NSIPROGRAMMINGLANGUAGE(_to) \
  51. #if 0
  52. /* Use the code below as a template for the implementation class for this interface. */
  53. /* Header file */
  54. class nsProgrammingLanguage : public nsIProgrammingLanguage
  55. {
  56. public:
  57. NS_DECL_ISUPPORTS
  58. NS_DECL_NSIPROGRAMMINGLANGUAGE
  59. nsProgrammingLanguage();
  60. private:
  61. ~nsProgrammingLanguage();
  62. protected:
  63. /* additional members */
  64. };
  65. /* Implementation file */
  66. NS_IMPL_ISUPPORTS1(nsProgrammingLanguage, nsIProgrammingLanguage)
  67. nsProgrammingLanguage::nsProgrammingLanguage()
  68. {
  69. /* member initializers and constructor code */
  70. }
  71. nsProgrammingLanguage::~nsProgrammingLanguage()
  72. {
  73. /* destructor code */
  74. }
  75. /* End of implementation class template. */
  76. #endif
  77. #endif /* __gen_nsIProgrammingLanguage_h__ */