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

KHTML

  • sources
  • kde-4.12
  • kdelibs
  • 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 
41 class KJavaAppletServer;
42 class KJavaApplet;
43 class KJavaAppletContextPrivate;
44 
45 class KJavaAppletContext : public QObject
46 {
47 Q_OBJECT
48 
49 public:
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; }
108 Q_SIGNALS:
112  void showStatus ( const QString& txt );
113 
117  void showDocument( const QString& url, const QString& target );
118 
122  void appletLoaded();
123 
124 protected:
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 
131 protected Q_SLOTS:
132  void received( const QString& cmd, const QStringList& arg );
133  void javaProcessExited(int);
134 
135 private:
136  int id;
137  KJavaAppletContextPrivate* const d;
138 
139 };
140 
141 #endif // KJAVAAPPLETCONTEXT_H
KJavaAppletContext::appletLoaded
void appletLoaded()
Signals the KHTML Part an applet is loaded.
KJavaAppletContext::getServer
KJavaAppletServer * getServer() const
Definition: kjavaappletcontext.h:107
KJavaAppletContext::javaProcessExited
void javaProcessExited(int)
Definition: kjavaappletcontext.cpp:243
KJavaAppletContext::contextCount
static int contextCount
Definition: kjavaappletcontext.h:126
KJavaAppletContext::received
void received(const QString &cmd, const QStringList &arg)
Definition: kjavaappletcontext.cpp:136
KJavaAppletContext::setContextId
void setContextId(int id)
Sets the ID of this context.
Definition: kjavaappletcontext.cpp:77
KJavaAppletContext::stop
void stop(KJavaApplet *)
Sends a message to stop the applet.
Definition: kjavaappletcontext.cpp:126
QString
QObject
KJavaAppletContext::start
void start(KJavaApplet *)
Sends a message to start the applet.
Definition: kjavaappletcontext.cpp:121
KJavaAppletContext::server
KJavaAppletServer * server
Definition: kjavaappletcontext.h:129
KJavaApplet
Definition: kjavaapplet.h:50
KJavaAppletContext::destroy
void destroy(KJavaApplet *)
Sends a message to destroy the applet.
Definition: kjavaappletcontext.cpp:108
KJavaAppletContext::putMember
bool putMember(QStringList &args)
Definition: kjavaappletcontext.cpp:259
QStringList
KJavaAppletServer
Definition: kjavaappletserver.h:42
KJavaAppletContext::derefObject
void derefObject(QStringList &args)
Definition: kjavaappletcontext.cpp:269
KJavaAppletContext::showDocument
void showDocument(const QString &url, const QString &target)
Signals the KHTML Part to show a url in a given target.
KJavaAppletContext::init
void init(KJavaApplet *)
Sends a message to initialize the applet.
Definition: kjavaappletcontext.cpp:116
KJavaAppletContext::getMember
bool getMember(QStringList &args, QStringList &ret_args)
LiveConnect functions.
Definition: kjavaappletcontext.cpp:254
KJavaAppletContext::~KJavaAppletContext
~KJavaAppletContext()
Definition: kjavaappletcontext.cpp:65
KJavaAppletContext::contextId
int contextId()
Returns the ID of this context.
Definition: kjavaappletcontext.cpp:72
KJavaAppletContext::processCmd
void processCmd(QString cmd, QStringList args)
use this for applet call backs, the AppletServer calls this directly.
Definition: kjavaappletcontext.cpp:131
KJavaAppletContext::KJavaAppletContext
KJavaAppletContext()
Definition: kjavaappletcontext.cpp:52
KJavaAppletContext::callMember
bool callMember(QStringList &args, QStringList &ret_args)
Definition: kjavaappletcontext.cpp:264
KJavaAppletContext
Definition: kjavaappletcontext.h:45
KJavaAppletContext::create
bool create(KJavaApplet *)
Sends a message to create the applet.
Definition: kjavaappletcontext.cpp:90
KJavaAppletContext::showStatus
void showStatus(const QString &txt)
Signals the KHMTL Part to show this as the status message.
KJavaAppletContext::registerApplet
void registerApplet(KJavaApplet *)
registers applet
Definition: kjavaappletcontext.cpp:82
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:21 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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