1 module org.eclipse.swt.internal.mozilla.nsIIOService;
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.nsIProtocolHandler;
9 import org.eclipse.swt.internal.mozilla.nsIChannel; 
10 import org.eclipse.swt.internal.mozilla.nsIURI; 
11 import org.eclipse.swt.internal.mozilla.nsIFile; 
12 import org.eclipse.swt.internal.mozilla.nsStringAPI;
13 
14 const char[] NS_IIOSERVICE_IID_STR = "bddeda3f-9020-4d12-8c70-984ee9f7935e";
15 
16 const nsIID NS_IIOSERVICE_IID= 
17   {0xbddeda3f, 0x9020, 0x4d12, 
18     [ 0x8c, 0x70, 0x98, 0x4e, 0xe9, 0xf7, 0x93, 0x5e ]};
19 
20 interface nsIIOService : nsISupports {
21 
22   static const char[] IID_STR = NS_IIOSERVICE_IID_STR;
23   static const nsIID IID = NS_IIOSERVICE_IID;
24 
25 extern(System):
26   nsresult GetProtocolHandler(char *aScheme, nsIProtocolHandler *_retval);
27   nsresult GetProtocolFlags(char *aScheme, PRUint32 *_retval);
28   nsresult NewURI(nsACString * aSpec, char *aOriginCharset, nsIURI aBaseURI, nsIURI *_retval);
29   nsresult NewFileURI(nsIFile aFile, nsIURI *_retval);
30   nsresult NewChannelFromURI(nsIURI aURI, nsIChannel *_retval);
31   nsresult NewChannel(nsACString * aSpec, char *aOriginCharset, nsIURI aBaseURI, nsIChannel *_retval);
32   nsresult GetOffline(PRBool *aOffline);
33   nsresult SetOffline(PRBool aOffline);
34   nsresult AllowPort(PRInt32 aPort, char *aScheme, PRBool *_retval);
35   nsresult ExtractScheme(nsACString * urlString, nsACString * _retval);
36 
37 }
38