|
Revision 327:b0d7eb5bd76c, 0.9 kB
(checked in by John Reimer <terminal.node@gmail.com>, 3 years ago)
|
Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
|
| Line | |
|---|
| 1 |
module dwt.internal.mozilla.nsIPrefService; |
|---|
| 2 |
|
|---|
| 3 |
import dwt.internal.mozilla.Common; |
|---|
| 4 |
import dwt.internal.mozilla.nsID; |
|---|
| 5 |
import dwt.internal.mozilla.nsISupports; |
|---|
| 6 |
import dwt.internal.mozilla.nsIPrefBranch; |
|---|
| 7 |
import dwt.internal.mozilla.nsIFile; |
|---|
| 8 |
|
|---|
| 9 |
const char[] NS_IPREFSERVICE_IID_STR = "decb9cc7-c08f-4ea5-be91-a8fc637ce2d2"; |
|---|
| 10 |
|
|---|
| 11 |
const nsIID NS_IPREFSERVICE_IID= |
|---|
| 12 |
{0xdecb9cc7, 0xc08f, 0x4ea5, |
|---|
| 13 |
[ 0xbe, 0x91, 0xa8, 0xfc, 0x63, 0x7c, 0xe2, 0xd2 ]}; |
|---|
| 14 |
|
|---|
| 15 |
interface nsIPrefService : nsISupports { |
|---|
| 16 |
|
|---|
| 17 |
static const char[] IID_STR = NS_IPREFSERVICE_IID_STR; |
|---|
| 18 |
static const nsIID IID = NS_IPREFSERVICE_IID; |
|---|
| 19 |
|
|---|
| 20 |
extern(System): |
|---|
| 21 |
nsresult ReadUserPrefs(nsIFile aFile); |
|---|
| 22 |
nsresult ResetPrefs(); |
|---|
| 23 |
nsresult ResetUserPrefs(); |
|---|
| 24 |
nsresult SavePrefFile(nsIFile aFile); |
|---|
| 25 |
nsresult GetBranch(char *aPrefRoot, nsIPrefBranch *_retval); |
|---|
| 26 |
nsresult GetDefaultBranch(char *aPrefRoot, nsIPrefBranch *_retval); |
|---|
| 27 |
|
|---|
| 28 |
} |
|---|