Commit 289136c4 authored by gramps's avatar gramps

Changes to get some of khtml/dom files to compile


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent cab27f55
......@@ -26,4 +26,6 @@
#ifndef QBUFFER_H_
#define QBUFFER_H_
class QBuffer;
#endif
......@@ -26,4 +26,11 @@
#ifndef QCOLOR_H_
#define QCOLOR_H_
class QColor {
public:
int red() const;
int green() const;
int blue() const;
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QDATETIME_H_
#define QDATETIME_H_
class QTime {
};
#endif
......@@ -26,4 +26,15 @@
#ifndef QOBJECT_H_
#define QOBJECT_H_
// FIXME: should these macros be in "kwq.h" or other header file?
#define slots
#define SLOT(x) x
#define signals protected
#define SIGNAL(x) x
#define emit
#define Q_OBJECT
class QObject {
};
#endif
......@@ -26,4 +26,6 @@
#ifndef QPIXMAP_H_
#define QPIXMAP_H_
class QPixmap;
#endif
......@@ -26,4 +26,13 @@
#ifndef QLIST_H_
#define QLIST_H_
#include <kwq.h>
template <class T> class QList {
public:
uint count() const;
T *at(uint);
void append(const T *);
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QRECT_H_
#define QRECT_H_
class QRect {
};
#endif
......@@ -26,4 +26,40 @@
#ifndef QSTRING_H_
#define QSTRING_H_
#include <kwq.h>
#include <string.h>
class QChar {
public:
QChar(char);
QChar(const QChar &);
QChar lower() const;
char latin1() const;
bool isDigit();
friend inline int operator==(QChar, QChar);
friend inline int operator!=(QChar, QChar);
};
class QString {
public:
QString();
int toInt() const;
int toInt(bool *) const;
bool isNull() const;
const QChar *unicode() const;
uint length() const;
static const QString null;
// FIXME: bogus constructor hack for "conversion from int to non-scalar
// type" error in "Node::toHTML()" function in "dom/dom_node.cpp"
QString(int);
};
class QConstString {
public:
QConstString(QChar *, uint);
const QString string() const;
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QSTRINGLIST_H_
#define QSTRINGLIST_H_
class QStringList {
};
#endif
......@@ -26,4 +26,6 @@
#ifndef QTEXTCODEC_H_
#define QTEXTCODEC_H_
class QTextCodec;
#endif
......@@ -26,4 +26,7 @@
#ifndef QVALUELIST_H_
#define QVALUELIST_H_
template <class T> class QValueList {
};
#endif
......@@ -26,4 +26,6 @@
#ifndef QBUFFER_H_
#define QBUFFER_H_
class QBuffer;
#endif
......@@ -26,4 +26,11 @@
#ifndef QCOLOR_H_
#define QCOLOR_H_
class QColor {
public:
int red() const;
int green() const;
int blue() const;
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QDATETIME_H_
#define QDATETIME_H_
class QTime {
};
#endif
......@@ -26,4 +26,13 @@
#ifndef QLIST_H_
#define QLIST_H_
#include <kwq.h>
template <class T> class QList {
public:
uint count() const;
T *at(uint);
void append(const T *);
};
#endif
......@@ -26,4 +26,15 @@
#ifndef QOBJECT_H_
#define QOBJECT_H_
// FIXME: should these macros be in "kwq.h" or other header file?
#define slots
#define SLOT(x) x
#define signals protected
#define SIGNAL(x) x
#define emit
#define Q_OBJECT
class QObject {
};
#endif
......@@ -26,4 +26,6 @@
#ifndef QPIXMAP_H_
#define QPIXMAP_H_
class QPixmap;
#endif
......@@ -26,4 +26,7 @@
#ifndef QRECT_H_
#define QRECT_H_
class QRect {
};
#endif
......@@ -26,4 +26,40 @@
#ifndef QSTRING_H_
#define QSTRING_H_
#include <kwq.h>
#include <string.h>
class QChar {
public:
QChar(char);
QChar(const QChar &);
QChar lower() const;
char latin1() const;
bool isDigit();
friend inline int operator==(QChar, QChar);
friend inline int operator!=(QChar, QChar);
};
class QString {
public:
QString();
int toInt() const;
int toInt(bool *) const;
bool isNull() const;
const QChar *unicode() const;
uint length() const;
static const QString null;
// FIXME: bogus constructor hack for "conversion from int to non-scalar
// type" error in "Node::toHTML()" function in "dom/dom_node.cpp"
QString(int);
};
class QConstString {
public:
QConstString(QChar *, uint);
const QString string() const;
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QSTRINGLIST_H_
#define QSTRINGLIST_H_
class QStringList {
};
#endif
......@@ -26,4 +26,6 @@
#ifndef QTEXTCODEC_H_
#define QTEXTCODEC_H_
class QTextCodec;
#endif
......@@ -26,4 +26,7 @@
#ifndef QVALUELIST_H_
#define QVALUELIST_H_
template <class T> class QValueList {
};
#endif
......@@ -26,4 +26,6 @@
#ifndef QBUFFER_H_
#define QBUFFER_H_
class QBuffer;
#endif
......@@ -26,4 +26,11 @@
#ifndef QCOLOR_H_
#define QCOLOR_H_
class QColor {
public:
int red() const;
int green() const;
int blue() const;
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QDATETIME_H_
#define QDATETIME_H_
class QTime {
};
#endif
......@@ -26,4 +26,13 @@
#ifndef QLIST_H_
#define QLIST_H_
#include <kwq.h>
template <class T> class QList {
public:
uint count() const;
T *at(uint);
void append(const T *);
};
#endif
......@@ -26,4 +26,15 @@
#ifndef QOBJECT_H_
#define QOBJECT_H_
// FIXME: should these macros be in "kwq.h" or other header file?
#define slots
#define SLOT(x) x
#define signals protected
#define SIGNAL(x) x
#define emit
#define Q_OBJECT
class QObject {
};
#endif
......@@ -26,4 +26,6 @@
#ifndef QPIXMAP_H_
#define QPIXMAP_H_
class QPixmap;
#endif
......@@ -26,4 +26,7 @@
#ifndef QRECT_H_
#define QRECT_H_
class QRect {
};
#endif
......@@ -26,4 +26,40 @@
#ifndef QSTRING_H_
#define QSTRING_H_
#include <kwq.h>
#include <string.h>
class QChar {
public:
QChar(char);
QChar(const QChar &);
QChar lower() const;
char latin1() const;
bool isDigit();
friend inline int operator==(QChar, QChar);
friend inline int operator!=(QChar, QChar);
};
class QString {
public:
QString();
int toInt() const;
int toInt(bool *) const;
bool isNull() const;
const QChar *unicode() const;
uint length() const;
static const QString null;
// FIXME: bogus constructor hack for "conversion from int to non-scalar
// type" error in "Node::toHTML()" function in "dom/dom_node.cpp"
QString(int);
};
class QConstString {
public:
QConstString(QChar *, uint);
const QString string() const;
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QSTRINGLIST_H_
#define QSTRINGLIST_H_
class QStringList {
};
#endif
......@@ -26,4 +26,6 @@
#ifndef QTEXTCODEC_H_
#define QTEXTCODEC_H_
class QTextCodec;
#endif
......@@ -26,4 +26,7 @@
#ifndef QVALUELIST_H_
#define QVALUELIST_H_
template <class T> class QValueList {
};
#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