KHTML
kjavaappletserver.cpp
Go to the documentation of this file.
527 //kDebug(6100) << "KJavaAppletServer::slotJavaRequest: "<< QString::fromLocal8Bit( qb.data() + index, sep_pos - index );
633 kDebug(6100) << "Applet State Notification for Applet " << args[0] << ". New state=" << args[1];
735 QAbstractEventDispatcher::instance()->processEvents (QEventLoop::AllEvents | QEventLoop::WaitForMoreEvents);
799 dialogLayout->addWidget( new QLabel( i18n("Do you grant Java applet with certificate(s):"), dialog ) );
803 QSpacerItem* const spacer2 = new QSpacerItem( 20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding );
QString i18n(const char *text)
QString readPathEntry(const QString &pKey, const QString &aDefault) const
bool close()
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
int width() const
QAbstractEventDispatcher * instance(QThread *thread)
bool startJava()
Invoke the JVM with the parameters that have been set.
Definition: kjavaprocess.cpp:76
KSSLValidation validate()
QObject * sender() const
void waitForReturnData(JSStackFrame *)
Definition: kjavaappletserver.cpp:730
void createContext(int contextId, KJavaAppletContext *context)
Create an applet context with the specified id.
Definition: kjavaappletserver.cpp:316
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
static QString getAppletLabel()
This allows the KJavaAppletWidget to display some feedback in a QLabel while the applet is being load...
Definition: kjavaappletserver.cpp:165
QString host() const
void removeDataJob(int loaderID)
Removes KJavaDownloader from the list (deletes it too).
Definition: kjavaappletserver.cpp:452
void push_front(const T &value)
static QDebug kError(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
KConfigGroup group(const QByteArray &group)
QByteArray fromRawData(const char *data, int size)
void stopApplet(int contextId, int appletId)
Stop the specified applet.
Definition: kjavaappletserver.cpp:427
QString join(const QString &separator) const
bool exists() const
QString & remove(int position, int n)
int port() const
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QString getSubject() const
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void setMainClass(const QString &clazzName)
The class to be called when startJava() is called.
Definition: kjavaprocess.cpp:102
Definition: kjavadownloader.h:73
static bool useProxy()
int size() const
KSharedConfigPtr config()
bool isNull() const
void setChain(void *stack_of_x509)
void setSystemProperty(const QString &name, const QString &value)
Set a property on the java command line as -Dname=value, or -Dname if value is QString().
Definition: kjavaprocess.cpp:96
static QString verifyText(KSSLValidation x)
const char * name() const
int indexOf(char ch, int from) const
bool createApplet(int contextId, int appletId, const QString &name, const QString &clazzName, const QString &baseURL, const QString &user, const QString &password, const QString &authname, const QString &codeBase, const QString &jarFile, QSize size, const QMap< QString, QString > ¶ms, const QString &windowTitle)
Create an applet in the specified context with the specified id.
Definition: kjavaappletserver.cpp:339
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
QString number(int n, int base)
int count(const T &value) const
QString fromLocal8Bit(const char *str, int size)
bool exists() const
void append(const T &value)
QString exec(const QString &cert, const QString &perm)
Definition: kjavaappletserver.cpp:786
void send(char cmd_code, const QStringList &args)
Sends a command to the KJAS Applet Server by building a QByteArray out of the data, and then writes it standard out.
Definition: kjavaprocess.cpp:164
void initApplet(int contextId, int appletId)
This should be called by the KJavaAppletWidget.
Definition: kjavaappletserver.cpp:397
bool empty() const
void pop_front()
void derefObject(QStringList &args)
Definition: kjavaappletserver.cpp:773
int toInt(bool *ok, int base) const
bool isEmpty() const
virtual void addItem(QLayoutItem *item)
void setObjectName(const QString &name)
bool isEmpty() const
const char * constData() const
Definition: kjavadownloader.h:53
Definition: kjavaappletserver.h:42
T & first()
iterator end()
void setMargin(int margin)
Definition: kjavaappletserver.h:165
bool cdUp()
iterator begin()
bool isSigner()
void setClasspath(const QString &classpath)
This will set the classpath the Java process will use.
Definition: kjavaprocess.cpp:91
iterator end()
static QString proxyForUrl(const KUrl &url)
bool getMember(QStringList &args, QStringList &ret_args)
Definition: kjavaappletserver.cpp:742
void sendURLData(int loaderID, int code, const QByteArray &data)
Send data we got back from a KJavaDownloader back to the appropriate class loader.
Definition: kjavaappletserver.cpp:443
KGuiItem ok()
const Key key(const T &value) const
void destroyContext(int contextId)
Destroy the applet context with the specified id.
Definition: kjavaappletserver.cpp:328
QString & replace(int position, int n, QChar after)
static KSSLCertificate * fromString(const QByteArray &cert)
int startTimer(int interval)
void endWaitForReturnData()
Definition: kjavaappletserver.cpp:716
QString mid(int position, int n) const
void setJVMPath(const QString &path)
Used to specify the path to the Java executable to be run.
Definition: kjavaprocess.cpp:86
QString dir(const QString &fileClass)
QString absolutePath() const
bool isValid()
QStringList entryList(QFlags< QDir::Filter > filters, QFlags< QDir::SortFlag > sort) const
KGuiItem no()
static bool doesSSLWork()
typedef ConstIterator
int height() const
QString absoluteFilePath(const QString &fileName) const
int length() const
char * data()
void processCmd(QString cmd, QStringList args)
use this for applet call backs, the AppletServer calls this directly.
Definition: kjavaappletcontext.cpp:131
void startApplet(int contextId, int appletId)
Start the specified applet.
Definition: kjavaappletserver.cpp:417
void prepend(const T &value)
Definition: kjavaappletcontext.h:45
virtual bool processEvents(QFlags< QEventLoop::ProcessEventsFlag > flags)=0
static void freeJavaServer()
When you are done using your reference to the AppletServer, you must dereference it by calling freeJa...
Definition: kjavaappletserver.cpp:190
bool callMember(QStringList &args, QStringList &ret_args)
Definition: kjavaappletserver.cpp:763
int size() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
void slotJavaRequest(const QByteArray &qb)
Definition: kjavaappletserver.cpp:469
void setExtraArgs(const QString &args)
Extra flags passed to the JVM.
Definition: kjavaprocess.cpp:107
Definition: kjavaprocess.h:41
void setDefault(bool)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
T readEntry(const QString &key, const T &aDefault) const
KGuiItem yes()
int count(const Key &key) const
iterator begin()
static KJavaAppletServer * allocateJavaServer()
A factory method that returns the default server.
Definition: kjavaappletserver.cpp:178
void setHeightForWidth(bool dependent)
void destroyApplet(int contextId, int appletId)
Destroy an applet in the specified context with the specified id.
Definition: kjavaappletserver.cpp:407
void addLayout(QLayout *layout, int stretch)
virtual bool unregisterTimers(QObject *object)=0
const T value(const Key &key) const
singleShot
bool waitForFinished(int msecs)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.