/* ApplicationMatch.c generated by valac 0.56.18-dirty, the Vala compiler
 * generated from ApplicationMatch.vala, do not modify */

/*
* Copyright (c) 2010 Michal Hruby <michal.mhr@gmail.com>
*               2017 elementary LLC.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
* Authored by: Michal Hruby <michal.mhr@gmail.com>
*              Alberto Aldegheri <albyrock87+dev@gmail.com>
*/

#include "slingshot.h"
#include <glib.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif

static GType synapse_application_match_get_type_once (void);

GAppInfo*
synapse_application_match_get_app_info (SynapseApplicationMatch* self)
{
	SynapseApplicationMatchIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = SYNAPSE_APPLICATION_MATCH_GET_INTERFACE (self);
	if (_iface_->get_app_info) {
		return _iface_->get_app_info (self);
	}
	return NULL;
}

void
synapse_application_match_set_app_info (SynapseApplicationMatch* self,
                                        GAppInfo* value)
{
	SynapseApplicationMatchIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = SYNAPSE_APPLICATION_MATCH_GET_INTERFACE (self);
	if (_iface_->set_app_info) {
		_iface_->set_app_info (self, value);
	}
}

gboolean
synapse_application_match_get_needs_terminal (SynapseApplicationMatch* self)
{
	SynapseApplicationMatchIface* _iface_;
	g_return_val_if_fail (self != NULL, FALSE);
	_iface_ = SYNAPSE_APPLICATION_MATCH_GET_INTERFACE (self);
	if (_iface_->get_needs_terminal) {
		return _iface_->get_needs_terminal (self);
	}
	return FALSE;
}

void
synapse_application_match_set_needs_terminal (SynapseApplicationMatch* self,
                                              gboolean value)
{
	SynapseApplicationMatchIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = SYNAPSE_APPLICATION_MATCH_GET_INTERFACE (self);
	if (_iface_->set_needs_terminal) {
		_iface_->set_needs_terminal (self, value);
	}
}

const gchar*
synapse_application_match_get_filename (SynapseApplicationMatch* self)
{
	SynapseApplicationMatchIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = SYNAPSE_APPLICATION_MATCH_GET_INTERFACE (self);
	if (_iface_->get_filename) {
		return _iface_->get_filename (self);
	}
	return NULL;
}

void
synapse_application_match_set_filename (SynapseApplicationMatch* self,
                                        const gchar* value)
{
	SynapseApplicationMatchIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = SYNAPSE_APPLICATION_MATCH_GET_INTERFACE (self);
	if (_iface_->set_filename) {
		_iface_->set_filename (self, value);
	}
}

static void
synapse_application_match_default_init (SynapseApplicationMatchIface * iface,
                                        gpointer iface_data)
{
	g_object_interface_install_property (iface, g_param_spec_object ("app-info", "app-info", "app-info", g_app_info_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_interface_install_property (iface, g_param_spec_boolean ("needs-terminal", "needs-terminal", "needs-terminal", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_interface_install_property (iface, g_param_spec_string ("filename", "filename", "filename", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
}

static GType
synapse_application_match_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseApplicationMatchIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_application_match_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType synapse_application_match_type_id;
	synapse_application_match_type_id = g_type_register_static (G_TYPE_INTERFACE, "SynapseApplicationMatch", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (synapse_application_match_type_id, SYNAPSE_TYPE_MATCH);
	return synapse_application_match_type_id;
}

GType
synapse_application_match_get_type (void)
{
	static volatile gsize synapse_application_match_type_id__once = 0;
	if (g_once_init_enter (&synapse_application_match_type_id__once)) {
		GType synapse_application_match_type_id;
		synapse_application_match_type_id = synapse_application_match_get_type_once ();
		g_once_init_leave (&synapse_application_match_type_id__once, synapse_application_match_type_id);
	}
	return synapse_application_match_type_id__once;
}

