Commit 11e0da0e authored by kocienda's avatar kocienda

Added a bunch of extra declarations, includes, etc. in the process

of getting khtml/dom to compile


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@25 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d9f72709
......@@ -26,6 +26,11 @@
#ifndef QCSTRING_H_
#define QCSTRING_H_
// added to help in compilation of khtml/khtml_part.h:811
#include "qarray.h"
// added to help in compilation of khtml/dom/html_documnent.cpp:182
class QCString {
};
#endif
......@@ -26,4 +26,14 @@
#ifndef DCOPCLIENT_H_
#define DCOPCLIENT_H_
class QCString;
class QByteArray;
// KApplication needs this
class DCOPClient {
public:
bool call(const QCString &remApp, const QCString &remObj, const QCString &remFun, const QByteArray &data,
QCString& replyType, QByteArray &replyData, bool useEventLoop=false, bool fast=false);
};
#endif
......@@ -26,4 +26,13 @@
#ifndef QEVENT_H_
#define QEVENT_H_
// all the following events added to support khtmlview.h
class QEvent {};
class QFocusEvent : public QEvent {};
class QHideEvent : public QEvent {};
class QKeyEvent : public QEvent {};
class QResizeEvent : public QEvent {};
class QShowEvent : public QEvent {};
class QWheelEvent : public QEvent {};
#endif
......@@ -26,4 +26,12 @@
#ifndef JOB_H_
#define JOB_H_
// added to help in compilation of khtml/khtml_part.h:867
namespace KIO {
class Job {
};
}
#endif
......@@ -26,4 +26,24 @@
#ifndef BROWSEREXTENSION_H_
#define BROWSEREXTENSION_H_
// Added for compilation of khtml/dom/html_document.cpp:184
#include <qdatastream.h>
// Added for compilation of khtml/khtml_part.h:734
class QPoint;
// Added for compilation of khtml/khtml_part.h:755
class QEvent;
namespace KParts {
// Added for compilation of khtml/khtml_part.h:695
struct URLArgs {
};
class BrowserExtension {
};
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QMAP_H_
#define QMAP_H_
template <class K, class T> class QMap {
};
#endif
......@@ -26,6 +26,10 @@
#ifndef QOBJECT_H_
#define QOBJECT_H_
// includes added to help in compilation of khtml/khtmlview.h
#include "qobjectdefs.h"
#include "qevent.h"
// FIXME: should these macros be in "kwq.h" or other header file?
#define slots
#define SLOT(x) x
......
......@@ -26,4 +26,7 @@
#ifndef QREGEXP_H_
#define QREGEXP_H_
class QRegExp {
};
#endif
......@@ -26,4 +26,14 @@
#ifndef DCOPCLIENT_H_
#define DCOPCLIENT_H_
class QCString;
class QByteArray;
// KApplication needs this
class DCOPClient {
public:
bool call(const QCString &remApp, const QCString &remObj, const QCString &remFun, const QByteArray &data,
QCString& replyType, QByteArray &replyData, bool useEventLoop=false, bool fast=false);
};
#endif
......@@ -26,4 +26,17 @@
#ifndef KAPP_H_
#define KAPP_H_
#include <dcopclient.h>
#define kapp KApplication::kApplication()
class KApplication {
public:
static KApplication* kApplication() { return KApp; }
virtual DCOPClient *dcopClient();
protected:
static KApplication *KApp;
};
#endif
......@@ -26,4 +26,12 @@
#ifndef JOB_H_
#define JOB_H_
// added to help in compilation of khtml/khtml_part.h:867
namespace KIO {
class Job {
};
}
#endif
......@@ -26,4 +26,24 @@
#ifndef BROWSEREXTENSION_H_
#define BROWSEREXTENSION_H_
// Added for compilation of khtml/dom/html_document.cpp:184
#include <qdatastream.h>
// Added for compilation of khtml/khtml_part.h:734
class QPoint;
// Added for compilation of khtml/khtml_part.h:755
class QEvent;
namespace KParts {
// Added for compilation of khtml/khtml_part.h:695
struct URLArgs {
};
class BrowserExtension {
};
};
#endif
......@@ -26,6 +26,11 @@
#ifndef QCSTRING_H_
#define QCSTRING_H_
// added to help in compilation of khtml/khtml_part.h:811
#include "qarray.h"
// added to help in compilation of khtml/dom/html_documnent.cpp:182
class QCString {
};
#endif
......@@ -26,4 +26,13 @@
#ifndef QEVENT_H_
#define QEVENT_H_
// all the following events added to support khtmlview.h
class QEvent {};
class QFocusEvent : public QEvent {};
class QHideEvent : public QEvent {};
class QKeyEvent : public QEvent {};
class QResizeEvent : public QEvent {};
class QShowEvent : public QEvent {};
class QWheelEvent : public QEvent {};
#endif
......@@ -26,4 +26,7 @@
#ifndef QMAP_H_
#define QMAP_H_
template <class K, class T> class QMap {
};
#endif
......@@ -26,6 +26,10 @@
#ifndef QOBJECT_H_
#define QOBJECT_H_
// includes added to help in compilation of khtml/khtmlview.h
#include "qobjectdefs.h"
#include "qevent.h"
// FIXME: should these macros be in "kwq.h" or other header file?
#define slots
#define SLOT(x) x
......
......@@ -26,4 +26,7 @@
#ifndef QREGEXP_H_
#define QREGEXP_H_
class QRegExp {
};
#endif
......@@ -26,4 +26,14 @@
#ifndef DCOPCLIENT_H_
#define DCOPCLIENT_H_
class QCString;
class QByteArray;
// KApplication needs this
class DCOPClient {
public:
bool call(const QCString &remApp, const QCString &remObj, const QCString &remFun, const QByteArray &data,
QCString& replyType, QByteArray &replyData, bool useEventLoop=false, bool fast=false);
};
#endif
......@@ -26,4 +26,17 @@
#ifndef KAPP_H_
#define KAPP_H_
#include <dcopclient.h>
#define kapp KApplication::kApplication()
class KApplication {
public:
static KApplication* kApplication() { return KApp; }
virtual DCOPClient *dcopClient();
protected:
static KApplication *KApp;
};
#endif
......@@ -26,4 +26,12 @@
#ifndef JOB_H_
#define JOB_H_
// added to help in compilation of khtml/khtml_part.h:867
namespace KIO {
class Job {
};
}
#endif
......@@ -26,4 +26,24 @@
#ifndef BROWSEREXTENSION_H_
#define BROWSEREXTENSION_H_
// Added for compilation of khtml/dom/html_document.cpp:184
#include <qdatastream.h>
// Added for compilation of khtml/khtml_part.h:734
class QPoint;
// Added for compilation of khtml/khtml_part.h:755
class QEvent;
namespace KParts {
// Added for compilation of khtml/khtml_part.h:695
struct URLArgs {
};
class BrowserExtension {
};
};
#endif
......@@ -26,6 +26,11 @@
#ifndef QCSTRING_H_
#define QCSTRING_H_
// added to help in compilation of khtml/khtml_part.h:811
#include "qarray.h"
// added to help in compilation of khtml/dom/html_documnent.cpp:182
class QCString {
};
#endif
......@@ -26,4 +26,13 @@
#ifndef QEVENT_H_
#define QEVENT_H_
// all the following events added to support khtmlview.h
class QEvent {};
class QFocusEvent : public QEvent {};
class QHideEvent : public QEvent {};
class QKeyEvent : public QEvent {};
class QResizeEvent : public QEvent {};
class QShowEvent : public QEvent {};
class QWheelEvent : public QEvent {};
#endif
......@@ -26,4 +26,7 @@
#ifndef QMAP_H_
#define QMAP_H_
template <class K, class T> class QMap {
};
#endif
......@@ -26,6 +26,10 @@
#ifndef QOBJECT_H_
#define QOBJECT_H_
// includes added to help in compilation of khtml/khtmlview.h
#include "qobjectdefs.h"
#include "qevent.h"
// FIXME: should these macros be in "kwq.h" or other header file?
#define slots
#define SLOT(x) x
......
......@@ -26,4 +26,7 @@
#ifndef QREGEXP_H_
#define QREGEXP_H_
class QRegExp {
};
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment