/* Generated by GOB (v2.0.20)   (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 "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 71 "gmpc-profiles.gob"
int 	gmpc_profiles_get_number_of_profiles	(GmpcProfiles * self);
#line 97 "gmpc-profiles.h"
#line 92 "gmpc-profiles.gob"
void 	gmpc_profiles_changed	(GmpcProfiles * self,
					const int changed,
					const int col,
					const char * id);
#line 103 "gmpc-profiles.h"
#line 129 "gmpc-profiles.gob"
GmpcProfiles * 	gmpc_profiles_new	(void);
#line 106 "gmpc-profiles.h"
#line 185 "gmpc-profiles.gob"
void 	gmpc_profiles_free_profile	(Profile * profile);
#line 109 "gmpc-profiles.h"
#line 204 "gmpc-profiles.gob"
Profile * 	gmpc_profiles_new_profile	(void);
#line 112 "gmpc-profiles.h"
#line 272 "gmpc-profiles.gob"
gchar * 	gmpc_profiles_get_hostname	(GmpcProfiles * self,
					const gchar * id);
#line 116 "gmpc-profiles.h"
#line 284 "gmpc-profiles.gob"
const gchar * 	gmpc_profiles_get_name	(GmpcProfiles * self,
					const gchar * id);
#line 120 "gmpc-profiles.h"
#line 296 "gmpc-profiles.gob"
const gchar * 	gmpc_profiles_get_id	(GmpcProfiles * self,
					const gchar * id);
#line 124 "gmpc-profiles.h"
#line 308 "gmpc-profiles.gob"
gchar * 	gmpc_profiles_get_password	(GmpcProfiles * self,
					const gchar * id);
#line 128 "gmpc-profiles.h"
#line 321 "gmpc-profiles.gob"
const gchar * 	gmpc_profiles_get_music_directory	(GmpcProfiles * self,
					const gchar * id);
#line 132 "gmpc-profiles.h"
#line 333 "gmpc-profiles.gob"
int 	gmpc_profiles_get_db_update_time	(GmpcProfiles * self,
					const gchar * id);
#line 136 "gmpc-profiles.h"
#line 345 "gmpc-profiles.gob"
int 	gmpc_profiles_get_port	(GmpcProfiles * self,
					const gchar * id);
#line 140 "gmpc-profiles.h"
#line 358 "gmpc-profiles.gob"
gboolean 	gmpc_profiles_get_do_auth	(GmpcProfiles * self,
					const gchar * id);
#line 144 "gmpc-profiles.h"
#line 371 "gmpc-profiles.gob"
gchar * 	gmpc_profiles_create_new_item	(GmpcProfiles * self,
					const gchar * id);
#line 148 "gmpc-profiles.h"
#line 377 "gmpc-profiles.gob"
gchar * 	gmpc_profiles_create_new_item_with_name	(GmpcProfiles * self,
					const gchar * id,
					const gchar * name);
#line 153 "gmpc-profiles.h"
#line 413 "gmpc-profiles.gob"
void 	gmpc_profiles_remove_item	(GmpcProfiles * self,
					const gchar * id);
#line 157 "gmpc-profiles.h"
#line 452 "gmpc-profiles.gob"
gchar * 	gmpc_profiles_get_current	(GmpcProfiles * self);
#line 160 "gmpc-profiles.h"
#line 475 "gmpc-profiles.gob"
void 	gmpc_profiles_set_current	(GmpcProfiles * self,
					const gchar * id);
#line 164 "gmpc-profiles.h"
#line 487 "gmpc-profiles.gob"
GList * 	gmpc_profiles_get_profiles_ids	(GmpcProfiles * self);
#line 167 "gmpc-profiles.h"
#line 503 "gmpc-profiles.gob"
void 	gmpc_profiles_set_name	(GmpcProfiles * self,
					const gchar * id,
					const gchar * value);
#line 172 "gmpc-profiles.h"
#line 523 "gmpc-profiles.gob"
void 	gmpc_profiles_set_hostname	(GmpcProfiles * self,
					const gchar * id,
					const gchar * value);
#line 177 "gmpc-profiles.h"
#line 543 "gmpc-profiles.gob"
void 	gmpc_profiles_set_password	(GmpcProfiles * self,
					const gchar * id,
					gchar * value);
#line 182 "gmpc-profiles.h"
#line 567 "gmpc-profiles.gob"
void 	gmpc_profiles_set_port	(GmpcProfiles * self,
					const gchar * id,
					int value);
#line 187 "gmpc-profiles.h"
#line 584 "gmpc-profiles.gob"
void 	gmpc_profiles_set_music_directory	(GmpcProfiles * self,
					const gchar * id,
					gchar * value);
#line 192 "gmpc-profiles.h"
#line 606 "gmpc-profiles.gob"
void 	gmpc_profiles_set_db_update_time	(GmpcProfiles * self,
					const gchar * id,
					int value);
#line 197 "gmpc-profiles.h"
#line 623 "gmpc-profiles.gob"
void 	gmpc_profiles_set_do_auth	(GmpcProfiles * self,
					const gchar * id,
					int value);
#line 202 "gmpc-profiles.h"
#line 639 "gmpc-profiles.gob"
gboolean 	gmpc_profiles_has_profile	(GmpcProfiles * self,
					const gchar * id);
#line 206 "gmpc-profiles.h"
#line 675 "gmpc-profiles.gob"
void 	gmpc_profiles_set_profile_from_name	(GmpcProfiles * self,
					const gchar * name);
#line 210 "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
