• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KHTML

KJavaAppletServer Class Reference

#include <kjavaappletserver.h>

Inheritance diagram for KJavaAppletServer:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 42 of file kjavaappletserver.h.


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 > &params, 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 showConsole ()
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 *)
void killTimers ()

Protected Member Functions

void setupJava (KJavaProcess *p)

Protected Attributes

KJavaProcess * process

Constructor & Destructor Documentation

KJavaAppletServer::KJavaAppletServer (  ) 

Create the applet server.

These shouldn't be used directly, use allocateJavaServer instead

Definition at line 136 of file kjavaappletserver.cpp.

KJavaAppletServer::~KJavaAppletServer (  ) 

Definition at line 156 of file kjavaappletserver.cpp.


Member Function Documentation

KJavaAppletServer * KJavaAppletServer::allocateJavaServer (  )  [static]

A factory method that returns the default server.

This is the way this class is usually instantiated.

Definition at line 177 of file kjavaappletserver.cpp.

void KJavaAppletServer::freeJavaServer (  )  [static]

When you are done using your reference to the AppletServer, you must dereference it by calling freeJavaServer().

Definition at line 189 of file kjavaappletserver.cpp.

QString KJavaAppletServer::getAppletLabel (  )  [static]

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 164 of file kjavaappletserver.cpp.

void KJavaAppletServer::createContext ( int  contextId,
KJavaAppletContext *  context 
)

Create an applet context with the specified id.

Definition at line 315 of file kjavaappletserver.cpp.

void KJavaAppletServer::destroyContext ( int  contextId  ) 

Destroy the applet context with the specified id.

All the applets in the context will be destroyed as well.

Definition at line 327 of file kjavaappletserver.cpp.

bool KJavaAppletServer::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 > &  params,
const QString &  windowTitle 
)

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 338 of file kjavaappletserver.cpp.

void KJavaAppletServer::initApplet ( int  contextId,
int  appletId 
)

This should be called by the KJavaAppletWidget.

Definition at line 396 of file kjavaappletserver.cpp.

void KJavaAppletServer::destroyApplet ( int  contextId,
int  appletId 
)

Destroy an applet in the specified context with the specified id.

Definition at line 406 of file kjavaappletserver.cpp.

void KJavaAppletServer::startApplet ( int  contextId,
int  appletId 
)

Start the specified applet.

Definition at line 416 of file kjavaappletserver.cpp.

void KJavaAppletServer::stopApplet ( int  contextId,
int  appletId 
)

Stop the specified applet.

Definition at line 426 of file kjavaappletserver.cpp.

void KJavaAppletServer::showConsole (  ) 

Show java console.

Definition at line 436 of file kjavaappletserver.cpp.

void KJavaAppletServer::sendURLData ( int  loaderID,
int  code,
const QByteArray &  data 
)

Send data we got back from a KJavaDownloader back to the appropriate class loader.

Definition at line 442 of file kjavaappletserver.cpp.

void KJavaAppletServer::removeDataJob ( int  loaderID  ) 

Removes KJavaDownloader from the list (deletes it too).

Definition at line 451 of file kjavaappletserver.cpp.

void KJavaAppletServer::quit (  ) 

Shut down the KJAS server.

Definition at line 460 of file kjavaappletserver.cpp.

KJavaProcess* KJavaAppletServer::javaProcess (  )  [inline]

Definition at line 135 of file kjavaappletserver.h.

QString KJavaAppletServer::appletLabel (  ) 

Definition at line 172 of file kjavaappletserver.cpp.

void KJavaAppletServer::waitForReturnData ( JSStackFrame *  frame  ) 

Definition at line 727 of file kjavaappletserver.cpp.

void KJavaAppletServer::endWaitForReturnData (  ) 

Definition at line 713 of file kjavaappletserver.cpp.

bool KJavaAppletServer::getMember ( QStringList &  args,
QStringList &  ret_args 
)

Definition at line 739 of file kjavaappletserver.cpp.

bool KJavaAppletServer::putMember ( QStringList &  args  ) 

Definition at line 749 of file kjavaappletserver.cpp.

bool KJavaAppletServer::callMember ( QStringList &  args,
QStringList &  ret_args 
)

Definition at line 760 of file kjavaappletserver.cpp.

void KJavaAppletServer::derefObject ( QStringList &  args  ) 

Definition at line 770 of file kjavaappletserver.cpp.

bool KJavaAppletServer::usingKIO (  ) 

Definition at line 774 of file kjavaappletserver.cpp.

void KJavaAppletServer::setupJava ( KJavaProcess *  p  )  [protected]

Definition at line 217 of file kjavaappletserver.cpp.

void KJavaAppletServer::slotJavaRequest ( const QByteArray &  qb  )  [protected, slot]

Definition at line 468 of file kjavaappletserver.cpp.

void KJavaAppletServer::checkShutdown (  )  [protected, slot]

Definition at line 208 of file kjavaappletserver.cpp.

void KJavaAppletServer::timerEvent ( QTimerEvent *   )  [protected, slot]

Reimplemented from QObject.

Definition at line 722 of file kjavaappletserver.cpp.

void KJavaAppletServer::killTimers (  )  [protected, slot]

Definition at line 708 of file kjavaappletserver.cpp.


Member Data Documentation

KJavaProcess* KJavaAppletServer::process [protected]

Definition at line 151 of file kjavaappletserver.h.


The documentation for this class was generated from the following files:
  • kjavaappletserver.h
  • kjavaappletserver.cpp

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   WTF
  • KJSEmbed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  •   core
  • Phonon
  •   Backend
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal