/* OGMRip - A wrapper library around libdvdread
 * Copyright (C) 2004-2010 Olivier Rolland <billl@users.sourceforge.net>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */

#ifndef __OGMRIP_KEYFILE_SETTINGS_H__
#define __OGMRIP_KEYFILE_SETTINGS_H__

#include <ogmrip-settings.h>

G_BEGIN_DECLS

#define OGMRIP_TYPE_KEYFILE_SETTINGS            (ogmrip_keyfile_settings_get_type ())
#define OGMRIP_KEYFILE_SETTINGS(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), OGMRIP_TYPE_KEYFILE_SETTINGS, OGMRipKeyFileSettings))
#define OGMRIP_KEYFILE_SETTINGS_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), OGMRIP_TYPE_KEYFILE_SETTINGS, OGMRipKeyFileSettingsClass))
#define OGMRIP_IS_KEYFILE_SETTINGS(obj)         (G_TYPE_CHECK_INSTANCE_TYPE (obj, OGMRIP_TYPE_KEYFILE_SETTINGS))
#define OGMRIP_IS_KEYFILE_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), OGMRIP_TYPE_KEYFILE_SETTINGS))

typedef struct _OGMRipKeyFileSettings      OGMRipKeyFileSettings;
typedef struct _OGMRipKeyFileSettingsClass OGMRipKeyFileSettingsClass;
typedef struct _OGMRipKeyFileSettingsPriv  OGMRipKeyFileSettingsPriv;

struct _OGMRipKeyFileSettings
{
  GObject parent_instance;

  OGMRipKeyFileSettingsPriv *priv;
};

struct _OGMRipKeyFileSettingsClass
{
  GObjectClass parent_class;
};

GType            ogmrip_keyfile_settings_get_type (void);
OGMRipSettings * ogmrip_keyfile_settings_new      (void);
gboolean         ogmrip_keyfile_settings_load     (OGMRipKeyFileSettings *settings,
                                                   const gchar           *filename,
                                                   GError                **error);
gboolean         ogmrip_keyfile_settings_save     (OGMRipKeyFileSettings *settings,
                                                   const gchar           *filename,
                                                   GError                **error);

G_END_DECLS

#endif /* __OGMRIP_KEYFILE_SETTINGS_H__ */

