khtml Library API Documentation

kjavaappletcontext.h

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., 59 Temple Place - Suite 330, 00021 * Boston, MA 02111-1307, USA. 00022 */ 00023 00024 #ifndef KJAVAAPPLETCONTEXT_H 00025 #define KJAVAAPPLETCONTEXT_H 00026 00027 #include <qobject.h> 00028 00042 class KJavaAppletServer; 00043 class KJavaApplet; 00044 class KJavaAppletContextPrivate; 00045 00046 class KJavaAppletContext : public QObject 00047 { 00048 Q_OBJECT 00049 00050 public: 00051 KJavaAppletContext(); 00052 ~KJavaAppletContext(); 00053 00057 int contextId(); 00058 00062 void setContextId( int id ); 00063 00067 void registerApplet( KJavaApplet* ); 00068 00072 bool create( KJavaApplet* ); 00073 00077 void destroy( KJavaApplet* ); 00078 00082 void init( KJavaApplet* ); 00083 00087 void start( KJavaApplet* ); 00088 00092 void stop( KJavaApplet* ); 00093 00098 void processCmd( QString cmd, QStringList args ); 00099 00103 bool appletsLoaded() const; 00107 bool getMember(QStringList & args, QStringList & ret_args); 00108 bool putMember(QStringList & args); 00109 bool callMember(QStringList & args, QStringList & ret_args); 00110 void derefObject(QStringList & args); 00111 00112 KJavaAppletServer* getServer() const { return server; } 00113 signals: 00117 void showStatus ( const QString& txt ); 00118 00122 void showDocument( const QString& url, const QString& target ); 00123 00127 void appletLoaded(); 00128 00129 protected: 00130 //The counter to generate ID's for the contexts 00131 static int contextCount; 00132 00133 // The applet server this context is attached to. 00134 KJavaAppletServer* server; 00135 00136 protected slots: 00137 void received( const QString& cmd, const QStringList& arg ); 00138 00139 private: 00140 int id; 00141 KJavaAppletContextPrivate* d; 00142 00143 }; 00144 00145 #endif // KJAVAAPPLETCONTEXT_H
KDE Logo
This file is part of the documentation for khtml Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Aug 20 09:50:30 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003