kjavaappletcontext.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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(KJavaApplet *, const unsigned long, const QString &, int &, unsigned long &, QString &);
00108 bool putMember(KJavaApplet *, const unsigned long, const QString &, const QString &);
00109 bool callMember(KJavaApplet *, const unsigned long, const QString &, const QStringList &, int &, unsigned long &, QString &);
00110 void derefObject(KJavaApplet *, const unsigned long id);
00111
00112 signals:
00116 void showStatus ( const QString& txt );
00117
00121 void showDocument( const QString& url, const QString& target );
00122
00126 void appletLoaded();
00127
00128 protected:
00129
00130 static int contextCount;
00131
00132
00133 KJavaAppletServer* server;
00134
00135 protected slots:
00136 void received( const QString& cmd, const QStringList& arg );
00137
00138 private:
00139 int id;
00140 KJavaAppletContextPrivate* d;
00141
00142 };
00143
00144 #endif // KJAVAAPPLETCONTEXT_H
This file is part of the documentation for kdelibs Version 3.1.5.