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) 2004, 2005 IBM Corp. All Rights Reserved.
026: *
027: * ***** END LICENSE BLOCK ***** */
028: package org.eclipse.swt.internal.mozilla;
029:
030: public class nsIDownload extends nsISupports {
031:
032: static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 13;
033:
034: public static final String NS_IDOWNLOAD_IID_STR = "06cb92f2-1dd2-11b2-95f2-96dfdfb804a1";
035:
036: public static final nsID NS_IDOWNLOAD_IID = new nsID(
037: NS_IDOWNLOAD_IID_STR);
038:
039: public nsIDownload(int /*long*/address) {
040: super (address);
041: }
042:
043: public int Init(int /*long*/aSource, int /*long*/aTarget,
044: char[] aDisplayName, int /*long*/aMIMEInfo,
045: long startTime, int /*long*/aPersist) {
046: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1,
047: getAddress(), aSource, aTarget, aDisplayName,
048: aMIMEInfo, startTime, aPersist);
049: }
050:
051: public int GetSource(int /*long*/[] aSource) {
052: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2,
053: getAddress(), aSource);
054: }
055:
056: public int GetTarget(int /*long*/[] aTarget) {
057: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3,
058: getAddress(), aTarget);
059: }
060:
061: public int GetPersist(int /*long*/[] aPersist) {
062: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4,
063: getAddress(), aPersist);
064: }
065:
066: public int GetPercentComplete(int[] aPercentComplete) {
067: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5,
068: getAddress(), aPercentComplete);
069: }
070:
071: public int GetDisplayName(int /*long*/[] aDisplayName) {
072: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6,
073: getAddress(), aDisplayName);
074: }
075:
076: public int SetDisplayName(char[] aDisplayName) {
077: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7,
078: getAddress(), aDisplayName);
079: }
080:
081: public int GetStartTime(long[] aStartTime) {
082: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8,
083: getAddress(), aStartTime);
084: }
085:
086: public int GetMIMEInfo(int /*long*/[] aMIMEInfo) {
087: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9,
088: getAddress(), aMIMEInfo);
089: }
090:
091: public int GetListener(int /*long*/[] aListener) {
092: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10,
093: getAddress(), aListener);
094: }
095:
096: public int SetListener(int /*long*/aListener) {
097: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11,
098: getAddress(), aListener);
099: }
100:
101: public int GetObserver(int /*long*/[] aObserver) {
102: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12,
103: getAddress(), aObserver);
104: }
105:
106: public int SetObserver(int /*long*/aObserver) {
107: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13,
108: getAddress(), aObserver);
109: }
110: }
|