1 module org.eclipse.swt.internal.mozilla.nsIURI; 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 import org.eclipse.swt.internal.mozilla.nsStringAPI; 9 10 const char[] NS_IURI_IID_STR = "07a22cc0-0ce5-11d3-9331-00104ba0fd40"; 11 12 const nsIID NS_IURI_IID= 13 {0x07a22cc0, 0x0ce5, 0x11d3, 14 [ 0x93, 0x31, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40 ]}; 15 16 interface nsIURI : nsISupports { 17 18 static const char[] IID_STR = NS_IURI_IID_STR; 19 static const nsIID IID = NS_IURI_IID; 20 21 extern(System): 22 nsresult GetSpec(nsACString * aSpec); 23 nsresult SetSpec(nsACString * aSpec); 24 nsresult GetPrePath(nsACString * aPrePath); 25 nsresult GetScheme(nsACString * aScheme); 26 nsresult SetScheme(nsACString * aScheme); 27 nsresult GetUserPass(nsACString * aUserPass); 28 nsresult SetUserPass(nsACString * aUserPass); 29 nsresult GetUsername(nsACString * aUsername); 30 nsresult SetUsername(nsACString * aUsername); 31 nsresult GetPassword(nsACString * aPassword); 32 nsresult SetPassword(nsACString * aPassword); 33 nsresult GetHostPort(nsACString * aHostPort); 34 nsresult SetHostPort(nsACString * aHostPort); 35 nsresult GetHost(nsACString * aHost); 36 nsresult SetHost(nsACString * aHost); 37 nsresult GetPort(PRInt32 *aPort); 38 nsresult SetPort(PRInt32 aPort); 39 nsresult GetPath(nsACString * aPath); 40 nsresult SetPath(nsACString * aPath); 41 nsresult Equals(nsIURI other, PRBool *_retval); 42 nsresult SchemeIs(char *scheme, PRBool *_retval); 43 nsresult Clone(nsIURI *_retval); 44 nsresult Resolve(nsACString * relativePath, nsACString * _retval); 45 nsresult GetAsciiSpec(nsACString * aAsciiSpec); 46 nsresult GetAsciiHost(nsACString * aAsciiHost); 47 nsresult GetOriginCharset(nsACString * aOriginCharset); 48 49 } 50