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
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 void createApplet( int contextId, int appletId,
00089 const QString name, const QString clazzName,
00090 const QString baseURL, const QString codeBase,
00091 const QString jarFile, QSize size,
00092 const QMap<QString, QString>& params,
00093 const QString windowTitle );
00094
00098 void initApplet( int contextId, int appletId );
00099
00103 void destroyApplet( int contextId, int appletId );
00104
00108 void startApplet( int contextId, int appletId );
00109
00113 void stopApplet( int contextId, int appletId );
00114
00120 void sendURLData( const QString& loaderID, const QString& url,
00121 const QByteArray& data );
00122
00126 void quit();
00127
00128 QString appletLabel();
00129
00130 bool getMember(int contextId, int appletId, const unsigned long, const QString &, int &, unsigned long &, QString &);
00131 bool putMember(int contextId, int appletId, const unsigned long, const QString &, const QString &);
00132 bool callMember(int contextId, int appletId, const unsigned long, const QString &, const QStringList &, int &, unsigned long &, QString &);
00133 void derefObject(int contextId, int appletId, const unsigned long id);
00134 protected:
00135 void setupJava( KJavaProcess* p );
00136
00137 KJavaProcess* process;
00138
00139 protected slots:
00140 void slotJavaRequest( const QByteArray& qb );
00141 void checkShutdown();
00142
00143 private:
00144 KJavaAppletServerPrivate* d;
00145
00146 };
00147
00148 #endif // KJAVAAPPLETSERVER_H
This file is part of the documentation for kdelibs Version 3.1.0.