1 28 package org.eclipse.swt.internal.mozilla; 29 30 public class nsIPrefService extends nsISupports { 31 32 static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 6; 33 34 public static final String NS_IPREFSERVICE_IID_STR = 35 "decb9cc7-c08f-4ea5-be91-a8fc637ce2d2"; 36 37 public static final nsID NS_IPREFSERVICE_IID = 38 new nsID(NS_IPREFSERVICE_IID_STR); 39 40 public nsIPrefService(int address) { 41 super(address); 42 } 43 44 public int ReadUserPrefs(int aFile) { 45 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), aFile); 46 } 47 48 public int ResetPrefs() { 49 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress()); 50 } 51 52 public int ResetUserPrefs() { 53 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress()); 54 } 55 56 public int SavePrefFile(int aFile) { 57 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), aFile); 58 } 59 60 public int GetBranch(byte[] aPrefRoot, int [] _retval) { 61 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress(), aPrefRoot, _retval); 62 } 63 64 public int GetDefaultBranch(byte[] aPrefRoot, int [] _retval) { 65 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress(), aPrefRoot, _retval); 66 } 67 } 68 | Popular Tags |