#
# Copyright (C) by Stefano Falsetto
# e-mail contact ....: mailto:stefko5@inwind.it
#
#    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
#
#
# Config plugin (phase 4) for disc_cover

configure_disc_cover () {
  begin_check "disc-cover"
  find_prg disc-cover
  DISCCOVER=$FOUND_PRG
  if [ ! -z "$DISCCOVER" ]; then
    DESCRIPTION="Create a CD cover from an item list using disc-cover"
    WHERE=END
    PARAMETERS="--disc-cover|--save-cddbfile|--casetype|--out-type|--out-name|--device"
    DEF_DISCCOVER="$DISCCOVER"
    DEF_COVER_TYPE="jewel"
    DEF_COVER_FILETYPE="ps"
    DEF_COVER_FILENAME="Cover-CD.ps"
    DEF_COVER_DEVICE="/dev/scd0"
  else
    missing disc-cover "http://www.liacs.nl/~jvhemert/disc-cover"
  fi
}

cat_variables_disc_cover () {
cat <<EOF
# Complete path for disc-cover
DEF_DISCCOVER="$DEF_DISCCOVER"

# Default output filename
DEF_COVER_FILENAME="$DEF_COVER_FILENAME"

# Default cover type
DEF_COVER_TYPE="$DEF_COVER_TYPE"

# Default output file type
DEF_COVER_FILETYPE="$DEF_COVER_FILETYPE"

# Default device file
DEF_COVER_DEVICE="$DEF_COVER_DEVICE"

EOF
}

