Back to index

lightning-sunbird  0.9+nobinonly
netscape_javascript_JSObject.h
Go to the documentation of this file.
00001 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
00002  *
00003  * ***** BEGIN LICENSE BLOCK *****
00004  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00005  *
00006  * The contents of this file are subject to the Mozilla Public License Version
00007  * 1.1 (the "License"); you may not use this file except in compliance with
00008  * the License. You may obtain a copy of the License at
00009  * http://www.mozilla.org/MPL/
00010  *
00011  * Software distributed under the License is distributed on an "AS IS" basis,
00012  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00013  * for the specific language governing rights and limitations under the
00014  * License.
00015  *
00016  * The Original Code is Mozilla Communicator client code, released
00017  * March 31, 1998.
00018  *
00019  * The Initial Developer of the Original Code is
00020  * Netscape Communications Corporation.
00021  * Portions created by the Initial Developer are Copyright (C) 1998
00022  * the Initial Developer. All Rights Reserved.
00023  *
00024  * Contributor(s):
00025  *
00026  * Alternatively, the contents of this file may be used under the terms of
00027  * either of the GNU General Public License Version 2 or later (the "GPL"),
00028  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00029  * in which case the provisions of the GPL or the LGPL are applicable instead
00030  * of those above. If you wish to allow use of your version of this file only
00031  * under the terms of either the GPL or the LGPL, and not to allow others to
00032  * use your version of this file under the terms of the MPL, indicate your
00033  * decision by deleting the provisions above and replace them with the notice
00034  * and other provisions required by the GPL or the LGPL. If you do not delete
00035  * the provisions above, a recipient may use your version of this file under
00036  * the terms of any one of the MPL, the GPL or the LGPL.
00037  *
00038  * ***** END LICENSE BLOCK ***** */
00039 
00040 /*
00041  * This file is part of the Java-vendor-neutral implementation of LiveConnect
00042  *
00043  * Declarations of private (internal) functions/data/types for
00044  * JavaScript <==> Java communication.
00045  *
00046  */
00047 
00048 #include <jni.h>
00049 /* Header for class netscape_javascript_JSObject */
00050 
00051 #ifndef _Included_netscape_javascript_JSObject
00052 #define _Included_netscape_javascript_JSObject
00053 #ifdef __cplusplus
00054 extern "C" {
00055 #endif
00056 /*
00057  * Class:     netscape_javascript_JSObject
00058  * Method:    initClass
00059  * Signature: ()V
00060  */
00061 JNIEXPORT void JNICALL Java_netscape_javascript_JSObject_initClass
00062   (JNIEnv *, jclass);
00063 
00064 /*
00065  * Class:     netscape_javascript_JSObject
00066  * Method:    getMember
00067  * Signature: (Ljava/lang/String;)Ljava/lang/Object;
00068  */
00069 JNIEXPORT jobject JNICALL Java_netscape_javascript_JSObject_getMember
00070   (JNIEnv *, jobject, jstring);
00071 
00072 /*
00073  * Class:     netscape_javascript_JSObject
00074  * Method:    getSlot
00075  * Signature: (I)Ljava/lang/Object;
00076  */
00077 JNIEXPORT jobject JNICALL Java_netscape_javascript_JSObject_getSlot
00078   (JNIEnv *, jobject, jint);
00079 
00080 /*
00081  * Class:     netscape_javascript_JSObject
00082  * Method:    setMember
00083  * Signature: (Ljava/lang/String;Ljava/lang/Object;)V
00084  */
00085 JNIEXPORT void JNICALL Java_netscape_javascript_JSObject_setMember
00086   (JNIEnv *, jobject, jstring, jobject);
00087 
00088 /*
00089  * Class:     netscape_javascript_JSObject
00090  * Method:    setSlot
00091  * Signature: (ILjava/lang/Object;)V
00092  */
00093 JNIEXPORT void JNICALL Java_netscape_javascript_JSObject_setSlot
00094   (JNIEnv *, jobject, jint, jobject);
00095 
00096 /*
00097  * Class:     netscape_javascript_JSObject
00098  * Method:    removeMember
00099  * Signature: (Ljava/lang/String;)V
00100  */
00101 JNIEXPORT void JNICALL Java_netscape_javascript_JSObject_removeMember
00102   (JNIEnv *, jobject, jstring);
00103 
00104 /*
00105  * Class:     netscape_javascript_JSObject
00106  * Method:    call
00107  * Signature: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
00108  */
00109 JNIEXPORT jobject JNICALL Java_netscape_javascript_JSObject_call
00110   (JNIEnv *, jobject, jstring, jobjectArray);
00111 
00112 /*
00113  * Class:     netscape_javascript_JSObject
00114  * Method:    eval
00115  * Signature: (Ljava/lang/String;)Ljava/lang/Object;
00116  */
00117 JNIEXPORT jobject JNICALL Java_netscape_javascript_JSObject_eval
00118   (JNIEnv *, jobject, jstring);
00119 
00120 /*
00121  * Class:     netscape_javascript_JSObject
00122  * Method:    toString
00123  * Signature: ()Ljava/lang/String;
00124  */
00125 JNIEXPORT jstring JNICALL Java_netscape_javascript_JSObject_toString
00126   (JNIEnv *, jobject);
00127 
00128 /*
00129  * Class:     netscape_javascript_JSObject
00130  * Method:    getWindow
00131  * Signature: (Ljava/applet/Applet;)Lnetscape/javascript/JSObject;
00132  */
00133 JNIEXPORT jobject JNICALL Java_netscape_javascript_JSObject_getWindow
00134   (JNIEnv *, jclass, jobject);
00135 
00136 /*
00137  * Class:     netscape_javascript_JSObject
00138  * Method:    finalize
00139  * Signature: ()V
00140  */
00141 JNIEXPORT void JNICALL Java_netscape_javascript_JSObject_finalize
00142   (JNIEnv *, jobject);
00143 
00144 /*
00145  * Class:     netscape_javascript_JSObject
00146  * Method:    equals
00147  * Signature: (Ljava/lang/Object;)Z
00148  */
00149 JNIEXPORT jboolean JNICALL Java_netscape_javascript_JSObject_equals
00150   (JNIEnv *, jobject, jobject);
00151 
00152 #ifdef __cplusplus
00153 }
00154 #endif
00155 #endif