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) 2003, 2005 IBM Corp. All Rights Reserved.
026: *
027: * ***** END LICENSE BLOCK ***** */
028: package org.eclipse.swt.internal.mozilla;
029:
030: public class nsIRequest extends nsISupports {
031:
032: static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 10;
033:
034: public static final String NS_IREQUEST_IID_STR = "ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe";
035:
036: public static final nsID NS_IREQUEST_IID = new nsID(
037: NS_IREQUEST_IID_STR);
038:
039: public nsIRequest(int /*long*/address) {
040: super (address);
041: }
042:
043: public int GetName(int /*long*/aName) {
044: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1,
045: getAddress(), aName);
046: }
047:
048: public int IsPending(boolean[] _retval) {
049: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2,
050: getAddress(), _retval);
051: }
052:
053: public int GetStatus(int /*long*/[] aStatus) {
054: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3,
055: getAddress(), aStatus);
056: }
057:
058: public int Cancel(int aStatus) {
059: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4,
060: getAddress(), aStatus);
061: }
062:
063: public int Suspend() {
064: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5,
065: getAddress());
066: }
067:
068: public int Resume() {
069: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6,
070: getAddress());
071: }
072:
073: public int GetLoadGroup(int /*long*/[] aLoadGroup) {
074: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7,
075: getAddress(), aLoadGroup);
076: }
077:
078: public int SetLoadGroup(int /*long*/aLoadGroup) {
079: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8,
080: getAddress(), aLoadGroup);
081: }
082:
083: public int GetLoadFlags(int /*long*/[] aLoadFlags) {
084: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9,
085: getAddress(), aLoadFlags);
086: }
087:
088: public int SetLoadFlags(int aLoadFlags) {
089: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10,
090: getAddress(), aLoadFlags);
091: }
092:
093: public static final int LOAD_NORMAL = 0;
094:
095: public static final int LOAD_BACKGROUND = 1;
096:
097: public static final int INHIBIT_CACHING = 128;
098:
099: public static final int INHIBIT_PERSISTENT_CACHING = 256;
100:
101: public static final int LOAD_BYPASS_CACHE = 512;
102:
103: public static final int LOAD_FROM_CACHE = 1024;
104:
105: public static final int VALIDATE_ALWAYS = 2048;
106:
107: public static final int VALIDATE_NEVER = 4096;
108:
109: public static final int VALIDATE_ONCE_PER_SESSION = 8192;
110: }
|