001: /* ***** BEGIN LICENSE BLOCK *****
002: * Version: MPL 1.1
003: *
004: * The contents of this file are subject to the Mozilla Public License Version
005: * 1.1 (the "License"); you may not use this file except in compliance with
006: * the License. You may obtain a copy of the License at
007: * http://www.mozilla.org/MPL/
008: *
009: * Software distributed under the License is distributed on an "AS IS" basis,
010: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
011: * for the specific language governing rights and limitations under the
012: * License.
013: *
014: * The Original Code is Mozilla Communicator client code, released March 31, 1998.
015: *
016: * The Initial Developer of the Original Code is
017: * Netscape Communications Corporation.
018: * Portions created by Netscape are Copyright (C) 1998-1999
019: * Netscape Communications Corporation. All Rights Reserved.
020: *
021: * Contributor(s):
022: *
023: * IBM
024: * - Binding to permit interfacing between Mozilla and SWT
025: * - Copyright (C) 2006 IBM Corp. All Rights Reserved.
026: *
027: * ***** END LICENSE BLOCK ***** */
028: package org.eclipse.swt.internal.mozilla;
029:
030: public class nsIPrefBranch extends nsISupports {
031:
032: static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 18;
033:
034: public static final String NS_IPREFBRANCH_IID_STR = "56c35506-f14b-11d3-99d3-ddbfac2ccf65";
035:
036: public static final nsID NS_IPREFBRANCH_IID = new nsID(
037: NS_IPREFBRANCH_IID_STR);
038:
039: public nsIPrefBranch(int /*long*/address) {
040: super (address);
041: }
042:
043: public static final int PREF_INVALID = 0;
044:
045: public static final int PREF_STRING = 32;
046:
047: public static final int PREF_INT = 64;
048:
049: public static final int PREF_BOOL = 128;
050:
051: public int GetRoot(int /*long*/[] aRoot) {
052: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1,
053: getAddress(), aRoot);
054: }
055:
056: public int GetPrefType(byte[] aPrefName, int[] _retval) {
057: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2,
058: getAddress(), aPrefName, _retval);
059: }
060:
061: public int GetBoolPref(byte[] aPrefName, boolean[] _retval) {
062: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3,
063: getAddress(), aPrefName, _retval);
064: }
065:
066: public int SetBoolPref(byte[] aPrefName, int aValue) {
067: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4,
068: getAddress(), aPrefName, aValue);
069: }
070:
071: public int GetCharPref(byte[] aPrefName, int /*long*/[] _retval) {
072: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5,
073: getAddress(), aPrefName, _retval);
074: }
075:
076: public int SetCharPref(byte[] aPrefName, byte[] aValue) {
077: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6,
078: getAddress(), aPrefName, aValue);
079: }
080:
081: public int GetIntPref(byte[] aPrefName, int[] _retval) {
082: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7,
083: getAddress(), aPrefName, _retval);
084: }
085:
086: public int SetIntPref(byte[] aPrefName, int aValue) {
087: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8,
088: getAddress(), aPrefName, aValue);
089: }
090:
091: public int GetComplexValue(byte[] aPrefName, nsID aType,
092: int /*long*/[] aValue) {
093: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9,
094: getAddress(), aPrefName, aType, aValue);
095: }
096:
097: public int SetComplexValue(byte[] aPrefName, nsID aType,
098: int /*long*/aValue) {
099: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10,
100: getAddress(), aPrefName, aType, aValue);
101: }
102:
103: public int ClearUserPref(byte[] aPrefName) {
104: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11,
105: getAddress(), aPrefName);
106: }
107:
108: public int LockPref(byte[] aPrefName) {
109: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12,
110: getAddress(), aPrefName);
111: }
112:
113: public int PrefHasUserValue(byte[] aPrefName, boolean[] _retval) {
114: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13,
115: getAddress(), aPrefName, _retval);
116: }
117:
118: public int PrefIsLocked(byte[] aPrefName, boolean[] _retval) {
119: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 14,
120: getAddress(), aPrefName, _retval);
121: }
122:
123: public int UnlockPref(byte[] aPrefName) {
124: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 15,
125: getAddress(), aPrefName);
126: }
127:
128: public int DeleteBranch(byte[] aStartingAt) {
129: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 16,
130: getAddress(), aStartingAt);
131: }
132:
133: public int GetChildList(byte[] aStartingAt, int[] aCount,
134: int /*long*/[] aChildArray) {
135: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 17,
136: getAddress(), aStartingAt, aCount, aChildArray);
137: }
138:
139: public int ResetBranch(byte[] aStartingAt) {
140: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 18,
141: getAddress(), aStartingAt);
142: }
143: }
|