summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/tdejava/CSSStyleRule.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2014-01-08 20:06:00 +0100
committerSlávek Banko <[email protected]>2014-01-08 20:06:00 +0100
commit636f509299122d02087c6fd62e1e4a46dbd22026 (patch)
tree70e43efceeb5b00e7f19cdac8da44928bd2fb459 /tdejava/koala/tdejava/CSSStyleRule.cpp
parent719b61750c08343f530068ed4127623aeac71cf0 (diff)
downloadtdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.tar.gz
tdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.zip
Rename many classes to avoid conflicts with KDE
Diffstat (limited to 'tdejava/koala/tdejava/CSSStyleRule.cpp')
-rw-r--r--tdejava/koala/tdejava/CSSStyleRule.cpp70
1 files changed, 70 insertions, 0 deletions
diff --git a/tdejava/koala/tdejava/CSSStyleRule.cpp b/tdejava/koala/tdejava/CSSStyleRule.cpp
new file mode 100644
index 00000000..a74076f5
--- /dev/null
+++ b/tdejava/koala/tdejava/CSSStyleRule.cpp
@@ -0,0 +1,70 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+#include <dom/css_value.h>
+#include <dom/dom_string.h>
+#include <dom/css_rule.h>
+
+#include <qtjava/QtSupport.h>
+#include <tdejava/TDESupport.h>
+#include <tdejava/CSSStyleRule.h>
+
+class CSSStyleRuleJBridge : public DOM::CSSStyleRule
+{
+public:
+ CSSStyleRuleJBridge() : DOM::CSSStyleRule() {};
+ CSSStyleRuleJBridge(const DOM::CSSStyleRule& arg1) : DOM::CSSStyleRule(arg1) {};
+ CSSStyleRuleJBridge(const DOM::CSSRule& arg1) : DOM::CSSStyleRule(arg1) {};
+};
+
+JNIEXPORT void JNICALL
+Java_org_trinitydesktop_koala_CSSStyleRule_newCSSStyleRule__(JNIEnv* env, jobject obj)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new CSSStyleRuleJBridge());
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_trinitydesktop_koala_CSSStyleRule_newCSSStyleRule__Lorg_trinitydesktop_koala_CSSRule_2(JNIEnv* env, jobject obj, jobject other)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new CSSStyleRuleJBridge((const DOM::CSSRule&)*(const DOM::CSSRule*) QtSupport::getQt(env, other)));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_trinitydesktop_koala_CSSStyleRule_newCSSStyleRule__Lorg_trinitydesktop_koala_CSSStyleRule_2(JNIEnv* env, jobject obj, jobject other)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new CSSStyleRuleJBridge((const DOM::CSSStyleRule&)*(const DOM::CSSStyleRule*) QtSupport::getQt(env, other)));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_trinitydesktop_koala_CSSStyleRule_selectorText(JNIEnv* env, jobject obj)
+{
+ DOM::DOMString _qstring;
+ _qstring = ((DOM::CSSStyleRule*) QtSupport::getQt(env, obj))->selectorText();
+ return KDESupport::fromDOMString(env, &_qstring);
+}
+
+JNIEXPORT void JNICALL
+Java_org_trinitydesktop_koala_CSSStyleRule_setSelectorText(JNIEnv* env, jobject obj, jstring arg1)
+{
+static DOM::DOMString* _domstring_arg1 = 0;
+ ((DOM::CSSStyleRule*) QtSupport::getQt(env, obj))->setSelectorText((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, arg1, &_domstring_arg1));
+ return;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_trinitydesktop_koala_CSSStyleRule_style(JNIEnv* env, jobject obj)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::CSSStyleDeclaration(((DOM::CSSStyleRule*) QtSupport::getQt(env, obj))->style()), "org.trinitydesktop.koala.CSSStyleDeclaration", TRUE);
+ return xret;
+}
+