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/xpfe/components/shistory/public/nsIHistoryEntr
y.idl |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIHistoryEntry_h__ |
| 6 #define __gen_nsIHistoryEntry_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 class nsIURI; /* forward declaration */ |
| 18 |
| 19 |
| 20 /* starting interface: nsIHistoryEntry */ |
| 21 #define NS_IHISTORYENTRY_IID_STR "a41661d4-1417-11d5-9882-00c04fa02f40" |
| 22 |
| 23 #define NS_IHISTORYENTRY_IID \ |
| 24 {0xa41661d4, 0x1417, 0x11d5, \ |
| 25 { 0x98, 0x82, 0x00, 0xc0, 0x4f, 0xa0, 0x2f, 0x40 }} |
| 26 |
| 27 class NS_NO_VTABLE nsIHistoryEntry : public nsISupports { |
| 28 public: |
| 29 |
| 30 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IHISTORYENTRY_IID) |
| 31 |
| 32 /** |
| 33 * A readonly property that returns the URI |
| 34 * of the current entry. The object returned is |
| 35 * of type nsIURI |
| 36 */ |
| 37 /* readonly attribute nsIURI URI; */ |
| 38 NS_IMETHOD GetURI(nsIURI * *aURI) = 0; |
| 39 |
| 40 /** |
| 41 * A readonly property that returns the title |
| 42 * of the current entry. The object returned |
| 43 * is a encoded string |
| 44 */ |
| 45 /* readonly attribute wstring title; */ |
| 46 NS_IMETHOD GetTitle(PRUnichar * *aTitle) = 0; |
| 47 |
| 48 /** |
| 49 * A readonly property that returns a boolean |
| 50 * flag which indicates if the entry was created as a |
| 51 * result of a subframe navigation. This flag will be |
| 52 * 'false' when a frameset page is visited for |
| 53 * the first time. This flag will be 'true' for all |
| 54 * history entries created as a result of a subframe |
| 55 * navigation. |
| 56 */ |
| 57 /* readonly attribute boolean isSubFrame; */ |
| 58 NS_IMETHOD GetIsSubFrame(PRBool *aIsSubFrame) = 0; |
| 59 |
| 60 }; |
| 61 |
| 62 /* Use this macro when declaring classes that implement this interface. */ |
| 63 #define NS_DECL_NSIHISTORYENTRY \ |
| 64 NS_IMETHOD GetURI(nsIURI * *aURI); \ |
| 65 NS_IMETHOD GetTitle(PRUnichar * *aTitle); \ |
| 66 NS_IMETHOD GetIsSubFrame(PRBool *aIsSubFrame); |
| 67 |
| 68 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 69 #define NS_FORWARD_NSIHISTORYENTRY(_to) \ |
| 70 NS_IMETHOD GetURI(nsIURI * *aURI) { return _to GetURI(aURI); } \ |
| 71 NS_IMETHOD GetTitle(PRUnichar * *aTitle) { return _to GetTitle(aTitle); } \ |
| 72 NS_IMETHOD GetIsSubFrame(PRBool *aIsSubFrame) { return _to GetIsSubFrame(aIsSu
bFrame); } |
| 73 |
| 74 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 75 #define NS_FORWARD_SAFE_NSIHISTORYENTRY(_to) \ |
| 76 NS_IMETHOD GetURI(nsIURI * *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to-
>GetURI(aURI); } \ |
| 77 NS_IMETHOD GetTitle(PRUnichar * *aTitle) { return !_to ? NS_ERROR_NULL_POINTER
: _to->GetTitle(aTitle); } \ |
| 78 NS_IMETHOD GetIsSubFrame(PRBool *aIsSubFrame) { return !_to ? NS_ERROR_NULL_PO
INTER : _to->GetIsSubFrame(aIsSubFrame); } |
| 79 |
| 80 #if 0 |
| 81 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 82 |
| 83 /* Header file */ |
| 84 class nsHistoryEntry : public nsIHistoryEntry |
| 85 { |
| 86 public: |
| 87 NS_DECL_ISUPPORTS |
| 88 NS_DECL_NSIHISTORYENTRY |
| 89 |
| 90 nsHistoryEntry(); |
| 91 |
| 92 private: |
| 93 ~nsHistoryEntry(); |
| 94 |
| 95 protected: |
| 96 /* additional members */ |
| 97 }; |
| 98 |
| 99 /* Implementation file */ |
| 100 NS_IMPL_ISUPPORTS1(nsHistoryEntry, nsIHistoryEntry) |
| 101 |
| 102 nsHistoryEntry::nsHistoryEntry() |
| 103 { |
| 104 /* member initializers and constructor code */ |
| 105 } |
| 106 |
| 107 nsHistoryEntry::~nsHistoryEntry() |
| 108 { |
| 109 /* destructor code */ |
| 110 } |
| 111 |
| 112 /* readonly attribute nsIURI URI; */ |
| 113 NS_IMETHODIMP nsHistoryEntry::GetURI(nsIURI * *aURI) |
| 114 { |
| 115 return NS_ERROR_NOT_IMPLEMENTED; |
| 116 } |
| 117 |
| 118 /* readonly attribute wstring title; */ |
| 119 NS_IMETHODIMP nsHistoryEntry::GetTitle(PRUnichar * *aTitle) |
| 120 { |
| 121 return NS_ERROR_NOT_IMPLEMENTED; |
| 122 } |
| 123 |
| 124 /* readonly attribute boolean isSubFrame; */ |
| 125 NS_IMETHODIMP nsHistoryEntry::GetIsSubFrame(PRBool *aIsSubFrame) |
| 126 { |
| 127 return NS_ERROR_NOT_IMPLEMENTED; |
| 128 } |
| 129 |
| 130 /* End of implementation class template. */ |
| 131 #endif |
| 132 |
| 133 // {A41661D5-1417-11D5-9882-00C04FA02F40} |
| 134 #define NS_HISTORYENTRY_CID \ |
| 135 {0xa41661d5, 0x1417, 0x11d5, {0x98, 0x82, 0x0, 0xc0, 0x4f, 0xa0, 0x2f, 0x40}} |
| 136 #define NS_HISTORYENTRY_CONTRACTID \ |
| 137 "@mozilla.org/browser/history-entry;1" |
| 138 |
| 139 #endif /* __gen_nsIHistoryEntry_h__ */ |
OLD | NEW |