/* Generated by GOB (v2.0.16)   (do not edit directly) */

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


#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <libmpd/libmpd.h>
#include <libmpd/debug_printf.h>
#include "config1.h"

#ifndef __GMPC_PROFILES_H__
#define __GMPC_PROFILES_H__

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */



  enum {
	PROFILE_ADDED,
	PROFILE_REMOVED,
	PROFILE_COL_CHANGED,
    PROFILE_CURRENT
	};
  enum {
    PROFILE_COL_NAME,
    PROFILE_COL_HOSTNAME,
    PROFILE_COL_PORT,
    PROFILE_COL_DO_AUTH,
    PROFILE_COL_PASSWORD,
    PROFILE_COL_MUSIC_DIRECTORY,
    PROFILE_COL_DB_UPDATE_TIME,
    PROFILE_NUM_COLS
  };

  typedef struct {
    gchar     *id;
    gchar     *name;
    gchar     *hostname;
    int       port;
    gboolean  do_auth;
    gchar     *password;
    gchar     *music_directory;
    int    db_update_time;
  }Profile;



/*
 * Type checking and casting macros
 */
#define GMPC_TYPE_PROFILES	(gmpc_profiles_get_type())
#define GMPC_PROFILES(obj)	G_TYPE_CHECK_INSTANCE_CAST((obj), gmpc_profiles_get_type(), GmpcProfiles)
#define GMPC_PROFILES_CONST(obj)	G_TYPE_CHECK_INSTANCE_CAST((obj), gmpc_profiles_get_type(), GmpcProfiles const)
#define GMPC_PROFILES_CLASS(klass)	G_TYPE_CHECK_CLASS_CAST((klass), gmpc_profiles_get_type(), GmpcProfilesClass)
#define GMPC_IS_PROFILES(obj)	G_TYPE_CHECK_INSTANCE_TYPE((obj), gmpc_profiles_get_type ())

#define GMPC_PROFILES_GET_CLASS(obj)	G_TYPE_INSTANCE_GET_CLASS((obj), gmpc_profiles_get_type(), GmpcProfilesClass)

/* Private structure type */
typedef struct _GmpcProfilesPrivate GmpcProfilesPrivate;

/*
 * Main object structure
 */
#ifndef __TYPEDEF_GMPC_PROFILES__
#define __TYPEDEF_GMPC_PROFILES__
typedef struct _GmpcProfiles GmpcProfiles;
#endif
struct _GmpcProfiles {
	GObject __parent__;
	/*< private >*/
	GmpcProfilesPrivate *_priv;
};

/*
 * Class definition
 */
typedef struct _GmpcProfilesClass GmpcProfilesClass;
struct _GmpcProfilesClass {
	GObjectClass __parent__;
	/*signal*/void (* changed) (GmpcProfiles * self, const int changed, const int col, const char * id);
	/*signal*/void (* set_current) (GmpcProfiles * self, const gchar * id);
};


/*
 * Public methods
 */
GType	gmpc_profiles_get_type	(void) G_GNUC_CONST;
#line 86 "gmpc-profiles.gob"
void 	gmpc_profiles_changed	(GmpcProfiles * self,
					const int changed,
					const int col,
					const char * id);
#line 101 "gmpc-profiles.h"
#line 123 "gmpc-profiles.gob"
GmpcProfiles * 	gmpc_profiles_new	(void);
#line 104 "gmpc-profiles.h"
#line 183 "gmpc-profiles.gob"
void 	gmpc_profiles_free_profile	(Profile * profile);
#line 107 "gmpc-profiles.h"
#line 202 "gmpc-profiles.gob"
Profile * 	gmpc_profiles_new_profile	(void);
#line 110 "gmpc-profiles.h"
#line 270 "gmpc-profiles.gob"
gchar * 	gmpc_profiles_get_hostname	(GmpcProfiles * self,
					const gchar * id);
#line 114 "gmpc-profiles.h"
#line 282 "gmpc-profiles.gob"
const gchar * 	gmpc_profiles_get_name	(GmpcProfiles * self,
					const gchar * id);
#line 118 "gmpc-profiles.h"
#line 294 "gmpc-profiles.gob"
const gchar * 	gmpc_profiles_get_id	(GmpcProfiles * self,
					const gchar * id);
#line 122 "gmpc-profiles.h"
#line 306 "gmpc-profiles.gob"
gchar * 	gmpc_profiles_get_password	(GmpcProfiles * self,
					const gchar * id);
#line 126 "gmpc-profiles.h"
#line 319 "gmpc-profiles.gob"
gchar * 	gmpc_profiles_get_music_directory	(GmpcProfiles * self,
					const gchar * id);
#line 130 "gmpc-profiles.h"
#line 331 "gmpc-profiles.gob"
int 	gmpc_profiles_get_db_update_time	(GmpcProfiles * self,
					const gchar * id);
#line 134 "gmpc-profiles.h"
#line 343 "gmpc-profiles.gob"
int 	gmpc_profiles_get_port	(GmpcProfiles * self,
					const gchar * id);
#line 138 "gmpc-profiles.h"
#line 356 "gmpc-profiles.gob"
gboolean 	gmpc_profiles_get_do_auth	(GmpcProfiles * self,
					const gchar * id);
#line 142 "gmpc-profiles.h"
#line 369 "gmpc-profiles.gob"
gchar * 	gmpc_profiles_create_new_item	(GmpcProfiles * self,
					const gchar * id);
#line 146 "gmpc-profiles.h"
#line 375 "gmpc-profiles.gob"
gchar * 	gmpc_profiles_create_new_item_with_name	(GmpcProfiles * self,
					const gchar * id,
					const gchar * name);
#line 151 "gmpc-profiles.h"
#line 411 "gmpc-profiles.gob"
void 	gmpc_profiles_remove_item	(GmpcProfiles * self,
					const gchar * id);
#line 155 "gmpc-profiles.h"
#line 450 "gmpc-profiles.gob"
gchar * 	gmpc_profiles_get_current	(GmpcProfiles * self);
#line 158 "gmpc-profiles.h"
#line 473 "gmpc-profiles.gob"
void 	gmpc_profiles_set_current	(GmpcProfiles * self,
					const gchar * id);
#line 162 "gmpc-profiles.h"
#line 485 "gmpc-profiles.gob"
GList * 	gmpc_profiles_get_profiles_ids	(GmpcProfiles * self);
#line 165 "gmpc-profiles.h"
#line 501 "gmpc-profiles.gob"
void 	gmpc_profiles_set_name	(GmpcProfiles * self,
					const gchar * id,
					const gchar * value);
#line 170 "gmpc-profiles.h"
#line 521 "gmpc-profiles.gob"
void 	gmpc_profiles_set_hostname	(GmpcProfiles * self,
					const gchar * id,
					const gchar * value);
#line 175 "gmpc-profiles.h"
#line 541 "gmpc-profiles.gob"
void 	gmpc_profiles_set_password	(GmpcProfiles * self,
					const gchar * id,
					gchar * value);
#line 180 "gmpc-profiles.h"
#line 565 "gmpc-profiles.gob"
void 	gmpc_profiles_set_port	(GmpcProfiles * self,
					const gchar * id,
					int value);
#line 185 "gmpc-profiles.h"
#line 582 "gmpc-profiles.gob"
void 	gmpc_profiles_set_music_directory	(GmpcProfiles * self,
					const gchar * id,
					gchar * value);
#line 190 "gmpc-profiles.h"
#line 604 "gmpc-profiles.gob"
void 	gmpc_profiles_set_db_update_time	(GmpcProfiles * self,
					const gchar * id,
					int value);
#line 195 "gmpc-profiles.h"
#line 621 "gmpc-profiles.gob"
void 	gmpc_profiles_set_do_auth	(GmpcProfiles * self,
					const gchar * id,
					int value);
#line 200 "gmpc-profiles.h"
#line 637 "gmpc-profiles.gob"
gboolean 	gmpc_profiles_has_profile	(GmpcProfiles * self,
					const gchar * id);
#line 204 "gmpc-profiles.h"

/*
 * Signal connection wrapper macros
 */
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
#define gmpc_profiles_connect__changed(object,func,data)	g_signal_connect(GMPC_PROFILES(__extension__ ({GmpcProfiles *___object = (object); ___object; })),"changed",(GCallback) __extension__ ({void (* ___changed) (GmpcProfiles * ___fake___self, const int ___fake___changed, const int ___fake___col, const char * ___fake___id, gpointer ___data ) = (func); ___changed; }), (data))
#define gmpc_profiles_connect_after__changed(object,func,data)	g_signal_connect_after(GMPC_PROFILES(__extension__ ({GmpcProfiles *___object = (object); ___object; })),"changed",(GCallback) __extension__ ({void (* ___changed) (GmpcProfiles * ___fake___self, const int ___fake___changed, const int ___fake___col, const char * ___fake___id, gpointer ___data ) = (func); ___changed; }), (data))
#define gmpc_profiles_connect_data__changed(object,func,data,destroy_data,flags)	g_signal_connect_data(GMPC_PROFILES(__extension__ ({GmpcProfiles *___object = (object); ___object; })),"changed",(GCallback) __extension__ ({void (* ___changed) (GmpcProfiles * ___fake___self, const int ___fake___changed, const int ___fake___col, const char * ___fake___id, gpointer ___data ) = (func); ___changed; }), (data), (destroy_data), (GConnectFlags)(flags))
#define gmpc_profiles_connect__set_current(object,func,data)	g_signal_connect(GMPC_PROFILES(__extension__ ({GmpcProfiles *___object = (object); ___object; })),"set_current",(GCallback) __extension__ ({void (* ___set_current) (GmpcProfiles * ___fake___self, const gchar * ___fake___id, gpointer ___data ) = (func); ___set_current; }), (data))
#define gmpc_profiles_connect_after__set_current(object,func,data)	g_signal_connect_after(GMPC_PROFILES(__extension__ ({GmpcProfiles *___object = (object); ___object; })),"set_current",(GCallback) __extension__ ({void (* ___set_current) (GmpcProfiles * ___fake___self, const gchar * ___fake___id, gpointer ___data ) = (func); ___set_current; }), (data))
#define gmpc_profiles_connect_data__set_current(object,func,data,destroy_data,flags)	g_signal_connect_data(GMPC_PROFILES(__extension__ ({GmpcProfiles *___object = (object); ___object; })),"set_current",(GCallback) __extension__ ({void (* ___set_current) (GmpcProfiles * ___fake___self, const gchar * ___fake___id, gpointer ___data ) = (func); ___set_current; }), (data), (destroy_data), (GConnectFlags)(flags))
#else /* __GNUC__ && !__STRICT_ANSI__ */
#define gmpc_profiles_connect__changed(object,func,data)	g_signal_connect(GMPC_PROFILES(object),"changed",(GCallback)(func),(data))
#define gmpc_profiles_connect_after__changed(object,func,data)	g_signal_connect_after(GMPC_PROFILES(object),"changed",(GCallback)(func),(data))
#define gmpc_profiles_connect_data__changed(object,func,data,destroy_data,flags)	g_signal_connect_data(GMPC_PROFILES(object),"changed",(GCallback)(func),(data),(destroy_data),(GConnectFlags)(flags))
#define gmpc_profiles_connect__set_current(object,func,data)	g_signal_connect(GMPC_PROFILES(object),"set_current",(GCallback)(func),(data))
#define gmpc_profiles_connect_after__set_current(object,func,data)	g_signal_connect_after(GMPC_PROFILES(object),"set_current",(GCallback)(func),(data))
#define gmpc_profiles_connect_data__set_current(object,func,data,destroy_data,flags)	g_signal_connect_data(GMPC_PROFILES(object),"set_current",(GCallback)(func),(data),(destroy_data),(GConnectFlags)(flags))
#endif /* __GNUC__ && !__STRICT_ANSI__ */


#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif
