PageRenderTime 38ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIHistoryEntry.h

http://firefox-mac-pdf.googlecode.com/
C Header | 141 lines | 69 code | 31 blank | 41 comment | 0 complexity | ec67bb2cb4a57c7c162bb64ad97868b9 MD5 | raw file
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/docshell/shistory/public/nsIHistoryEntry.idl
  3. */
  4. #ifndef __gen_nsIHistoryEntry_h__
  5. #define __gen_nsIHistoryEntry_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. class nsIURI; /* forward declaration */
  14. /* starting interface: nsIHistoryEntry */
  15. #define NS_IHISTORYENTRY_IID_STR "a41661d4-1417-11d5-9882-00c04fa02f40"
  16. #define NS_IHISTORYENTRY_IID \
  17. {0xa41661d4, 0x1417, 0x11d5, \
  18. { 0x98, 0x82, 0x00, 0xc0, 0x4f, 0xa0, 0x2f, 0x40 }}
  19. class NS_NO_VTABLE NS_SCRIPTABLE nsIHistoryEntry : public nsISupports {
  20. public:
  21. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHISTORYENTRY_IID)
  22. /**
  23. * A readonly property that returns the URI
  24. * of the current entry. The object returned is
  25. * of type nsIURI
  26. */
  27. /* readonly attribute nsIURI URI; */
  28. NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI) = 0;
  29. /**
  30. * A readonly property that returns the title
  31. * of the current entry. The object returned
  32. * is a encoded string
  33. */
  34. /* readonly attribute wstring title; */
  35. NS_SCRIPTABLE NS_IMETHOD GetTitle(PRUnichar * *aTitle) = 0;
  36. /**
  37. * A readonly property that returns a boolean
  38. * flag which indicates if the entry was created as a
  39. * result of a subframe navigation. This flag will be
  40. * 'false' when a frameset page is visited for
  41. * the first time. This flag will be 'true' for all
  42. * history entries created as a result of a subframe
  43. * navigation.
  44. */
  45. /* readonly attribute boolean isSubFrame; */
  46. NS_SCRIPTABLE NS_IMETHOD GetIsSubFrame(PRBool *aIsSubFrame) = 0;
  47. };
  48. NS_DEFINE_STATIC_IID_ACCESSOR(nsIHistoryEntry, NS_IHISTORYENTRY_IID)
  49. /* Use this macro when declaring classes that implement this interface. */
  50. #define NS_DECL_NSIHISTORYENTRY \
  51. NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI); \
  52. NS_SCRIPTABLE NS_IMETHOD GetTitle(PRUnichar * *aTitle); \
  53. NS_SCRIPTABLE NS_IMETHOD GetIsSubFrame(PRBool *aIsSubFrame);
  54. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  55. #define NS_FORWARD_NSIHISTORYENTRY(_to) \
  56. NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI) { return _to GetURI(aURI); } \
  57. NS_SCRIPTABLE NS_IMETHOD GetTitle(PRUnichar * *aTitle) { return _to GetTitle(aTitle); } \
  58. NS_SCRIPTABLE NS_IMETHOD GetIsSubFrame(PRBool *aIsSubFrame) { return _to GetIsSubFrame(aIsSubFrame); }
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  60. #define NS_FORWARD_SAFE_NSIHISTORYENTRY(_to) \
  61. NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
  62. NS_SCRIPTABLE NS_IMETHOD GetTitle(PRUnichar * *aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
  63. NS_SCRIPTABLE NS_IMETHOD GetIsSubFrame(PRBool *aIsSubFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSubFrame(aIsSubFrame); }
  64. #if 0
  65. /* Use the code below as a template for the implementation class for this interface. */
  66. /* Header file */
  67. class nsHistoryEntry : public nsIHistoryEntry
  68. {
  69. public:
  70. NS_DECL_ISUPPORTS
  71. NS_DECL_NSIHISTORYENTRY
  72. nsHistoryEntry();
  73. private:
  74. ~nsHistoryEntry();
  75. protected:
  76. /* additional members */
  77. };
  78. /* Implementation file */
  79. NS_IMPL_ISUPPORTS1(nsHistoryEntry, nsIHistoryEntry)
  80. nsHistoryEntry::nsHistoryEntry()
  81. {
  82. /* member initializers and constructor code */
  83. }
  84. nsHistoryEntry::~nsHistoryEntry()
  85. {
  86. /* destructor code */
  87. }
  88. /* readonly attribute nsIURI URI; */
  89. NS_IMETHODIMP nsHistoryEntry::GetURI(nsIURI * *aURI)
  90. {
  91. return NS_ERROR_NOT_IMPLEMENTED;
  92. }
  93. /* readonly attribute wstring title; */
  94. NS_IMETHODIMP nsHistoryEntry::GetTitle(PRUnichar * *aTitle)
  95. {
  96. return NS_ERROR_NOT_IMPLEMENTED;
  97. }
  98. /* readonly attribute boolean isSubFrame; */
  99. NS_IMETHODIMP nsHistoryEntry::GetIsSubFrame(PRBool *aIsSubFrame)
  100. {
  101. return NS_ERROR_NOT_IMPLEMENTED;
  102. }
  103. /* End of implementation class template. */
  104. #endif
  105. // {A41661D5-1417-11D5-9882-00C04FA02F40}
  106. #define NS_HISTORYENTRY_CID \
  107. {0xa41661d5, 0x1417, 0x11d5, {0x98, 0x82, 0x0, 0xc0, 0x4f, 0xa0, 0x2f, 0x40}}
  108. #define NS_HISTORYENTRY_CONTRACTID \
  109. "@mozilla.org/browser/history-entry;1"
  110. #endif /* __gen_nsIHistoryEntry_h__ */