return zak_form_json_provider;
}
+void
+zak_form_json_provider_set_filename (ZakFormJsonProvider *provider, const gchar *filename)
+{
+ gchar *_filename;
+
+ ZakFormJsonProviderPrivate *priv = zak_form_json_provider_get_instance_private (provider);
+
+ if (filename == NULL)
+ {
+ if (priv->filename != NULL)
+ {
+ g_free (priv->filename);
+ }
+
+ priv->filename = NULL;
+ }
+ else
+ {
+ _filename = g_strstrip (g_strdup (filename));
+ if (g_strcmp0 (_filename, "") == 0)
+ {
+ if (priv->filename != NULL)
+ {
+ g_free (priv->filename);
+ }
+
+ priv->filename = NULL;
+ }
+ }
+}
+
+const gchar
+*zak_form_json_provider_get_filename (ZakFormJsonProvider *provider)
+{
+ const gchar *ret;
+
+ ZakFormJsonProviderPrivate *priv = zak_form_json_provider_get_instance_private (provider);
+
+ ret = g_strdup (priv->filename);
+
+ return ret;
+}
+
/* PRIVATE */
static void
zak_form_json_provider_set_property (GObject *object,
ZakFormJsonProvider *zak_form_json_provider_new_from_file (const gchar *filename);
ZakFormJsonProvider *zak_form_json_provider_new_from_data (const gchar *data, gssize length);
+void zak_form_json_provider_set_filename (ZakFormJsonProvider *provider, const gchar *filename);
+const gchar *zak_form_json_provider_get_filename (ZakFormJsonProvider *provider);
G_END_DECLS