OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0
-Release/WINNT_5.2_Depend/mozilla/docshell/base/nsIGlobalHistory.idl |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIGlobalHistory_h__ |
| 6 #define __gen_nsIGlobalHistory_h__ |
| 7 |
| 8 |
| 9 #ifndef __gen_nsISupports_h__ |
| 10 #include "nsISupports.h" |
| 11 #endif |
| 12 |
| 13 /* For IDL files that don't want to include root IDL files. */ |
| 14 #ifndef NS_NO_VTABLE |
| 15 #define NS_NO_VTABLE |
| 16 #endif |
| 17 |
| 18 /* starting interface: nsIGlobalHistory */ |
| 19 #define NS_IGLOBALHISTORY_IID_STR "9491c383-e3c4-11d2-bdbe-0050040a9b44" |
| 20 |
| 21 #define NS_IGLOBALHISTORY_IID \ |
| 22 {0x9491c383, 0xe3c4, 0x11d2, \ |
| 23 { 0xbd, 0xbe, 0x00, 0x50, 0x04, 0x0a, 0x9b, 0x44 }} |
| 24 |
| 25 class NS_NO_VTABLE nsIGlobalHistory : public nsISupports { |
| 26 public: |
| 27 |
| 28 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IGLOBALHISTORY_IID) |
| 29 |
| 30 /** |
| 31 * addPage |
| 32 * Add a page to the history |
| 33 * |
| 34 * @param aURL the url to the page |
| 35 */ |
| 36 /* void addPage (in string aURL); */ |
| 37 NS_IMETHOD AddPage(const char *aURL) = 0; |
| 38 |
| 39 /** |
| 40 * isVisited |
| 41 * Checks to see if the given page is in history |
| 42 * |
| 43 * @return true if a page has been passed into addPage(). |
| 44 * @param aURL the url to the page |
| 45 */ |
| 46 /* boolean isVisited (in string aURL); */ |
| 47 NS_IMETHOD IsVisited(const char *aURL, PRBool *_retval) = 0; |
| 48 |
| 49 }; |
| 50 |
| 51 /* Use this macro when declaring classes that implement this interface. */ |
| 52 #define NS_DECL_NSIGLOBALHISTORY \ |
| 53 NS_IMETHOD AddPage(const char *aURL); \ |
| 54 NS_IMETHOD IsVisited(const char *aURL, PRBool *_retval); |
| 55 |
| 56 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 57 #define NS_FORWARD_NSIGLOBALHISTORY(_to) \ |
| 58 NS_IMETHOD AddPage(const char *aURL) { return _to AddPage(aURL); } \ |
| 59 NS_IMETHOD IsVisited(const char *aURL, PRBool *_retval) { return _to IsVisited
(aURL, _retval); } |
| 60 |
| 61 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 62 #define NS_FORWARD_SAFE_NSIGLOBALHISTORY(_to) \ |
| 63 NS_IMETHOD AddPage(const char *aURL) { return !_to ? NS_ERROR_NULL_POINTER : _
to->AddPage(aURL); } \ |
| 64 NS_IMETHOD IsVisited(const char *aURL, PRBool *_retval) { return !_to ? NS_ERR
OR_NULL_POINTER : _to->IsVisited(aURL, _retval); } |
| 65 |
| 66 #if 0 |
| 67 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 68 |
| 69 /* Header file */ |
| 70 class nsGlobalHistory : public nsIGlobalHistory |
| 71 { |
| 72 public: |
| 73 NS_DECL_ISUPPORTS |
| 74 NS_DECL_NSIGLOBALHISTORY |
| 75 |
| 76 nsGlobalHistory(); |
| 77 |
| 78 private: |
| 79 ~nsGlobalHistory(); |
| 80 |
| 81 protected: |
| 82 /* additional members */ |
| 83 }; |
| 84 |
| 85 /* Implementation file */ |
| 86 NS_IMPL_ISUPPORTS1(nsGlobalHistory, nsIGlobalHistory) |
| 87 |
| 88 nsGlobalHistory::nsGlobalHistory() |
| 89 { |
| 90 /* member initializers and constructor code */ |
| 91 } |
| 92 |
| 93 nsGlobalHistory::~nsGlobalHistory() |
| 94 { |
| 95 /* destructor code */ |
| 96 } |
| 97 |
| 98 /* void addPage (in string aURL); */ |
| 99 NS_IMETHODIMP nsGlobalHistory::AddPage(const char *aURL) |
| 100 { |
| 101 return NS_ERROR_NOT_IMPLEMENTED; |
| 102 } |
| 103 |
| 104 /* boolean isVisited (in string aURL); */ |
| 105 NS_IMETHODIMP nsGlobalHistory::IsVisited(const char *aURL, PRBool *_retval) |
| 106 { |
| 107 return NS_ERROR_NOT_IMPLEMENTED; |
| 108 } |
| 109 |
| 110 /* End of implementation class template. */ |
| 111 #endif |
| 112 |
| 113 #define NS_GLOBALHISTORY_CONTRACTID \ |
| 114 "@mozilla.org/browser/global-history;1" |
| 115 |
| 116 #endif /* __gen_nsIGlobalHistory_h__ */ |
OLD | NEW |