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