khtml Library API Documentation

KJavaAppletContext Class Reference

Inheritance diagram for KJavaAppletContext:

QObject List of all members.

Signals

void showStatus (const QString &txt)
void showDocument (const QString &url, const QString &target)
void appletLoaded ()

Public Member Functions

 KJavaAppletContext ()
 ~KJavaAppletContext ()
int contextId ()
void setContextId (int id)
void registerApplet (KJavaApplet *)
bool create (KJavaApplet *)
void destroy (KJavaApplet *)
void init (KJavaApplet *)
void start (KJavaApplet *)
void stop (KJavaApplet *)
void processCmd (QString cmd, QStringList args)
bool getMember (QStringList &args, QStringList &ret_args)
bool putMember (QStringList &args)
bool callMember (QStringList &args, QStringList &ret_args)
void derefObject (QStringList &args)
KJavaAppletServergetServer () const

Protected Slots

void received (const QString &cmd, const QStringList &arg)
void javaProcessExited (int)

Protected Attributes

KJavaAppletServerserver

Static Protected Attributes

static int contextCount = 0

Detailed Description

Definition at line 45 of file kjavaappletcontext.h.


Member Function Documentation

int KJavaAppletContext::contextId  ) 
 

Returns the ID of this context.

Definition at line 72 of file kjavaappletcontext.cpp.

void KJavaAppletContext::setContextId int  id  ) 
 

Sets the ID of this context.

Definition at line 77 of file kjavaappletcontext.cpp.

void KJavaAppletContext::registerApplet KJavaApplet  ) 
 

registers applet

Definition at line 82 of file kjavaappletcontext.cpp.

References KJavaApplet::setAppletId().

Referenced by KJavaApplet::setAppletContext().

bool KJavaAppletContext::create KJavaApplet  ) 
 

Sends a message to create the applet.

Definition at line 90 of file kjavaappletcontext.cpp.

References KJavaApplet::appletClass(), KJavaApplet::appletId(), KJavaApplet::appletName(), KJavaApplet::archives(), KJavaApplet::authName(), KJavaApplet::baseURL(), KJavaApplet::codeBase(), KJavaAppletServer::createApplet(), KJavaApplet::getParams(), KJavaApplet::getWindowName(), KJavaApplet::password(), server, KJavaApplet::size(), and KJavaApplet::user().

Referenced by KJavaApplet::create().

void KJavaAppletContext::destroy KJavaApplet  ) 
 

Sends a message to destroy the applet.

Definition at line 108 of file kjavaappletcontext.cpp.

References KJavaApplet::appletId(), KJavaAppletServer::destroyApplet(), and server.

Referenced by KJavaApplet::~KJavaApplet().

void KJavaAppletContext::init KJavaApplet  ) 
 

Sends a message to initialize the applet.

Definition at line 116 of file kjavaappletcontext.cpp.

References KJavaApplet::appletId(), KJavaAppletServer::initApplet(), and server.

Referenced by KJavaApplet::init().

void KJavaAppletContext::start KJavaApplet  ) 
 

Sends a message to start the applet.

Definition at line 121 of file kjavaappletcontext.cpp.

References KJavaApplet::appletId(), server, and KJavaAppletServer::startApplet().

Referenced by KJavaApplet::start().

void KJavaAppletContext::stop KJavaApplet  ) 
 

Sends a message to stop the applet.

Definition at line 126 of file kjavaappletcontext.cpp.

References KJavaApplet::appletId(), server, and KJavaAppletServer::stopApplet().

Referenced by KJavaApplet::stop().

void KJavaAppletContext::processCmd QString  cmd,
QStringList  args
 

use this for applet call backs, the AppletServer calls this directly.

Definition at line 131 of file kjavaappletcontext.cpp.

References received().

Referenced by KJavaAppletServer::slotJavaRequest().

bool KJavaAppletContext::getMember QStringList args,
QStringList ret_args
 

LiveConnect functions.

Definition at line 254 of file kjavaappletcontext.cpp.

References KJavaAppletServer::getMember(), QString::number(), and server.

Referenced by KJavaAppletViewerLiveConnectExtension::get().

void KJavaAppletContext::showStatus const QString txt  )  [signal]
 

Signals the KHMTL Part to show this as the status message.

Referenced by received().

void KJavaAppletContext::showDocument const QString url,
const QString target
[signal]
 

Signals the KHTML Part to show a url in a given target.

Referenced by received().

void KJavaAppletContext::appletLoaded  )  [signal]
 

Signals the KHTML Part an applet is loaded.

Referenced by javaProcessExited(), and received().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for khtml Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Jan 23 19:35:52 2006 by doxygen 1.4.3 written by Dimitri van Heesch, © 1997-2003