• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.5 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 
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 11:51:04 by doxygen 1.8.1.1 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.10.5 API Reference

Skip menu "kdelibs-4.10.5 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