public int ClearUserPref(byte[] aPrefName) { return XPCOM.VtblCall(this.getMethodIndex("clearUserPref"), getAddress(), aPrefName); } }
nsIPrefBranch prefBranch = new nsIPrefBranch (result[0]); result[0] = 0; nsIPrefLocalizedString localizedString = null; buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_LANGUAGES, true); rc = prefBranch.GetComplexValue (buffer, nsIPrefLocalizedString.NS_IPREFLOCALIZEDSTRING_IID, result); rc = prefBranch.SetComplexValue (buffer, nsIPrefLocalizedString.NS_IPREFLOCALIZEDSTRING_IID, localizedString.getAddress()); rc = prefBranch.GetComplexValue (buffer, nsIPrefLocalizedString.NS_IPREFLOCALIZEDSTRING_IID, result); rc = prefBranch.SetComplexValue (buffer, nsIPrefLocalizedString.NS_IPREFLOCALIZEDSTRING_IID, localizedString.getAddress ()); rc = prefBranch.GetComplexValue (buffer, nsIPrefLocalizedString.NS_IPREFLOCALIZEDSTRING_IID, result); if (rc == XPCOM.NS_OK && result[0] != 0) { nsIPrefLocalizedString value = new nsIPrefLocalizedString (result[0]); rc = prefBranch.SetComplexValue (buffer, nsIPrefLocalizedString.NS_IPREFLOCALIZEDSTRING_IID, localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.GetComplexValue (buffer, nsIPrefLocalizedString.NS_IPREFLOCALIZEDSTRING_IID, result); if (rc == XPCOM.NS_OK && result[0] != 0) { nsIPrefLocalizedString value = new nsIPrefLocalizedString (result[0]); rc = prefBranch.SetComplexValue (buffer, nsIPrefLocalizedString.NS_IPREFLOCALIZEDSTRING_IID, localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.GetComplexValue (buffer, nsIPrefLocalizedString.NS_IPREFLOCALIZEDSTRING_IID, result); if (rc == XPCOM.NS_OK && result[0] != 0) {
nsIPrefBranch prefBranch = new nsIPrefBranch (result[0]); result[0] = 0; buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_PROXYHOST_FTP, true); if (oldProxyHostFTP.equals (DEFAULTVALUE_STRING)) { rc = prefBranch.ClearUserPref (buffer); if (rc != XPCOM.NS_OK) error (rc); } else { rc = localizedString.SetDataWithLength (length, charBuffer); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.SetComplexValue (buffer, nsIPrefLocalizedString.NS_IPREFLOCALIZEDSTRING_IID, localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_PROXYHOST_HTTP, true); if (oldProxyHostHTTP.equals (DEFAULTVALUE_STRING)) { rc = prefBranch.ClearUserPref (buffer); if (rc != XPCOM.NS_OK) error (rc); } else { rc = localizedString.SetDataWithLength (length, charBuffer); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.SetComplexValue (buffer, nsIPrefLocalizedString.NS_IPREFLOCALIZEDSTRING_IID, localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_PROXYHOST_SSL, true); if (oldProxyHostSSL.equals (DEFAULTVALUE_STRING)) { rc = prefBranch.ClearUserPref (buffer); if (rc != XPCOM.NS_OK) error (rc);
public int ClearUserPref(byte[] aPrefName) { return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11, getAddress(), aPrefName); } }
nsIPrefBranch prefBranch = new nsIPrefBranch (result[0]); result[0] = 0; nsIPrefLocalizedString localizedString = null; buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_LANGUAGES, true); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress()); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); if (rc == XPCOM.NS_OK && result[0] != 0) { nsIPrefLocalizedString value = new nsIPrefLocalizedString (result[0]); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); if (rc == XPCOM.NS_OK && result[0] != 0) { nsIPrefLocalizedString value = new nsIPrefLocalizedString (result[0]); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); if (rc == XPCOM.NS_OK && result[0] != 0) {
nsIPrefBranch prefBranch = new nsIPrefBranch (result[0]); result[0] = 0; buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_PROXYHOST_FTP, true); if (oldProxyHostFTP.equals (DEFAULTVALUE_STRING)) { rc = prefBranch.ClearUserPref (buffer); if (rc != XPCOM.NS_OK) error (rc); } else { rc = localizedString.SetDataWithLength (length, charBuffer); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_PROXYHOST_HTTP, true); if (oldProxyHostHTTP.equals (DEFAULTVALUE_STRING)) { rc = prefBranch.ClearUserPref (buffer); if (rc != XPCOM.NS_OK) error (rc); } else { rc = localizedString.SetDataWithLength (length, charBuffer); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_PROXYHOST_SSL, true); if (oldProxyHostSSL.equals (DEFAULTVALUE_STRING)) { rc = prefBranch.ClearUserPref (buffer); if (rc != XPCOM.NS_OK) error (rc);
public int SetComplexValue(byte[] aPrefName, nsID aType, long /*int*/ aValue) { return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10, getAddress(), aPrefName, aType, aValue); }
nsIPrefBranch prefBranch = new nsIPrefBranch (result[0]); result[0] = 0; nsIPrefLocalizedString localizedString = null; buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_LANGUAGES, true); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress()); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); if (rc == XPCOM.NS_OK && result[0] != 0) { nsIPrefLocalizedString value = new nsIPrefLocalizedString (result[0]); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); if (rc == XPCOM.NS_OK && result[0] != 0) { nsIPrefLocalizedString value = new nsIPrefLocalizedString (result[0]); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); if (rc == XPCOM.NS_OK && result[0] != 0) {
nsIPrefBranch prefBranch = new nsIPrefBranch (result[0]); result[0] = 0; buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_PROXYHOST_FTP, true); if (oldProxyHostFTP.equals (DEFAULTVALUE_STRING)) { rc = prefBranch.ClearUserPref (buffer); if (rc != XPCOM.NS_OK) error (rc); } else { rc = localizedString.SetDataWithLength (length, charBuffer); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_PROXYHOST_HTTP, true); if (oldProxyHostHTTP.equals (DEFAULTVALUE_STRING)) { rc = prefBranch.ClearUserPref (buffer); if (rc != XPCOM.NS_OK) error (rc); } else { rc = localizedString.SetDataWithLength (length, charBuffer); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_PROXYHOST_SSL, true); if (oldProxyHostSSL.equals (DEFAULTVALUE_STRING)) { rc = prefBranch.ClearUserPref (buffer); if (rc != XPCOM.NS_OK) error (rc);
public int ClearUserPref(byte[] aPrefName) { return XPCOM.VtblCall(this.getMethodIndex("clearUserPref"), getAddress(), aPrefName); } }
public int GetComplexValue(byte[] aPrefName, nsID aType, long /*int*/[] aValue) { return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9, getAddress(), aPrefName, aType, aValue); }
nsIPrefBranch prefBranch = new nsIPrefBranch (result[0]); result[0] = 0; nsIPrefLocalizedString localizedString = null; buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_LANGUAGES, true); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress()); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); if (rc == XPCOM.NS_OK && result[0] != 0) { nsIPrefLocalizedString value = new nsIPrefLocalizedString (result[0]); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); if (rc == XPCOM.NS_OK && result[0] != 0) { nsIPrefLocalizedString value = new nsIPrefLocalizedString (result[0]); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); if (rc == XPCOM.NS_OK && result[0] != 0) {
nsIPrefBranch prefBranch = new nsIPrefBranch (result[0]); result[0] = 0; buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_PROXYHOST_FTP, true); if (oldProxyHostFTP.equals (DEFAULTVALUE_STRING)) { rc = prefBranch.ClearUserPref (buffer); if (rc != XPCOM.NS_OK) error (rc); } else { rc = localizedString.SetDataWithLength (length, charBuffer); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_PROXYHOST_HTTP, true); if (oldProxyHostHTTP.equals (DEFAULTVALUE_STRING)) { rc = prefBranch.ClearUserPref (buffer); if (rc != XPCOM.NS_OK) error (rc); } else { rc = localizedString.SetDataWithLength (length, charBuffer); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_PROXYHOST_SSL, true); if (oldProxyHostSSL.equals (DEFAULTVALUE_STRING)) { rc = prefBranch.ClearUserPref (buffer); if (rc != XPCOM.NS_OK) error (rc);
public int SetIntPref(byte[] aPrefName, int aValue) { return XPCOM.VtblCall(this.getMethodIndex("setIntPref"), getAddress(), aPrefName, aValue); }
public int GetIntPref(byte[] aPrefName, int[] _retval) { return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7, getAddress(), aPrefName, _retval); }
nsIPrefBranch prefBranch = new nsIPrefBranch (result[0]); result[0] = 0; nsIPrefLocalizedString localizedString = null; buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_LANGUAGES, true); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress()); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); if (rc == XPCOM.NS_OK && result[0] != 0) { nsIPrefLocalizedString value = new nsIPrefLocalizedString (result[0]); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); if (rc == XPCOM.NS_OK && result[0] != 0) { nsIPrefLocalizedString value = new nsIPrefLocalizedString (result[0]); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.GetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), result); if (rc == XPCOM.NS_OK && result[0] != 0) {
nsIPrefBranch prefBranch = new nsIPrefBranch (result[0]); result[0] = 0; buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_PROXYHOST_FTP, true); if (oldProxyHostFTP.equals (DEFAULTVALUE_STRING)) { rc = prefBranch.ClearUserPref (buffer); if (rc != XPCOM.NS_OK) error (rc); } else { rc = localizedString.SetDataWithLength (length, charBuffer); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_PROXYHOST_HTTP, true); if (oldProxyHostHTTP.equals (DEFAULTVALUE_STRING)) { rc = prefBranch.ClearUserPref (buffer); if (rc != XPCOM.NS_OK) error (rc); } else { rc = localizedString.SetDataWithLength (length, charBuffer); if (rc != XPCOM.NS_OK) error (rc); rc = prefBranch.SetComplexValue (buffer, IIDStore.GetIID (nsIPrefLocalizedString.class), localizedString.getAddress ()); if (rc != XPCOM.NS_OK) error (rc); buffer = MozillaDelegate.wcsToMbcs (null, PREFERENCE_PROXYHOST_SSL, true); if (oldProxyHostSSL.equals (DEFAULTVALUE_STRING)) { rc = prefBranch.ClearUserPref (buffer); if (rc != XPCOM.NS_OK) error (rc);
public int SetBoolPref(byte[] aPrefName, int aValue) { return XPCOM.VtblCall(this.getMethodIndex("setBoolPref"), getAddress(), aPrefName, aValue); }
public int SetBoolPref(byte[] aPrefName, int aValue) { return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), aPrefName, aValue); }
public int GetComplexValue(byte[] aPrefName, nsID aType, int /*long*/[] aValue) { return XPCOM.VtblCall(this.getMethodIndex("getComplexValue"), getAddress(), aPrefName, aType, aValue); }