kjavaappletserver.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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
00038 class KJavaAppletContext;
00039 class KJavaAppletServerPrivate;
00040 class JSStackFrame;
00041
00042 class KJavaAppletServer : public QObject
00043 {
00044 Q_OBJECT
00045
00046 public:
00051 KJavaAppletServer();
00052 ~KJavaAppletServer();
00053
00058 static KJavaAppletServer *allocateJavaServer();
00059
00064 static void freeJavaServer();
00065
00071 static QString getAppletLabel();
00072
00076 void createContext( int contextId, KJavaAppletContext* context );
00077
00082 void destroyContext( int contextId );
00083
00088 bool createApplet( int contextId, int appletId,
00089 const QString & name, const QString & clazzName,
00090 const QString & baseURL, const QString & user,
00091 const QString & password, const QString & authname,
00092 const QString & codeBase, const QString & jarFile,
00093 QSize size, const QMap<QString, QString>& params,
00094 const QString & windowTitle );
00095
00099 void initApplet( int contextId, int appletId );
00100
00104 void destroyApplet( int contextId, int appletId );
00105
00109 void startApplet( int contextId, int appletId );
00110
00114 void stopApplet( int contextId, int appletId );
00115
00120 void sendURLData( int loaderID, int code, const QByteArray& data );
00124 void removeDataJob( int loaderID );
00125
00129 void quit();
00130 KJavaProcess* javaProcess() { return process; }
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
00159 class PermissionDialog : public QObject
00160 {
00161 Q_OBJECT
00162 public:
00163 PermissionDialog( QWidget* );
00164 ~PermissionDialog();
00165
00166 QCString exec( const QString & cert, const QString & perm );
00167
00168 private slots:
00169 void clicked();
00170
00171 private:
00172 QCString m_button;
00173 };
00174
00175 #endif // KJAVAAPPLETSERVER_H
This file is part of the documentation for khtml Library Version 3.3.90.