/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * libloqui -- Chat/IM client library for GLib
 * Copyright (C) 2004 Yoichi Imai <sunnyone41@gmail.com>
 *
 * This Library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This Library 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with the Gnome Library; see the file COPYING.LIB.  If not,
 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */
#ifndef __LOQUI_PROFILE_H__
#define __LOQUI_PROFILE_H__

/* this is interface */
#include <glib-object.h>

G_BEGIN_DECLS

#define LOQUI_TYPE_PROFILE                 (loqui_profile_get_type ())
#define LOQUI_PROFILE(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), LOQUI_TYPE_PROFILE, LoquiProfile))
#define LOQUI_IS_PROFILE(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LOQUI_TYPE_PROFILE))
#define LOQUI_PROFILE_GET_IFACE(obj)       (G_TYPE_INSTANCE_GET_INTERFACE ((obj), LOQUI_TYPE_PROFILE, LoquiProfileIface))

typedef struct _LoquiProfile            LoquiProfile; /* dummy */
typedef struct _LoquiProfileIface       LoquiProfileIface;

struct _LoquiProfileIface
{
        GTypeInterface parent;

	void (* set_profile_type_name) (LoquiProfile *self, const gchar *type_name);
	gchar * (* get_profile_type_name) (LoquiProfile *self); /* dynamic */
	
	void (* set_profile_value) (LoquiProfile *self, const gchar *key, const GValue *value);
	void (* get_profile_value) (LoquiProfile *self, const gchar *key, GValue *value);
	
	GParamSpec * (* get_profile_value_spec) (LoquiProfile *self, const gchar *key, const gchar *type_hint);
	GList * (* get_profile_key_list) (LoquiProfile *self);
};

GType loqui_profile_get_type(void) G_GNUC_CONST;

void loqui_profile_set_profile_type_name(LoquiProfile *self, const gchar *type_name);
gchar *loqui_profile_get_profile_type_name(LoquiProfile *self);

void loqui_profile_set_profile_value(LoquiProfile *self, const gchar *key, const GValue *value);
void loqui_profile_get_profile_value(LoquiProfile *self, const gchar *key, GValue *value);

GParamSpec *loqui_profile_get_profile_value_spec(LoquiProfile *self, const gchar *key, const gchar *type_hint); /* type_hint: reserved for the future */

GList *loqui_profile_get_profile_key_list(LoquiProfile *self); /* List and strings are dynamically generated */

G_END_DECLS

#endif /* __LOQUI_PROFILE_H__ */
