khtml Library API Documentation

kjavaappletserver.h

00001 // -*- c++ -*- 00002 00003 /* This file is part of the KDE project 00004 * 00005 * Copyright (C) 2000 Richard Moore <rich@kde.org> 00006 * 2000 Wynn Wilkes <wynnw@caldera.com> 00007 * 00008 * This library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Library General Public 00010 * License as published by the Free Software Foundation; either 00011 * version 2 of the License, or (at your option) any later version. 00012 * 00013 * This library is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Library General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Library General Public License 00019 * along with this library; see the file COPYING.LIB. If not, write to 00020 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00021 * Boston, MA 02111-1307, USA. 00022 */ 00023 00024 #ifndef KJAVAAPPLETSERVER_H 00025 #define KJAVAAPPLETSERVER_H 00026 00027 #include "kjavaprocess.h" 00028 #include <qobject.h> 00029 #include <qmap.h> 00030 00031 00039 class KJavaAppletContext; 00040 class KJavaAppletServerPrivate; 00041 class JSStackFrame; 00042 00043 class KJavaAppletServer : public QObject 00044 { 00045 Q_OBJECT 00046 00047 public: 00052 KJavaAppletServer(); 00053 ~KJavaAppletServer(); 00054 00059 static KJavaAppletServer *allocateJavaServer(); 00060 00065 static void freeJavaServer(); 00066 00072 static QString getAppletLabel(); 00073 00077 void createContext( int contextId, KJavaAppletContext* context ); 00078 00083 void destroyContext( int contextId ); 00084 00089 bool createApplet( int contextId, int appletId, 00090 const QString & name, const QString & clazzName, 00091 const QString & baseURL, const QString & user, 00092 const QString & password, const QString & authname, 00093 const QString & codeBase, const QString & jarFile, 00094 QSize size, const QMap<QString, QString>& params, 00095 const QString & windowTitle ); 00096 00100 void initApplet( int contextId, int appletId ); 00101 00105 void destroyApplet( int contextId, int appletId ); 00106 00110 void startApplet( int contextId, int appletId ); 00111 00115 void stopApplet( int contextId, int appletId ); 00116 00121 void sendURLData( int loaderID, int code, const QByteArray& data ); 00125 void removeDataJob( int loaderID ); 00126 00130 void quit(); 00131 00132 QString appletLabel(); 00133 00134 void waitForReturnData(JSStackFrame *); 00135 void endWaitForReturnData(); 00136 00137 bool getMember(QStringList & args, QStringList & ret_args); 00138 bool putMember(QStringList & args); 00139 bool callMember(QStringList & args, QStringList & ret_args); 00140 void derefObject(QStringList & args); 00141 00142 bool usingKIO(); 00143 protected: 00144 void setupJava( KJavaProcess* p ); 00145 00146 KJavaProcess* process; 00147 00148 protected slots: 00149 void slotJavaRequest( const QByteArray& qb ); 00150 void checkShutdown(); 00151 void timerEvent(QTimerEvent *); 00152 00153 private: 00154 KJavaAppletServerPrivate* d; 00155 00156 }; 00157 00158 #endif // KJAVAAPPLETSERVER_H
KDE Logo
This file is part of the documentation for khtml Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Aug 30 22:56:29 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003