PageRenderTime 5ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 1ms

/gecko_api/include/nsIGlobalHistory.h

http://firefox-mac-pdf.googlecode.com/
C Header | 118 lines | 58 code | 28 blank | 32 comment | 0 complexity | 89b2c1842a4822ab472e3573e8775400 MD5 | raw file
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/docshell/base/nsIGlobalHistory.idl
  3. */
  4. #ifndef __gen_nsIGlobalHistory_h__
  5. #define __gen_nsIGlobalHistory_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. /* starting interface: nsIGlobalHistory */
  14. #define NS_IGLOBALHISTORY_IID_STR "9491c383-e3c4-11d2-bdbe-0050040a9b44"
  15. #define NS_IGLOBALHISTORY_IID \
  16. {0x9491c383, 0xe3c4, 0x11d2, \
  17. { 0xbd, 0xbe, 0x00, 0x50, 0x04, 0x0a, 0x9b, 0x44 }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE nsIGlobalHistory : public nsISupports {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGLOBALHISTORY_IID)
  21. /**
  22. * addPage
  23. * Add a page to the history
  24. *
  25. * @param aURL the url to the page
  26. */
  27. /* void addPage (in string aURL); */
  28. NS_SCRIPTABLE NS_IMETHOD AddPage(const char *aURL) = 0;
  29. /**
  30. * isVisited
  31. * Checks to see if the given page is in history
  32. *
  33. * @return true if a page has been passed into addPage().
  34. * @param aURL the url to the page
  35. */
  36. /* boolean isVisited (in string aURL); */
  37. NS_SCRIPTABLE NS_IMETHOD IsVisited(const char *aURL, PRBool *_retval) = 0;
  38. };
  39. NS_DEFINE_STATIC_IID_ACCESSOR(nsIGlobalHistory, NS_IGLOBALHISTORY_IID)
  40. /* Use this macro when declaring classes that implement this interface. */
  41. #define NS_DECL_NSIGLOBALHISTORY \
  42. NS_SCRIPTABLE NS_IMETHOD AddPage(const char *aURL); \
  43. NS_SCRIPTABLE NS_IMETHOD IsVisited(const char *aURL, PRBool *_retval);
  44. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  45. #define NS_FORWARD_NSIGLOBALHISTORY(_to) \
  46. NS_SCRIPTABLE NS_IMETHOD AddPage(const char *aURL) { return _to AddPage(aURL); } \
  47. NS_SCRIPTABLE NS_IMETHOD IsVisited(const char *aURL, PRBool *_retval) { return _to IsVisited(aURL, _retval); }
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  49. #define NS_FORWARD_SAFE_NSIGLOBALHISTORY(_to) \
  50. NS_SCRIPTABLE NS_IMETHOD AddPage(const char *aURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPage(aURL); } \
  51. NS_SCRIPTABLE NS_IMETHOD IsVisited(const char *aURL, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsVisited(aURL, _retval); }
  52. #if 0
  53. /* Use the code below as a template for the implementation class for this interface. */
  54. /* Header file */
  55. class nsGlobalHistory : public nsIGlobalHistory
  56. {
  57. public:
  58. NS_DECL_ISUPPORTS
  59. NS_DECL_NSIGLOBALHISTORY
  60. nsGlobalHistory();
  61. private:
  62. ~nsGlobalHistory();
  63. protected:
  64. /* additional members */
  65. };
  66. /* Implementation file */
  67. NS_IMPL_ISUPPORTS1(nsGlobalHistory, nsIGlobalHistory)
  68. nsGlobalHistory::nsGlobalHistory()
  69. {
  70. /* member initializers and constructor code */
  71. }
  72. nsGlobalHistory::~nsGlobalHistory()
  73. {
  74. /* destructor code */
  75. }
  76. /* void addPage (in string aURL); */
  77. NS_IMETHODIMP nsGlobalHistory::AddPage(const char *aURL)
  78. {
  79. return NS_ERROR_NOT_IMPLEMENTED;
  80. }
  81. /* boolean isVisited (in string aURL); */
  82. NS_IMETHODIMP nsGlobalHistory::IsVisited(const char *aURL, PRBool *_retval)
  83. {
  84. return NS_ERROR_NOT_IMPLEMENTED;
  85. }
  86. /* End of implementation class template. */
  87. #endif
  88. #define NS_GLOBALHISTORY_CONTRACTID \
  89. "@mozilla.org/browser/global-history;1"
  90. #endif /* __gen_nsIGlobalHistory_h__ */