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
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 KJavaProcess* javaProcess() {
return process; }
00132
00133
QString appletLabel();
00134
00135
void waitForReturnData(JSStackFrame *);
00136
void endWaitForReturnData();
00137
00138
bool getMember(
QStringList & args,
QStringList & ret_args);
00139
bool putMember(
QStringList & args);
00140
bool callMember(
QStringList & args,
QStringList & ret_args);
00141
void derefObject(
QStringList & args);
00142
00143
bool usingKIO();
00144
protected:
00145
void setupJava( KJavaProcess* p );
00146
00147 KJavaProcess* process;
00148
00149
protected slots:
00150
void slotJavaRequest(
const QByteArray& qb );
00151
void checkShutdown();
00152
void timerEvent(
QTimerEvent *);
00153
00154
private:
00155 KJavaAppletServerPrivate* d;
00156
00157 };
00158
00159
00160
class PermissionDialog :
public QObject
00161 {
00162 Q_OBJECT
00163
public:
00164 PermissionDialog(
QWidget* );
00165 ~PermissionDialog();
00166
00167
QCString exec(
const QString & cert,
const QString & perm );
00168
00169
private slots:
00170
void clicked();
00171
00172
private:
00173
QCString m_button;
00174 };
00175
00176
#endif // KJAVAAPPLETSERVER_H
This file is part of the documentation for khtml Library Version 3.3.0.