KJavaAppletServer Class Reference
Inheritance diagram for KJavaAppletServer:

Public Member Functions | |
KJavaAppletServer () | |
~KJavaAppletServer () | |
void | createContext (int contextId, KJavaAppletContext *context) |
void | destroyContext (int contextId) |
bool | createApplet (int contextId, int appletId, const QString &name, const QString &clazzName, const QString &baseURL, const QString &user, const QString &password, const QString &authname, const QString &codeBase, const QString &jarFile, QSize size, const QMap< QString, QString > ¶ms, const QString &windowTitle) |
void | initApplet (int contextId, int appletId) |
void | destroyApplet (int contextId, int appletId) |
void | startApplet (int contextId, int appletId) |
void | stopApplet (int contextId, int appletId) |
void | sendURLData (int loaderID, int code, const QByteArray &data) |
void | removeDataJob (int loaderID) |
void | quit () |
KJavaProcess * | javaProcess () |
QString | appletLabel () |
void | waitForReturnData (JSStackFrame *) |
void | endWaitForReturnData () |
bool | getMember (QStringList &args, QStringList &ret_args) |
bool | putMember (QStringList &args) |
bool | callMember (QStringList &args, QStringList &ret_args) |
void | derefObject (QStringList &args) |
bool | usingKIO () |
Static Public Member Functions | |
static KJavaAppletServer * | allocateJavaServer () |
static void | freeJavaServer () |
static QString | getAppletLabel () |
Protected Slots | |
void | slotJavaRequest (const QByteArray &qb) |
void | checkShutdown () |
void | timerEvent (QTimerEvent *) |
Protected Member Functions | |
void | setupJava (KJavaProcess *p) |
Protected Attributes | |
KJavaProcess * | process |
Detailed Description
Definition at line 42 of file kjavaappletserver.h.
Constructor & Destructor Documentation
|
Create the applet server. These shouldn't be used directly, use allocateJavaServer instead Definition at line 133 of file kjavaappletserver.cpp. References QObject::connect(), process, setupJava(), slotJavaRequest(), and KJavaProcess::startJava(). Referenced by allocateJavaServer(). |
Member Function Documentation
|
A factory method that returns the default server. This is the way this class is usually instantiated. Definition at line 174 of file kjavaappletserver.cpp. References KJavaAppletServer(). Referenced by KJavaDownloader::jobCommand(), KJavaAppletContext::KJavaAppletContext(), KJavaDownloader::slotData(), KJavaUploader::slotDataRequest(), KJavaUploader::slotResult(), KJavaDownloader::slotResult(), and KJavaUploader::start(). |
|
When you are done using your reference to the AppletServer, you must dereference it by calling freeJavaServer().
Definition at line 186 of file kjavaappletserver.cpp. References checkShutdown(), KConfigBase::readBoolEntry(), KConfigBase::readNumEntry(), KConfigBase::setGroup(), and QTimer::singleShot(). Referenced by KJavaDownloader::jobCommand(), KJavaDownloader::slotData(), KJavaUploader::slotDataRequest(), KJavaUploader::slotResult(), KJavaDownloader::slotResult(), KJavaUploader::start(), and KJavaAppletContext::~KJavaAppletContext(). |
|
This allows the KJavaAppletWidget to display some feedback in a QLabel while the applet is being loaded. If the java process could not be started, an error message is displayed instead. Definition at line 161 of file kjavaappletserver.cpp. Referenced by KJavaAppletWidget::KJavaAppletWidget(). |
|
Create an applet context with the specified id.
Definition at line 317 of file kjavaappletserver.cpp. References QString::number(), process, and KJavaProcess::send(). Referenced by KJavaAppletContext::KJavaAppletContext(). |
|
Destroy the applet context with the specified id. All the applets in the context will be destroyed as well. Definition at line 329 of file kjavaappletserver.cpp. References QString::number(), process, and KJavaProcess::send(). Referenced by KJavaAppletContext::~KJavaAppletContext(). |
|
Create an applet in the specified context with the specified id. The applet name, class etc. are specified in the same way as in the HTML APPLET tag. Definition at line 340 of file kjavaappletserver.cpp. References QMap::begin(), QMap::count(), QMap::end(), QSize::height(), QString::number(), process, KJavaProcess::send(), and QSize::width(). Referenced by KJavaAppletContext::create(). |
|
This should be called by the KJavaAppletWidget.
Definition at line 398 of file kjavaappletserver.cpp. References QString::number(), process, and KJavaProcess::send(). Referenced by KJavaAppletContext::init(). |
|
Destroy an applet in the specified context with the specified id.
Definition at line 408 of file kjavaappletserver.cpp. References QString::number(), process, and KJavaProcess::send(). Referenced by KJavaAppletContext::destroy(). |
|
Start the specified applet.
Definition at line 418 of file kjavaappletserver.cpp. References QString::number(), process, and KJavaProcess::send(). Referenced by KJavaAppletContext::start(). |
|
Stop the specified applet.
Definition at line 428 of file kjavaappletserver.cpp. References QString::number(), process, and KJavaProcess::send(). Referenced by KJavaAppletContext::stop(). |
|
Send data we got back from a KJavaDownloader back to the appropriate class loader.
Definition at line 438 of file kjavaappletserver.cpp. References QString::number(), process, and KJavaProcess::send(). Referenced by KJavaDownloader::slotData(), KJavaUploader::slotDataRequest(), KJavaUploader::slotResult(), KJavaDownloader::slotResult(), and KJavaUploader::start(). |
|
Removes KJavaDownloader from the list (deletes it too).
Definition at line 447 of file kjavaappletserver.cpp. References QMap::iterator(). Referenced by KJavaDownloader::jobCommand(), KJavaUploader::slotDataRequest(), KJavaUploader::slotResult(), and KJavaDownloader::slotResult(). |
|
Shut down the KJAS server.
Definition at line 456 of file kjavaappletserver.cpp. References KJavaProcess::flushBuffers(), process, KJavaProcess::send(), and KProcess::wait(). Referenced by ~KJavaAppletServer(). |
The documentation for this class was generated from the following files: