1 module org.eclipse.swt.internal.mozilla.nsIDirectoryService; 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.nsISimpleEnumerator; 8 import org.eclipse.swt.internal.mozilla.nsISupports; 9 import org.eclipse.swt.internal.mozilla.nsIFile; 10 11 /****************************************************************************** 12 13 ******************************************************************************/ 14 15 const char[] NS_IDIRECTORYSERVICEPROVIDER_IID_STR = "bbf8cab0-d43a-11d3-8cc2-00609792278c"; 16 17 const nsIID NS_IDIRECTORYSERVICEPROVIDER_IID= 18 {0xbbf8cab0, 0xd43a, 0x11d3, 19 [ 0x8c, 0xc2, 0x00, 0x60, 0x97, 0x92, 0x27, 0x8c ]}; 20 21 interface nsIDirectoryServiceProvider : nsISupports { 22 23 static const char[] IID_STR = NS_IDIRECTORYSERVICEPROVIDER_IID_STR; 24 static const nsIID IID = NS_IDIRECTORYSERVICEPROVIDER_IID; 25 26 extern(System): 27 nsresult GetFile(char *prop, PRBool *persistent, nsIFile *_retval); 28 29 } 30 31 /****************************************************************************** 32 33 ******************************************************************************/ 34 35 const char[] NS_IDIRECTORYSERVICEPROVIDER2_IID_STR = "2f977d4b-5485-11d4-87e2-0010a4e75ef2"; 36 37 const nsIID NS_IDIRECTORYSERVICEPROVIDER2_IID= 38 {0x2f977d4b, 0x5485, 0x11d4, 39 [ 0x87, 0xe2, 0x00, 0x10, 0xa4, 0xe7, 0x5e, 0xf2 ]}; 40 41 interface nsIDirectoryServiceProvider2 : nsIDirectoryServiceProvider { 42 43 static const char[] IID_STR = NS_IDIRECTORYSERVICEPROVIDER2_IID_STR; 44 static const nsIID IID = NS_IDIRECTORYSERVICEPROVIDER2_IID; 45 46 extern(System): 47 nsresult GetFiles(char *prop, nsISimpleEnumerator *_retval); 48 49 } 50 51 /****************************************************************************** 52 53 ******************************************************************************/ 54 55 const char[] NS_IDIRECTORYSERVICE_IID_STR = "57a66a60-d43a-11d3-8cc2-00609792278c"; 56 57 const nsIID NS_IDIRECTORYSERVICE_IID= 58 {0x57a66a60, 0xd43a, 0x11d3, 59 [ 0x8c, 0xc2, 0x00, 0x60, 0x97, 0x92, 0x27, 0x8c ]}; 60 61 interface nsIDirectoryService : nsISupports { 62 63 static const char[] IID_STR = NS_IDIRECTORYSERVICE_IID_STR; 64 static const nsIID IID = NS_IDIRECTORYSERVICE_IID; 65 66 extern(System): 67 nsresult Init(); 68 nsresult RegisterProvider(nsIDirectoryServiceProvider prov); 69 nsresult UnregisterProvider(nsIDirectoryServiceProvider prov); 70 } 71