/*
 *  Copyright (C) 2004,2005 Marc Pavot <marc.pavot@gmail.com>
 *
 *  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.
 *
 */


#ifndef __ARIO_COVER_H
#define __ARIO_COVER_H

#define COVER_SIZE 70

#include <glib.h>
#include <gmodule.h>

G_BEGIN_DECLS

typedef enum
{
        SMALL_COVER,
        NORMAL_COVER
}ArioCoverHomeCoversSize;

typedef enum
{
        OVERWRITE_MODE_ASK,
        OVERWRITE_MODE_REPLACE,
        OVERWRITE_MODE_SKIP
}ArioCoverOverwriteMode;
G_MODULE_EXPORT
gboolean                     ario_cover_save_cover           (const gchar *artist,
                                                              const gchar *album,
                                                              const gchar *data,
                                                              const int size,
                                                              const ArioCoverOverwriteMode overwrite_mode);

G_MODULE_EXPORT
void                         ario_cover_remove_cover         (const gchar *artist,
                                                              const gchar *album);
G_MODULE_EXPORT
gboolean                     ario_cover_size_is_valid        (const int size);
G_MODULE_EXPORT
gboolean                     ario_cover_cover_exists         (const gchar *artist,
                                                              const gchar *album);
G_MODULE_EXPORT
gchar*                       ario_cover_make_cover_path      (const gchar *artist,
                                                              const gchar *album,
                                                              const ArioCoverHomeCoversSize ario_cover_size);

G_END_DECLS

#endif /* __ARIO_COVER_H */
