.TH "KJavaAppletServer" kde3 "11 Jun 2005" "Version Version 3.4.1" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KJavaAppletServer \- Communicates with a KJAS server to display and control Java applets.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kjavaappletserver.h>\fP
.PP
Inherits \fBQObject\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKJavaAppletServer\fP ()"
.br
.ti -1c
.RI "void \fBcreateContext\fP (int contextId, \fBKJavaAppletContext\fP *context)"
.br
.ti -1c
.RI "void \fBdestroyContext\fP (int contextId)"
.br
.ti -1c
.RI "bool \fBcreateApplet\fP (int contextId, int appletId, const \fBQString\fP &\fBname\fP, const \fBQString\fP &clazzName, const \fBQString\fP &baseURL, const \fBQString\fP &user, const \fBQString\fP &password, const \fBQString\fP &authname, const \fBQString\fP &codeBase, const \fBQString\fP &jarFile, \fBQSize\fP size, const \fBQMap\fP< \fBQString\fP, \fBQString\fP > &params, const \fBQString\fP &windowTitle)"
.br
.ti -1c
.RI "void \fBinitApplet\fP (int contextId, int appletId)"
.br
.ti -1c
.RI "void \fBdestroyApplet\fP (int contextId, int appletId)"
.br
.ti -1c
.RI "void \fBstartApplet\fP (int contextId, int appletId)"
.br
.ti -1c
.RI "void \fBstopApplet\fP (int contextId, int appletId)"
.br
.ti -1c
.RI "void \fBsendURLData\fP (int loaderID, int code, const \fBQByteArray\fP &data)"
.br
.ti -1c
.RI "void \fBremoveDataJob\fP (int loaderID)"
.br
.ti -1c
.RI "void \fBquit\fP ()"
.br
.ti -1c
.RI "\fBKJavaProcess\fP * \fBjavaProcess\fP ()"
.br
.ti -1c
.RI "\fBQString\fP \fBappletLabel\fP ()"
.br
.ti -1c
.RI "void \fBwaitForReturnData\fP (JSStackFrame *)"
.br
.ti -1c
.RI "void \fBendWaitForReturnData\fP ()"
.br
.ti -1c
.RI "bool \fBgetMember\fP (\fBQStringList\fP &args, \fBQStringList\fP &ret_args)"
.br
.ti -1c
.RI "bool \fBputMember\fP (\fBQStringList\fP &args)"
.br
.ti -1c
.RI "bool \fBcallMember\fP (\fBQStringList\fP &args, \fBQStringList\fP &ret_args)"
.br
.ti -1c
.RI "void \fBderefObject\fP (\fBQStringList\fP &args)"
.br
.ti -1c
.RI "bool \fBusingKIO\fP ()"
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static \fBKJavaAppletServer\fP * \fBallocateJavaServer\fP ()"
.br
.ti -1c
.RI "static void \fBfreeJavaServer\fP ()"
.br
.ti -1c
.RI "static \fBQString\fP \fBgetAppletLabel\fP ()"
.br
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "void \fBslotJavaRequest\fP (const \fBQByteArray\fP &qb)"
.br
.ti -1c
.RI "void \fBcheckShutdown\fP ()"
.br
.ti -1c
.RI "void \fBtimerEvent\fP (\fBQTimerEvent\fP *)"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBsetupJava\fP (\fBKJavaProcess\fP *p)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "\fBKJavaProcess\fP * \fBprocess\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Communicates with a KJAS server to display and control Java applets. 

\fBAuthor:\fP
.RS 4
Richard J. Moore, rich@kde.org 
.RE
.PP

.PP
Definition at line 42 of file kjavaappletserver.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KJavaAppletServer::KJavaAppletServer ()"
.PP
Create the applet server. 
.PP
These shouldn't be used directly, use allocateJavaServer instead 
.PP
Definition at line 133 of file kjavaappletserver.cpp.
.PP
References QObject::connect(), and KJavaProcess::startJava().
.PP
Referenced by allocateJavaServer().
.SH "Member Function Documentation"
.PP 
.SS "\fBKJavaAppletServer\fP * KJavaAppletServer::allocateJavaServer ()\fC [static]\fP"
.PP
A factory method that returns the default server. 
.PP
This is the way this class is usually instantiated. 
.PP
Definition at line 174 of file kjavaappletserver.cpp.
.PP
References d, and KJavaAppletServer().
.SS "void KJavaAppletServer::freeJavaServer ()\fC [static]\fP"
.PP
When you are done using your reference to the AppletServer, you must dereference it by calling \fBfreeJavaServer()\fP. 
.PP
Definition at line 186 of file kjavaappletserver.cpp.
.PP
References KConfigBase::readBoolEntry(), KConfigBase::readNumEntry(), KConfigBase::setGroup(), and QTimer::singleShot().
.SS "\fBQString\fP KJavaAppletServer::getAppletLabel ()\fC [static]\fP"
.PP
This allows the \fBKJavaAppletWidget\fP to display some feedback in a \fBQLabel\fP while the applet is being loaded. 
.PP
If the java process could not be started, an error message is displayed instead. 
.PP
Definition at line 161 of file kjavaappletserver.cpp.
.SS "void KJavaAppletServer::createContext (int contextId, \fBKJavaAppletContext\fP * context)"
.PP
Create an applet context with the specified id. 
.PP
Definition at line 317 of file kjavaappletserver.cpp.
.PP
References KJavaProcess::send().
.SS "void KJavaAppletServer::destroyContext (int contextId)"
.PP
Destroy the applet context with the specified id. 
.PP
All the applets in the context will be destroyed as well. 
.PP
Definition at line 329 of file kjavaappletserver.cpp.
.PP
References KJavaProcess::send().
.SS "bool KJavaAppletServer::createApplet (int contextId, int appletId, const \fBQString\fP & name, const \fBQString\fP & clazzName, const \fBQString\fP & baseURL, const \fBQString\fP & user, const \fBQString\fP & password, const \fBQString\fP & authname, const \fBQString\fP & codeBase, const \fBQString\fP & jarFile, \fBQSize\fP size, const \fBQMap\fP< \fBQString\fP, \fBQString\fP > & params, const \fBQString\fP & windowTitle)"
.PP
Create an applet in the specified context with the specified id. 
.PP
The applet name, class etc. are specified in the same way as in the HTML APPLET tag. 
.PP
Definition at line 340 of file kjavaappletserver.cpp.
.PP
References QSize::height(), KJavaProcess::send(), and QSize::width().
.PP
Referenced by KJavaAppletContext::create().
.SS "void KJavaAppletServer::initApplet (int contextId, int appletId)"
.PP
This should be called by the \fBKJavaAppletWidget\fP. 
.PP
Definition at line 398 of file kjavaappletserver.cpp.
.PP
References KJavaProcess::send().
.PP
Referenced by KJavaAppletContext::init().
.SS "void KJavaAppletServer::destroyApplet (int contextId, int appletId)"
.PP
Destroy an applet in the specified context with the specified id. 
.PP
Definition at line 408 of file kjavaappletserver.cpp.
.PP
References KJavaProcess::send().
.PP
Referenced by KJavaAppletContext::destroy().
.SS "void KJavaAppletServer::startApplet (int contextId, int appletId)"
.PP
Start the specified applet. 
.PP
Definition at line 418 of file kjavaappletserver.cpp.
.PP
References KJavaProcess::send().
.PP
Referenced by KJavaAppletContext::start().
.SS "void KJavaAppletServer::stopApplet (int contextId, int appletId)"
.PP
Stop the specified applet. 
.PP
Definition at line 428 of file kjavaappletserver.cpp.
.PP
References KJavaProcess::send().
.PP
Referenced by KJavaAppletContext::stop().
.SS "void KJavaAppletServer::sendURLData (int loaderID, int code, const \fBQByteArray\fP & data)"
.PP
Send data we got back from a KJavaDownloader back to the appropriate class loader. 
.PP
Definition at line 438 of file kjavaappletserver.cpp.
.PP
References KJavaProcess::send().
.SS "void KJavaAppletServer::removeDataJob (int loaderID)"
.PP
Removes KJavaDownloader from the list (deletes it too). 
.PP
Definition at line 447 of file kjavaappletserver.cpp.
.PP
References QObject::deleteLater().
.SS "void KJavaAppletServer::quit ()"
.PP
Shut down the KJAS server. 
.PP
Definition at line 456 of file kjavaappletserver.cpp.
.PP
References KJavaProcess::flushBuffers(), KJavaProcess::send(), and KProcess::wait().

.SH "Author"
.PP 
Generated automatically by Doxygen for khtml Library from the source code.
