comparison dwt/internal/mozilla/nsIDirectoryService.d @ 272:dd63eb078d7a

xpcom interfaces necessary for browser code -- source adapted from dxpcom project; these modules still need to be tested and then integrated into dwt browser.
author John Reimer<terminal.node@gmail.com>
date Fri, 18 Jul 2008 05:32:53 -0700
parents
children 942da4b6558a
comparison
equal deleted inserted replaced
271:d472fae79005 272:dd63eb078d7a
1 module dwt.internal.mozilla.nsIDirectoryService;
2
3 import dwt.internal.mozilla.Common;
4 import dwt.internal.mozilla.nsID;
5 import dwt.internal.mozilla.nsISimpleEnumerator;
6 import dwt.internal.mozilla.nsISupports;
7 import dwt.internal.mozilla.nsIFile;
8
9 /******************************************************************************
10
11 ******************************************************************************/
12
13 const char[] NS_IDIRECTORYSERVICEPROVIDER_IID_STR = "bbf8cab0-d43a-11d3-8cc2-00609792278c";
14
15 const nsIID NS_IDIRECTORYSERVICEPROVIDER_IID=
16 {0xbbf8cab0, 0xd43a, 0x11d3,
17 [ 0x8c, 0xc2, 0x00, 0x60, 0x97, 0x92, 0x27, 0x8c ]};
18
19 extern(System)
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 nsresult GetFile(char *prop, PRBool *persistent, nsIFile *_retval);
27
28 }
29
30 /******************************************************************************
31
32 ******************************************************************************/
33
34 const char[] NS_IDIRECTORYSERVICEPROVIDER2_IID_STR = "2f977d4b-5485-11d4-87e2-0010a4e75ef2";
35
36 const nsIID NS_IDIRECTORYSERVICEPROVIDER2_IID=
37 {0x2f977d4b, 0x5485, 0x11d4,
38 [ 0x87, 0xe2, 0x00, 0x10, 0xa4, 0xe7, 0x5e, 0xf2 ]};
39
40 extern(System)
41
42 interface nsIDirectoryServiceProvider2 : nsIDirectoryServiceProvider {
43
44 static const char[] IID_STR = NS_IDIRECTORYSERVICEPROVIDER2_IID_STR;
45 static const nsIID IID = NS_IDIRECTORYSERVICEPROVIDER2_IID;
46
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 extern(System)
62
63 interface nsIDirectoryService : nsISupports {
64
65 static const char[] IID_STR = NS_IDIRECTORYSERVICE_IID_STR;
66 static const nsIID IID = NS_IDIRECTORYSERVICE_IID;
67
68 nsresult Init();
69 nsresult RegisterProvider(nsIDirectoryServiceProvider prov);
70 nsresult UnregisterProvider(nsIDirectoryServiceProvider prov);
71 }
72