[Kde-bindings] playground/bindings/kimono
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Tue Feb 6 09:25:36 UTC 2007
SVN commit 630753 by rdale:
* Added a QPair struct corresponding to the C++ one, and generate
method calls with arguments that use it
* Generate accessor methods for static variables and instane variables
CCMAIL: kde-bindings at kde.org
M +6 -0 ChangeLog
M +5 -0 core/QObject.cs
A core/QPair.cs
M +10 -2 core/QUrl.cs
M +8 -2 network/QHttpHeader.cs
M +5 -0 opengl/QGLContext.cs
M +5 -0 sql/QSqlDatabase.cs
M +10 -0 xml/QXmlInputSource.cs
--- trunk/playground/bindings/kimono/ChangeLog #630752:630753
@@ -1,3 +1,9 @@
+2007-01-07 Richard Dale <rdale at foton.es>
+
+ * Added a QPair struct corresponding to the C++ one, and generate
+ method calls with arguments that use it
+ * Generate accessor methods for static variables and instane variables
+
2007-01-06 Richard Dale <rdale at foton.es>
* Moved operator methods out of Qt.cs, and made them operator
--- trunk/playground/bindings/kimono/core/QObject.cs #630752:630753
@@ -30,6 +30,8 @@
}
[SmokeClass("QObject")]
interface IQObjectProxy {
+ [SmokeMethod("staticQtMetaObject", "()", "")]
+ QMetaObject staticQtMetaObject();
[SmokeMethod("tr", "(const char*, const char*)", "$$")]
string Tr(string s, string c);
[SmokeMethod("tr", "(const char*)", "$")]
@@ -58,6 +60,9 @@
private static IQObjectProxy StaticQObject() {
return (IQObjectProxy) _staticInterceptor;
}
+ public static QMetaObject StaticQtMetaObject() {
+ return StaticQObject().staticQtMetaObject();
+ }
[Q_PROPERTY("QString", "objectName")]
public string ObjectName {
get {
--- trunk/playground/bindings/kimono/core/QUrl.cs #630752:630753
@@ -35,7 +35,9 @@
void SetQueryDelimiters(char valueDelimiter, char pairDelimiter);
char QueryValueDelimiter();
char QueryPairDelimiter();
+ void SetQueryItems(List<QPair<string, string>> query);
void AddQueryItem(string key, string value);
+ List<QPair<string, string>> QueryItems();
bool HasQueryItem(string key);
string QueryItemValue(string key);
List<string> AllQueryItemValues(string key);
@@ -274,12 +276,18 @@
public char QueryPairDelimiter() {
return ProxyQUrl().QueryPairDelimiter();
}
- // void setQueryItems(const QList<QPair<QString, QString> >& arg1); >>>> NOT CONVERTED
+ [SmokeMethod("setQueryItems", "(const QList<QPair<QString, QString> >&)", "?")]
+ public void SetQueryItems(List<QPair<string, string>> query) {
+ ProxyQUrl().SetQueryItems(query);
+ }
[SmokeMethod("addQueryItem", "(const QString&, const QString&)", "$$")]
public void AddQueryItem(string key, string value) {
ProxyQUrl().AddQueryItem(key,value);
}
- // QList<QPair<QString, QString> > queryItems(); >>>> NOT CONVERTED
+ [SmokeMethod("queryItems", "() const", "")]
+ public List<QPair<string, string>> QueryItems() {
+ return ProxyQUrl().QueryItems();
+ }
[SmokeMethod("hasQueryItem", "(const QString&) const", "$")]
public bool HasQueryItem(string key) {
return ProxyQUrl().HasQueryItem(key);
--- trunk/playground/bindings/kimono/network/QHttpHeader.cs #630752:630753
@@ -55,12 +55,18 @@
public void SetValue(string key, string value) {
ProxyQHttpHeader().SetValue(key,value);
}
- // void setValues(const QList<QPair<QString, QString> >& arg1); >>>> NOT CONVERTED
+ [SmokeMethod("setValues", "(const QList<QPair<QString, QString> >&)", "?")]
+ public void SetValues(List<QPair<string, string>> values) {
+ ProxyQHttpHeader().SetValues(values);
+ }
[SmokeMethod("addValue", "(const QString&, const QString&)", "$$")]
public void AddValue(string key, string value) {
ProxyQHttpHeader().AddValue(key,value);
}
- // QList<QPair<QString, QString> > values(); >>>> NOT CONVERTED
+ [SmokeMethod("values", "() const", "")]
+ public List<QPair<string, string>> Values() {
+ return ProxyQHttpHeader().Values();
+ }
[SmokeMethod("hasKey", "(const QString&) const", "$")]
public bool HasKey(string key) {
return ProxyQHttpHeader().HasKey(key);
--- trunk/playground/bindings/kimono/opengl/QGLContext.cs #630752:630753
@@ -10,6 +10,8 @@
protected QGLContext(Type dummy) {}
[SmokeClass("QGLContext")]
interface IQGLContextProxy {
+ [SmokeMethod("currentCtx", "()", "")]
+ QGLContext currentCtx();
[SmokeMethod("setTextureCacheLimit", "(int)", "$")]
void SetTextureCacheLimit(int size);
[SmokeMethod("textureCacheLimit", "()", "")]
@@ -32,6 +34,9 @@
private static IQGLContextProxy StaticQGLContext() {
return (IQGLContextProxy) _staticInterceptor;
}
+ public static QGLContext CurrentCtx() {
+ return StaticQGLContext().currentCtx();
+ }
public QGLContext(QGLFormat format, IQPaintDevice device) : this((Type) null) {
CreateProxy();
NewQGLContext(format,device);
--- trunk/playground/bindings/kimono/sql/QSqlDatabase.cs #630752:630753
@@ -11,6 +11,8 @@
protected QSqlDatabase(Type dummy) {}
[SmokeClass("QSqlDatabase")]
interface IQSqlDatabaseProxy {
+ [SmokeMethod("defaultConnection", "()", "")]
+ string defaultConnection();
[SmokeMethod("addDatabase", "(const QString&, const QString&)", "$$")]
QSqlDatabase AddDatabase(string type, string connectionName);
[SmokeMethod("addDatabase", "(const QString&)", "$")]
@@ -55,6 +57,9 @@
private static IQSqlDatabaseProxy StaticQSqlDatabase() {
return (IQSqlDatabaseProxy) _staticInterceptor;
}
+ public static string DefaultConnection() {
+ return StaticQSqlDatabase().defaultConnection();
+ }
public QSqlDatabase() : this((Type) null) {
CreateProxy();
NewQSqlDatabase();
--- trunk/playground/bindings/kimono/xml/QXmlInputSource.cs #630752:630753
@@ -10,6 +10,10 @@
protected QXmlInputSource(Type dummy) {}
[SmokeClass("QXmlInputSource")]
interface IQXmlInputSourceProxy {
+ [SmokeMethod("EndOfData", "()", "")]
+ ushort EndOfData();
+ [SmokeMethod("EndOfDocument", "()", "")]
+ ushort EndOfDocument();
}
protected new void CreateProxy() {
SmokeInvocation realProxy = new SmokeInvocation(typeof(QXmlInputSource), this);
@@ -26,6 +30,12 @@
private static IQXmlInputSourceProxy StaticQXmlInputSource() {
return (IQXmlInputSourceProxy) _staticInterceptor;
}
+ public static ushort EndOfData() {
+ return StaticQXmlInputSource().EndOfData();
+ }
+ public static ushort EndOfDocument() {
+ return StaticQXmlInputSource().EndOfDocument();
+ }
public QXmlInputSource() : this((Type) null) {
CreateProxy();
NewQXmlInputSource();
More information about the Kde-bindings
mailing list