1 module org.eclipse.swt.internal.mozilla.nsISHistory; 2 3 import java.lang.all; 4 5 import org.eclipse.swt.internal.mozilla.Common; 6 import org.eclipse.swt.internal.mozilla.nsID; 7 import org.eclipse.swt.internal.mozilla.nsISupports; 8 9 import org.eclipse.swt.internal.mozilla.nsIHistoryEntry; 10 import org.eclipse.swt.internal.mozilla.nsISHistoryListener; 11 import org.eclipse.swt.internal.mozilla.nsISimpleEnumerator; 12 13 const char[] NS_ISHISTORY_IID_STR = "7294fe9b-14d8-11d5-9882-00c04fa02f40"; 14 15 const nsIID NS_ISHISTORY_IID= 16 {0x7294fe9b, 0x14d8, 0x11d5, 17 [ 0x98, 0x82, 0x00, 0xc0, 0x4f, 0xa0, 0x2f, 0x40 ]}; 18 19 interface nsISHistory : nsISupports { 20 21 static const char[] IID_STR = NS_ISHISTORY_IID_STR; 22 static const nsIID IID = NS_ISHISTORY_IID; 23 24 extern(System): 25 nsresult GetCount(PRInt32 *aCount); 26 nsresult GetIndex(PRInt32 *aIndex); 27 nsresult GetMaxLength(PRInt32 *aMaxLength); 28 nsresult SetMaxLength(PRInt32 aMaxLength); 29 nsresult GetEntryAtIndex(PRInt32 index, PRBool modifyIndex, nsIHistoryEntry *_retval); 30 nsresult PurgeHistory(PRInt32 numEntries); 31 nsresult AddSHistoryListener(nsISHistoryListener aListener); 32 nsresult RemoveSHistoryListener(nsISHistoryListener aListener); 33 nsresult GetSHistoryEnumerator(nsISimpleEnumerator *aSHistoryEnumerator); 34 35 } 36