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) 2005 IBM Corp. All Rights Reserved.
026: *
027: * ***** END LICENSE BLOCK ***** */
028: package org.eclipse.swt.internal.mozilla;
029:
030: public class nsICookie extends nsISupports {
031:
032: static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 9;
033:
034: public static final String NS_ICOOKIE_IID_STR = "e9fcb9a4-d376-458f-b720-e65e7df593bc";
035:
036: public static final nsID NS_ICOOKIE_IID = new nsID(
037: NS_ICOOKIE_IID_STR);
038:
039: public nsICookie(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 GetValue(int /*long*/aValue) {
049: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2,
050: getAddress(), aValue);
051: }
052:
053: public int GetIsDomain(boolean[] aIsDomain) {
054: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3,
055: getAddress(), aIsDomain);
056: }
057:
058: public int GetHost(int /*long*/aHost) {
059: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4,
060: getAddress(), aHost);
061: }
062:
063: public int GetPath(int /*long*/aPath) {
064: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5,
065: getAddress(), aPath);
066: }
067:
068: public int GetIsSecure(boolean[] aIsSecure) {
069: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6,
070: getAddress(), aIsSecure);
071: }
072:
073: public int GetExpires(long[] aExpires) {
074: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7,
075: getAddress(), aExpires);
076: }
077:
078: public static final int STATUS_UNKNOWN = 0;
079:
080: public static final int STATUS_ACCEPTED = 1;
081:
082: public static final int STATUS_DOWNGRADED = 2;
083:
084: public static final int STATUS_FLAGGED = 3;
085:
086: public static final int STATUS_REJECTED = 4;
087:
088: public int GetStatus(int /*long*/aStatus) {
089: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8,
090: getAddress(), aStatus);
091: }
092:
093: public static final int POLICY_UNKNOWN = 0;
094:
095: public static final int POLICY_NONE = 1;
096:
097: public static final int POLICY_NO_CONSENT = 2;
098:
099: public static final int POLICY_IMPLICIT_CONSENT = 3;
100:
101: public static final int POLICY_EXPLICIT_CONSENT = 4;
102:
103: public static final int POLICY_NO_II = 5;
104:
105: public int GetPolicy(int /*long*/aPolicy) {
106: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9,
107: getAddress(), aPolicy);
108: }
109: }
|