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

KHTML

kjavaappletcontext.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 
00003 /* This file is part of the KDE project
00004  *
00005  * Copyright (C) 2000 Richard Moore <rich@kde.org>
00006  *               2000 Wynn Wilkes <wynnw@caldera.com>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Library General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 2 of the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Library General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Library General Public License
00019  * along with this library; see the file COPYING.LIB.  If not, write to
00020  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021  * Boston, MA 02110-1301, USA.
00022  */
00023 
00024 #ifndef KJAVAAPPLETCONTEXT_H
00025 #define KJAVAAPPLETCONTEXT_H
00026 
00027 #include <qobject.h>
00028 
00041 class KJavaAppletServer;
00042 class KJavaApplet;
00043 class KJavaAppletContextPrivate;
00044 
00045 class KJavaAppletContext : public QObject
00046 {
00047 Q_OBJECT
00048 
00049 public:
00050     KJavaAppletContext();
00051     ~KJavaAppletContext();
00052 
00056     int  contextId();
00057 
00061     void setContextId( int id );
00062 
00066     void registerApplet( KJavaApplet* );
00067 
00071     bool create( KJavaApplet* );
00072 
00076     void destroy( KJavaApplet* );
00077 
00081     void init( KJavaApplet* );
00082 
00086     void start( KJavaApplet* );
00087 
00091     void stop( KJavaApplet* );
00092 
00097     void processCmd( QString cmd, QStringList args );
00098 
00102     bool getMember(QStringList & args, QStringList & ret_args);
00103     bool putMember(QStringList & args);
00104     bool callMember(QStringList & args, QStringList & ret_args);
00105     void derefObject(QStringList & args);
00106 
00107     KJavaAppletServer* getServer() const { return server; }
00108 signals:
00112     void showStatus  ( const QString& txt );
00113 
00117     void showDocument( const QString& url, const QString& target );
00118 
00122     void appletLoaded();
00123 
00124 protected:
00125     //The counter to generate ID's for the contexts
00126     static int contextCount;
00127 
00128     // The applet server this context is attached to.
00129     KJavaAppletServer* server;
00130 
00131 protected slots:
00132     void received( const QString& cmd, const QStringList& arg );
00133     void javaProcessExited(int);
00134 
00135 private:
00136     int id;
00137     KJavaAppletContextPrivate* d;
00138 
00139 };
00140 
00141 #endif // KJAVAAPPLETCONTEXT_H

KHTML

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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