[vala] Add libgda-report-4.0 bindings, based on patch by Shawn Ferris



commit 53f7a610d8872e6aa09c1586af659009e6758fc6
Author: Evan Nemerson <evan coeus-group com>
Date:   Tue Mar 23 01:48:55 2010 -0700

    Add libgda-report-4.0 bindings, based on patch by Shawn Ferris
    
    Fixes bug 604208.

 vapi/Makefile.am                                   |    2 +
 vapi/libgda-report-4.0.deps                        |    1 +
 vapi/libgda-report-4.0.vapi                        |   51 ++++++++
 .../libgda-report-4.0/libgda-report-4.0.deps       |    1 +
 .../libgda-report-4.0/libgda-report-4.0.files      |    2 +
 .../libgda-report-4.0/libgda-report-4.0.gi         |  121 ++++++++++++++++++++
 .../libgda-report-4.0/libgda-report-4.0.metadata   |    3 +
 .../libgda-report-4.0/libgda-report-4.0.namespace  |    1 +
 8 files changed, 182 insertions(+), 0 deletions(-)
---
diff --git a/vapi/Makefile.am b/vapi/Makefile.am
index 7b380f9..e833e8a 100644
--- a/vapi/Makefile.am
+++ b/vapi/Makefile.am
@@ -107,6 +107,8 @@ dist_vapi_DATA = \
 	libepc-1.0.vapi \
 	libftdi.deps \
 	libftdi.vapi \
+	libgda-report-4.0.deps \
+	libgda-report-4.0.vapi \
 	libgda-4.0.deps \
 	libgda-4.0.vapi \
 	libgdata.deps \
diff --git a/vapi/libgda-report-4.0.deps b/vapi/libgda-report-4.0.deps
new file mode 100644
index 0000000..820381a
--- /dev/null
+++ b/vapi/libgda-report-4.0.deps
@@ -0,0 +1 @@
+libgda-4.0
diff --git a/vapi/libgda-report-4.0.vapi b/vapi/libgda-report-4.0.vapi
new file mode 100644
index 0000000..bb5739d
--- /dev/null
+++ b/vapi/libgda-report-4.0.vapi
@@ -0,0 +1,51 @@
+/* libgda-report-4.0.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "Gda", lower_case_cprefix = "gda_")]
+namespace Gda {
+	[CCode (cheader_filename = "libgda-report/libgda-report.h")]
+	public class ReportDocbookDocument : Gda.ReportDocument {
+		[CCode (type = "GdaReportDocument*", has_construct_function = false)]
+		public ReportDocbookDocument (Gda.ReportEngine engine);
+		[NoAccessorMethod]
+		public string fo_stylesheet { owned get; set; }
+		[NoAccessorMethod]
+		public string fop_path { owned get; set; }
+		[NoAccessorMethod]
+		public string html_stylesheet { owned get; set; }
+		[NoAccessorMethod]
+		public string java_home { owned get; set; }
+	}
+	[CCode (cheader_filename = "libgda-report/libgda-report.h")]
+	public class ReportDocument : GLib.Object {
+		public virtual bool run_as_html (string filename) throws GLib.Error;
+		public virtual bool run_as_pdf (string filename) throws GLib.Error;
+		public void set_template (string file);
+		[NoAccessorMethod]
+		public Gda.ReportEngine engine { owned get; set; }
+		public string template { set; }
+	}
+	[CCode (cheader_filename = "libgda-report/libgda-report.h")]
+	public class ReportEngine : GLib.Object {
+		[CCode (has_construct_function = false)]
+		public ReportEngine (Xml.Node spec_node);
+		public void declare_object (GLib.Object object, string obj_name);
+		public unowned GLib.Object find_declared_object (GLib.Type obj_type, string obj_name);
+		[CCode (has_construct_function = false)]
+		public ReportEngine.from_file (string spec_file_name);
+		[CCode (has_construct_function = false)]
+		public ReportEngine.from_string (string spec_string);
+		public unowned Xml.Node run_as_doc () throws GLib.Error;
+		public unowned Xml.Node run_as_node () throws GLib.Error;
+		[NoAccessorMethod]
+		public void* spec { get; set; }
+		[NoAccessorMethod]
+		public string spec_filename { set; }
+		[NoAccessorMethod]
+		public string spec_string { set; }
+	}
+	[CCode (cheader_filename = "libgda-report/libgda-report.h")]
+	public class ReportRmlDocument : Gda.ReportDocument {
+		[CCode (type = "GdaReportDocument*", has_construct_function = false)]
+		public ReportRmlDocument (Gda.ReportEngine engine);
+	}
+}
diff --git a/vapi/packages/libgda-report-4.0/libgda-report-4.0.deps b/vapi/packages/libgda-report-4.0/libgda-report-4.0.deps
new file mode 100644
index 0000000..820381a
--- /dev/null
+++ b/vapi/packages/libgda-report-4.0/libgda-report-4.0.deps
@@ -0,0 +1 @@
+libgda-4.0
diff --git a/vapi/packages/libgda-report-4.0/libgda-report-4.0.files b/vapi/packages/libgda-report-4.0/libgda-report-4.0.files
new file mode 100644
index 0000000..7aa7293
--- /dev/null
+++ b/vapi/packages/libgda-report-4.0/libgda-report-4.0.files
@@ -0,0 +1,2 @@
+include/libgda-4.0/libgda-report/
+lib/libgda-report-4.0.so
diff --git a/vapi/packages/libgda-report-4.0/libgda-report-4.0.gi b/vapi/packages/libgda-report-4.0/libgda-report-4.0.gi
new file mode 100644
index 0000000..e6bcc34
--- /dev/null
+++ b/vapi/packages/libgda-report-4.0/libgda-report-4.0.gi
@@ -0,0 +1,121 @@
+<?xml version="1.0"?>
+<api version="1.0">
+	<namespace name="Gda">
+		<object name="GdaReportDocbookDocument" parent="GdaReportDocument" type-name="GdaReportDocbookDocument" get-type="gda_report_docbook_document_get_type">
+			<constructor name="new" symbol="gda_report_docbook_document_new">
+				<return-type type="GdaReportDocument*"/>
+				<parameters>
+					<parameter name="engine" type="GdaReportEngine*"/>
+				</parameters>
+			</constructor>
+			<property name="fo-stylesheet" type="char*" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="fop-path" type="char*" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="html-stylesheet" type="char*" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="java-home" type="char*" readable="1" writable="1" construct="0" construct-only="0"/>
+		</object>
+		<object name="GdaReportDocument" parent="GObject" type-name="GdaReportDocument" get-type="gda_report_document_get_type">
+			<method name="run_as_html" symbol="gda_report_document_run_as_html">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="doc" type="GdaReportDocument*"/>
+					<parameter name="filename" type="gchar*"/>
+					<parameter name="error" type="GError**"/>
+				</parameters>
+			</method>
+			<method name="run_as_pdf" symbol="gda_report_document_run_as_pdf">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="doc" type="GdaReportDocument*"/>
+					<parameter name="filename" type="gchar*"/>
+					<parameter name="error" type="GError**"/>
+				</parameters>
+			</method>
+			<method name="set_template" symbol="gda_report_document_set_template">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="doc" type="GdaReportDocument*"/>
+					<parameter name="file" type="gchar*"/>
+				</parameters>
+			</method>
+			<property name="engine" type="GdaReportEngine*" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="template" type="char*" readable="0" writable="1" construct="0" construct-only="0"/>
+			<vfunc name="run_as_html">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="doc" type="GdaReportDocument*"/>
+					<parameter name="filename" type="gchar*"/>
+					<parameter name="error" type="GError**"/>
+				</parameters>
+			</vfunc>
+			<vfunc name="run_as_pdf">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="doc" type="GdaReportDocument*"/>
+					<parameter name="filename" type="gchar*"/>
+					<parameter name="error" type="GError**"/>
+				</parameters>
+			</vfunc>
+		</object>
+		<object name="GdaReportEngine" parent="GObject" type-name="GdaReportEngine" get-type="gda_report_engine_get_type">
+			<method name="declare_object" symbol="gda_report_engine_declare_object">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="engine" type="GdaReportEngine*"/>
+					<parameter name="object" type="GObject*"/>
+					<parameter name="obj_name" type="gchar*"/>
+				</parameters>
+			</method>
+			<method name="find_declared_object" symbol="gda_report_engine_find_declared_object">
+				<return-type type="GObject*"/>
+				<parameters>
+					<parameter name="engine" type="GdaReportEngine*"/>
+					<parameter name="obj_type" type="GType"/>
+					<parameter name="obj_name" type="gchar*"/>
+				</parameters>
+			</method>
+			<constructor name="new" symbol="gda_report_engine_new">
+				<return-type type="GdaReportEngine*"/>
+				<parameters>
+					<parameter name="spec_node" type="xmlNodePtr"/>
+				</parameters>
+			</constructor>
+			<constructor name="new_from_file" symbol="gda_report_engine_new_from_file">
+				<return-type type="GdaReportEngine*"/>
+				<parameters>
+					<parameter name="spec_file_name" type="gchar*"/>
+				</parameters>
+			</constructor>
+			<constructor name="new_from_string" symbol="gda_report_engine_new_from_string">
+				<return-type type="GdaReportEngine*"/>
+				<parameters>
+					<parameter name="spec_string" type="gchar*"/>
+				</parameters>
+			</constructor>
+			<method name="run_as_doc" symbol="gda_report_engine_run_as_doc">
+				<return-type type="xmlDocPtr"/>
+				<parameters>
+					<parameter name="engine" type="GdaReportEngine*"/>
+					<parameter name="error" type="GError**"/>
+				</parameters>
+			</method>
+			<method name="run_as_node" symbol="gda_report_engine_run_as_node">
+				<return-type type="xmlNodePtr"/>
+				<parameters>
+					<parameter name="engine" type="GdaReportEngine*"/>
+					<parameter name="error" type="GError**"/>
+				</parameters>
+			</method>
+			<property name="spec" type="gpointer" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="spec-filename" type="char*" readable="0" writable="1" construct="0" construct-only="0"/>
+			<property name="spec-string" type="char*" readable="0" writable="1" construct="0" construct-only="0"/>
+		</object>
+		<object name="GdaReportRmlDocument" parent="GdaReportDocument" type-name="GdaReportRmlDocument" get-type="gda_report_rml_document_get_type">
+			<constructor name="new" symbol="gda_report_rml_document_new">
+				<return-type type="GdaReportDocument*"/>
+				<parameters>
+					<parameter name="engine" type="GdaReportEngine*"/>
+				</parameters>
+			</constructor>
+		</object>
+	</namespace>
+</api>
diff --git a/vapi/packages/libgda-report-4.0/libgda-report-4.0.metadata b/vapi/packages/libgda-report-4.0/libgda-report-4.0.metadata
new file mode 100644
index 0000000..8b5745e
--- /dev/null
+++ b/vapi/packages/libgda-report-4.0/libgda-report-4.0.metadata
@@ -0,0 +1,3 @@
+Gda cheader_filename="libgda-report/libgda-report.h"
+xmlNodePtr name="Node" namespace="Xml"
+xmlDocPtr name="Node" namespace="Xml"
diff --git a/vapi/packages/libgda-report-4.0/libgda-report-4.0.namespace b/vapi/packages/libgda-report-4.0/libgda-report-4.0.namespace
new file mode 100644
index 0000000..d3f9076
--- /dev/null
+++ b/vapi/packages/libgda-report-4.0/libgda-report-4.0.namespace
@@ -0,0 +1 @@
+Gda



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]