/* vtgvcsbackendsitem.c generated by valac 0.12.1.1-323029-dirty, the Vala compiler
 * generated from vtgvcsbackendsitem.vala, do not modify */

/*
 *  vtgvcsbackendsitem.vala - Vala developer toys for GEdit
 *  
 *  Copyright (C) 2008 - Andrea Del Signore <sejerpz@tin.it>
 *  
 *  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., 59 Temple Place, Suite 330,
 *  Boston, MA 02111-1307, USA.
 */

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>


#define VTG_VCS_BACKENDS_TYPE_STATES (vtg_vcs_backends_states_get_type ())

#define VTG_VCS_BACKENDS_TYPE_ITEM (vtg_vcs_backends_item_get_type ())
#define VTG_VCS_BACKENDS_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VTG_VCS_BACKENDS_TYPE_ITEM, VtgVcsBackendsItem))
#define VTG_VCS_BACKENDS_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VTG_VCS_BACKENDS_TYPE_ITEM, VtgVcsBackendsItemClass))
#define VTG_VCS_BACKENDS_IS_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VTG_VCS_BACKENDS_TYPE_ITEM))
#define VTG_VCS_BACKENDS_IS_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VTG_VCS_BACKENDS_TYPE_ITEM))
#define VTG_VCS_BACKENDS_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VTG_VCS_BACKENDS_TYPE_ITEM, VtgVcsBackendsItemClass))

typedef struct _VtgVcsBackendsItem VtgVcsBackendsItem;
typedef struct _VtgVcsBackendsItemClass VtgVcsBackendsItemClass;
typedef struct _VtgVcsBackendsItemPrivate VtgVcsBackendsItemPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))

typedef enum  {
	VTG_VCS_BACKENDS_STATES_UNTRACKED,
	VTG_VCS_BACKENDS_STATES_ADDED,
	VTG_VCS_BACKENDS_STATES_MODIFIED,
	VTG_VCS_BACKENDS_STATES_DELETED
} VtgVcsBackendsStates;

typedef enum  {
	VTG_VCS_BACKENDS_VCS_ERROR_CommandFailed
} VtgVcsBackendsVcsError;
#define VTG_VCS_BACKENDS_VCS_ERROR vtg_vcs_backends_vcs_error_quark ()
struct _VtgVcsBackendsItem {
	GObject parent_instance;
	VtgVcsBackendsItemPrivate * priv;
	gchar* name;
	VtgVcsBackendsStates state;
};

struct _VtgVcsBackendsItemClass {
	GObjectClass parent_class;
};


static gpointer vtg_vcs_backends_item_parent_class = NULL;
static GType vtg_vcs_backends_item_type_id = 0;

GType vtg_vcs_backends_states_get_type (void) G_GNUC_CONST;
GQuark vtg_vcs_backends_vcs_error_quark (void);
GType vtg_vcs_backends_item_get_type (void) G_GNUC_CONST;
GType vtg_vcs_backends_item_register_type (GTypeModule * module);
enum  {
	VTG_VCS_BACKENDS_ITEM_DUMMY_PROPERTY
};
VtgVcsBackendsItem* vtg_vcs_backends_item_new (void);
VtgVcsBackendsItem* vtg_vcs_backends_item_construct (GType object_type);
static void vtg_vcs_backends_item_finalize (GObject* obj);


GType vtg_vcs_backends_states_get_type (void) {
	static volatile gsize vtg_vcs_backends_states_type_id__volatile = 0;
	if (g_once_init_enter (&vtg_vcs_backends_states_type_id__volatile)) {
		static const GEnumValue values[] = {{VTG_VCS_BACKENDS_STATES_UNTRACKED, "VTG_VCS_BACKENDS_STATES_UNTRACKED", "untracked"}, {VTG_VCS_BACKENDS_STATES_ADDED, "VTG_VCS_BACKENDS_STATES_ADDED", "added"}, {VTG_VCS_BACKENDS_STATES_MODIFIED, "VTG_VCS_BACKENDS_STATES_MODIFIED", "modified"}, {VTG_VCS_BACKENDS_STATES_DELETED, "VTG_VCS_BACKENDS_STATES_DELETED", "deleted"}, {0, NULL, NULL}};
		GType vtg_vcs_backends_states_type_id;
		vtg_vcs_backends_states_type_id = g_enum_register_static ("VtgVcsBackendsStates", values);
		g_once_init_leave (&vtg_vcs_backends_states_type_id__volatile, vtg_vcs_backends_states_type_id);
	}
	return vtg_vcs_backends_states_type_id__volatile;
}


GQuark vtg_vcs_backends_vcs_error_quark (void) {
	return g_quark_from_static_string ("vtg_vcs_backends_vcs_error-quark");
}


VtgVcsBackendsItem* vtg_vcs_backends_item_construct (GType object_type) {
	VtgVcsBackendsItem * self = NULL;
	self = (VtgVcsBackendsItem*) g_object_new (object_type, NULL);
	return self;
}


VtgVcsBackendsItem* vtg_vcs_backends_item_new (void) {
	return vtg_vcs_backends_item_construct (VTG_VCS_BACKENDS_TYPE_ITEM);
}


static void vtg_vcs_backends_item_class_init (VtgVcsBackendsItemClass * klass) {
	vtg_vcs_backends_item_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->finalize = vtg_vcs_backends_item_finalize;
}


static void vtg_vcs_backends_item_instance_init (VtgVcsBackendsItem * self) {
	gchar* _tmp0_;
	_tmp0_ = g_strdup ("");
	self->name = _tmp0_;
	self->state = VTG_VCS_BACKENDS_STATES_UNTRACKED;
}


static void vtg_vcs_backends_item_finalize (GObject* obj) {
	VtgVcsBackendsItem * self;
	self = VTG_VCS_BACKENDS_ITEM (obj);
	_g_free0 (self->name);
	G_OBJECT_CLASS (vtg_vcs_backends_item_parent_class)->finalize (obj);
}


GType vtg_vcs_backends_item_get_type (void) {
	return vtg_vcs_backends_item_type_id;
}


GType vtg_vcs_backends_item_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (VtgVcsBackendsItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vtg_vcs_backends_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VtgVcsBackendsItem), 0, (GInstanceInitFunc) vtg_vcs_backends_item_instance_init, NULL };
	vtg_vcs_backends_item_type_id = g_type_module_register_type (module, G_TYPE_OBJECT, "VtgVcsBackendsItem", &g_define_type_info, 0);
	return vtg_vcs_backends_item_type_id;
}



