• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KHTML

  • khtml
  • java
kjavaappletcontext.h
Go to the documentation of this file.
1// -*- c++ -*-
2
3/* This file is part of the KDE project
4 *
5 * Copyright (C) 2000 Richard Moore <rich@kde.org>
6 * 2000 Wynn Wilkes <wynnw@caldera.com>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
17 *
18 * You should have received a copy of the GNU Library General Public License
19 * along with this library; see the file COPYING.LIB. If not, write to
20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
22 */
23
24#ifndef KJAVAAPPLETCONTEXT_H
25#define KJAVAAPPLETCONTEXT_H
26
27#include <QtCore/QObject>
28
41class KJavaAppletServer;
42class KJavaApplet;
43class KJavaAppletContextPrivate;
44
45class KJavaAppletContext : public QObject
46{
47Q_OBJECT
48
49public:
50 KJavaAppletContext();
51 ~KJavaAppletContext();
52
56 int contextId();
57
61 void setContextId( int id );
62
66 void registerApplet( KJavaApplet* );
67
71 bool create( KJavaApplet* );
72
76 void destroy( KJavaApplet* );
77
81 void init( KJavaApplet* );
82
86 void start( KJavaApplet* );
87
91 void stop( KJavaApplet* );
92
97 void processCmd( QString cmd, QStringList args );
98
102 bool getMember(QStringList & args, QStringList & ret_args);
103 bool putMember(QStringList & args);
104 bool callMember(QStringList & args, QStringList & ret_args);
105 void derefObject(QStringList & args);
106
107 KJavaAppletServer* getServer() const { return server; }
108Q_SIGNALS:
112 void showStatus ( const QString& txt );
113
117 void showDocument( const QString& url, const QString& target );
118
122 void appletLoaded();
123
124protected:
125 //The counter to generate ID's for the contexts
126 static int contextCount;
127
128 // The applet server this context is attached to.
129 KJavaAppletServer* server;
130
131protected Q_SLOTS:
132 void received( const QString& cmd, const QStringList& arg );
133 void javaProcessExited(int);
134
135private:
136 int id;
137 KJavaAppletContextPrivate* const d;
138
139};
140
141#endif // KJAVAAPPLETCONTEXT_H
KJavaAppletContext
Definition: kjavaappletcontext.h:46
KJavaAppletContext::showDocument
void showDocument(const QString &url, const QString &target)
Signals the KHTML Part to show a url in a given target.
KJavaAppletContext::start
void start(KJavaApplet *)
Sends a message to start the applet.
Definition: kjavaappletcontext.cpp:121
KJavaAppletContext::putMember
bool putMember(QStringList &args)
Definition: kjavaappletcontext.cpp:259
KJavaAppletContext::getServer
KJavaAppletServer * getServer() const
Definition: kjavaappletcontext.h:107
KJavaAppletContext::contextCount
static int contextCount
Definition: kjavaappletcontext.h:126
KJavaAppletContext::~KJavaAppletContext
~KJavaAppletContext()
Definition: kjavaappletcontext.cpp:65
KJavaAppletContext::callMember
bool callMember(QStringList &args, QStringList &ret_args)
Definition: kjavaappletcontext.cpp:264
KJavaAppletContext::destroy
void destroy(KJavaApplet *)
Sends a message to destroy the applet.
Definition: kjavaappletcontext.cpp:108
KJavaAppletContext::javaProcessExited
void javaProcessExited(int)
Definition: kjavaappletcontext.cpp:243
KJavaAppletContext::create
bool create(KJavaApplet *)
Sends a message to create the applet.
Definition: kjavaappletcontext.cpp:90
KJavaAppletContext::registerApplet
void registerApplet(KJavaApplet *)
registers applet
Definition: kjavaappletcontext.cpp:82
KJavaAppletContext::appletLoaded
void appletLoaded()
Signals the KHTML Part an applet is loaded.
KJavaAppletContext::KJavaAppletContext
KJavaAppletContext()
Definition: kjavaappletcontext.cpp:52
KJavaAppletContext::derefObject
void derefObject(QStringList &args)
Definition: kjavaappletcontext.cpp:269
KJavaAppletContext::contextId
int contextId()
Returns the ID of this context.
Definition: kjavaappletcontext.cpp:72
KJavaAppletContext::setContextId
void setContextId(int id)
Sets the ID of this context.
Definition: kjavaappletcontext.cpp:77
KJavaAppletContext::init
void init(KJavaApplet *)
Sends a message to initialize the applet.
Definition: kjavaappletcontext.cpp:116
KJavaAppletContext::received
void received(const QString &cmd, const QStringList &arg)
Definition: kjavaappletcontext.cpp:136
KJavaAppletContext::processCmd
void processCmd(QString cmd, QStringList args)
use this for applet call backs, the AppletServer calls this directly.
Definition: kjavaappletcontext.cpp:131
KJavaAppletContext::stop
void stop(KJavaApplet *)
Sends a message to stop the applet.
Definition: kjavaappletcontext.cpp:126
KJavaAppletContext::getMember
bool getMember(QStringList &args, QStringList &ret_args)
LiveConnect functions.
Definition: kjavaappletcontext.cpp:254
KJavaAppletContext::server
KJavaAppletServer * server
Definition: kjavaappletcontext.h:129
KJavaAppletContext::showStatus
void showStatus(const QString &txt)
Signals the KHMTL Part to show this as the status message.
KJavaAppletServer
Definition: kjavaappletserver.h:43
KJavaApplet
Definition: kjavaapplet.h:51
QObject
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal