Commit fe4bf189 authored by kocienda's avatar kocienda

Modified a number of files by adding skeletal type implementations and

includes that aid in getting khtml/dom to compile.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ebfb70d5
......@@ -26,4 +26,12 @@
#ifndef QAPPLICATION_H_
#define QAPPLICATION_H_
#include "qpalette.h"
#include "qwidget.h"
class QApplication {
public:
static QPalette palette(const QWidget* = 0);
};
#endif
......@@ -26,6 +26,7 @@
#ifndef QBUFFER_H_
#define QBUFFER_H_
class QBuffer;
class QBuffer {
};
#endif
......@@ -26,4 +26,6 @@
#ifndef QCSTRING_H_
#define QCSTRING_H_
#include "qarray.h"
#endif
......@@ -31,6 +31,10 @@ public:
int red() const;
int green() const;
int blue() const;
bool operator==(const QColor &x) const;
bool operator!=(const QColor &x) const;
};
#endif
......@@ -29,4 +29,7 @@
class QTime {
};
class QDateTime {
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QDICT_H_
#define QDICT_H_
template <class T> class QDict {
};
#endif
......@@ -26,4 +26,10 @@
#ifndef QFONT_H_
#define QFONT_H_
class QFont {
public:
bool operator==(const QFont &x) const;
bool operator!=(const QFont &x) const;
};
#endif
......@@ -26,4 +26,7 @@
#ifndef KURL_H_
#define KURL_H_
class KURL {
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QARRAY_H_
#define QARRAY_H_
class QByteArray {
};
#endif
......@@ -26,4 +26,16 @@
#ifndef QPALETTE_H_
#define QPALETTE_H_
class QColorGroup {
public:
enum ColorRole {};
void setColor(ColorRole role, const QColor &color);
};
class QPalette {
public:
enum ColorGroup {};
void setColor(ColorGroup, QColorGroup::ColorRole role, const QColor &color);
};
#endif
......@@ -26,6 +26,7 @@
#ifndef QPIXMAP_H_
#define QPIXMAP_H_
class QPixmap;
class QPixmap {
};
#endif
......@@ -26,4 +26,11 @@
#ifndef QPTRDICT_H_
#define QPTRDICT_H_
template <class T> class QPtrDict {
public:
uint count() const;
T *at(uint);
void append(const T *);
};
#endif
......@@ -26,4 +26,8 @@
#ifndef QSCROLLVIEW_H_
#define QSCROLLVIEW_H_
class QScrollView {
typedef int ScrollBarMode;
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QSIZE_H_
#define QSIZE_H_
class QSize {
};
#endif
......@@ -29,6 +29,8 @@
#include <kwq.h>
#include <string.h>
#include "qcstring.h"
class QChar {
public:
QChar(char);
......@@ -48,6 +50,7 @@ public:
bool isNull() const;
const QChar *unicode() const;
uint length() const;
QString &sprintf(const char *format, ...);
static const QString null;
......
......@@ -26,7 +26,11 @@
#ifndef QSTRINGLIST_H_
#define QSTRINGLIST_H_
class QStringList {
#include "qstring.h"
#include "qvaluelist.h"
class QStringList : public QValueList<QString> {
};
#endif
......@@ -27,6 +27,9 @@
#define QVALUELIST_H_
template <class T> class QValueList {
public:
void append(const T& x);
void remove(const T& x);
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QWIDGET_H_
#define QWIDGET_H_
class QWidget {
};
#endif
......@@ -26,4 +26,10 @@
#ifndef QXML_H_
#define QXML_H_
class QXmlDefaultHandler {
};
class QXmlAttributes {
};
#endif
......@@ -26,4 +26,7 @@
#ifndef KURL_H_
#define KURL_H_
class KURL {
};
#endif
......@@ -26,6 +26,9 @@
#ifndef KWQDEF_H_
#define KWQDEF_H_
#include <qsize.h>
#include <qcolor.h>
typedef unsigned short ushort;
typedef unsigned uint;
......
......@@ -26,4 +26,12 @@
#ifndef QAPPLICATION_H_
#define QAPPLICATION_H_
#include "qpalette.h"
#include "qwidget.h"
class QApplication {
public:
static QPalette palette(const QWidget* = 0);
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QARRAY_H_
#define QARRAY_H_
class QByteArray {
};
#endif
......@@ -26,6 +26,7 @@
#ifndef QBUFFER_H_
#define QBUFFER_H_
class QBuffer;
class QBuffer {
};
#endif
......@@ -31,6 +31,10 @@ public:
int red() const;
int green() const;
int blue() const;
bool operator==(const QColor &x) const;
bool operator!=(const QColor &x) const;
};
#endif
......@@ -26,4 +26,6 @@
#ifndef QCSTRING_H_
#define QCSTRING_H_
#include "qarray.h"
#endif
......@@ -29,4 +29,7 @@
class QTime {
};
class QDateTime {
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QDICT_H_
#define QDICT_H_
template <class T> class QDict {
};
#endif
......@@ -26,4 +26,10 @@
#ifndef QFONT_H_
#define QFONT_H_
class QFont {
public:
bool operator==(const QFont &x) const;
bool operator!=(const QFont &x) const;
};
#endif
......@@ -26,4 +26,16 @@
#ifndef QPALETTE_H_
#define QPALETTE_H_
class QColorGroup {
public:
enum ColorRole {};
void setColor(ColorRole role, const QColor &color);
};
class QPalette {
public:
enum ColorGroup {};
void setColor(ColorGroup, QColorGroup::ColorRole role, const QColor &color);
};
#endif
......@@ -26,6 +26,7 @@
#ifndef QPIXMAP_H_
#define QPIXMAP_H_
class QPixmap;
class QPixmap {
};
#endif
......@@ -26,4 +26,11 @@
#ifndef QPTRDICT_H_
#define QPTRDICT_H_
template <class T> class QPtrDict {
public:
uint count() const;
T *at(uint);
void append(const T *);
};
#endif
......@@ -26,4 +26,8 @@
#ifndef QSCROLLVIEW_H_
#define QSCROLLVIEW_H_
class QScrollView {
typedef int ScrollBarMode;
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QSIZE_H_
#define QSIZE_H_
class QSize {
};
#endif
......@@ -29,6 +29,8 @@
#include <kwq.h>
#include <string.h>
#include "qcstring.h"
class QChar {
public:
QChar(char);
......@@ -48,6 +50,7 @@ public:
bool isNull() const;
const QChar *unicode() const;
uint length() const;
QString &sprintf(const char *format, ...);
static const QString null;
......
......@@ -26,7 +26,11 @@
#ifndef QSTRINGLIST_H_
#define QSTRINGLIST_H_
class QStringList {
#include "qstring.h"
#include "qvaluelist.h"
class QStringList : public QValueList<QString> {
};
#endif
......@@ -27,6 +27,9 @@
#define QVALUELIST_H_
template <class T> class QValueList {
public:
void append(const T& x);
void remove(const T& x);
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QWIDGET_H_
#define QWIDGET_H_
class QWidget {
};
#endif
......@@ -26,4 +26,10 @@
#ifndef QXML_H_
#define QXML_H_
class QXmlDefaultHandler {
};
class QXmlAttributes {
};
#endif
......@@ -26,4 +26,7 @@
#ifndef KURL_H_
#define KURL_H_
class KURL {
};
#endif
......@@ -26,6 +26,9 @@
#ifndef KWQDEF_H_
#define KWQDEF_H_
#include <qsize.h>
#include <qcolor.h>
typedef unsigned short ushort;
typedef unsigned uint;
......
......@@ -26,4 +26,12 @@
#ifndef QAPPLICATION_H_
#define QAPPLICATION_H_
#include "qpalette.h"
#include "qwidget.h"
class QApplication {
public:
static QPalette palette(const QWidget* = 0);
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QARRAY_H_
#define QARRAY_H_
class QByteArray {
};
#endif
......@@ -26,6 +26,7 @@
#ifndef QBUFFER_H_
#define QBUFFER_H_
class QBuffer;
class QBuffer {
};
#endif
......@@ -31,6 +31,10 @@ public:
int red() const;
int green() const;
int blue() const;
bool operator==(const QColor &x) const;
bool operator!=(const QColor &x) const;
};
#endif
......@@ -26,4 +26,6 @@
#ifndef QCSTRING_H_
#define QCSTRING_H_
#include "qarray.h"
#endif
......@@ -29,4 +29,7 @@
class QTime {
};
class QDateTime {
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QDICT_H_
#define QDICT_H_
template <class T> class QDict {
};
#endif
......@@ -26,4 +26,10 @@
#ifndef QFONT_H_
#define QFONT_H_
class QFont {
public:
bool operator==(const QFont &x) const;
bool operator!=(const QFont &x) const;
};
#endif
......@@ -26,4 +26,16 @@
#ifndef QPALETTE_H_
#define QPALETTE_H_
class QColorGroup {
public:
enum ColorRole {};
void setColor(ColorRole role, const QColor &color);
};
class QPalette {
public:
enum ColorGroup {};
void setColor(ColorGroup, QColorGroup::ColorRole role, const QColor &color);
};
#endif
......@@ -26,6 +26,7 @@
#ifndef QPIXMAP_H_
#define QPIXMAP_H_
class QPixmap;
class QPixmap {
};
#endif
......@@ -26,4 +26,11 @@
#ifndef QPTRDICT_H_
#define QPTRDICT_H_
template <class T> class QPtrDict {
public:
uint count() const;
T *at(uint);
void append(const T *);
};
#endif
......@@ -26,4 +26,8 @@
#ifndef QSCROLLVIEW_H_
#define QSCROLLVIEW_H_
class QScrollView {
typedef int ScrollBarMode;
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QSIZE_H_
#define QSIZE_H_
class QSize {
};
#endif
......@@ -29,6 +29,8 @@
#include <kwq.h>
#include <string.h>
#include "qcstring.h"
class QChar {
public:
QChar(char);
......@@ -48,6 +50,7 @@ public:
bool isNull() const;
const QChar *unicode() const;
uint length() const;
QString &sprintf(const char *format, ...);
static const QString null;
......
......@@ -26,7 +26,11 @@
#ifndef QSTRINGLIST_H_
#define QSTRINGLIST_H_
class QStringList {
#include "qstring.h"
#include "qvaluelist.h"
class QStringList : public QValueList<QString> {
};
#endif
......@@ -27,6 +27,9 @@
#define QVALUELIST_H_
template <class T> class QValueList {
public:
void append(const T& x);
void remove(const T& x);
};
#endif
......@@ -26,4 +26,7 @@
#ifndef QWIDGET_H_
#define QWIDGET_H_
class QWidget {
};
#endif
......@@ -26,4 +26,10 @@
#ifndef QXML_H_
#define QXML_H_
class QXmlDefaultHandler {
};
class QXmlAttributes {
};
#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