#include <getopt.h>
#include <stdlib.h>
#include <vdr/interface.h>
#include <vdr/plugin.h>

class cProjektStarter{
 public:
  cProjektStarter();
  ~cProjektStarter();
  
 private:
  void umgebungsVariablenSetzen();
  void konfigurationAuslesen();
  void starten();
  void init();

  char setupAussehen[MaxFileName];
  int setupEPGMenue;
  int setupSzenen;
  int setupGraphik;

  // Generell
  char VDRROOT[MaxFileName];
  char DESTDIR[MaxFileName];
  char CONVERT_JOBS[MaxFileName];
  char VDRSYNC[MaxFileName];
  char TCMPLEX[MaxFileName];
  char TCMPLEX_PANTELTJE[MaxFileName];
  char DVBMPLEX[MaxFileName];
  char MPLEX[MaxFileName];
  char MKISOFS[MaxFileName];
  char MENCODER[MaxFileName];
  char LAME[MaxFileName];
  char DVDAUTHOR[MaxFileName];
  char TOSVCD[MaxFileName];
  int PRIO;
  int SLEEP_TIME;
  char TEMPDIR[MaxFileName];
  char LOGDIR[MaxFileName];
  char SVDRPSEND[MaxFileName];
  char PARQ[MaxFileName];
  int DEBUG;
  char COMPRESS[MaxFileName];
  int CONV_TITLEDATE;

      // Project X Java Pfad
      //USE_PX=yes
      //Suse
      //JAVA=/usr/lib/java/bin/java
      //Gentoo
      //JAVA=/opt/blackdown-jdk-1.4.1/bin/java
      // Debian Sarge
      //JAVA=/usr/bin/java
      //JAVA=/usr/local/java/j2sdk1.4.1_02/bin/java

      //VDR2DVD
    char DVD_DESTDIR[MaxFileName];
    char DVDTCMPLEXOPTS[MaxFileName];
    char DVD_DVBMPLEXOPTS[MaxFileName];
    char DVDALLOWEDWIDTH[MaxFileName];
    char DVDTRANSCODEOPTS[MaxFileName];
    char PPMTOY4M_OPTIONS[MaxFileName];
    char DVDTRANSCODEBITRATE[MaxFileName];
    char DVDAUTHORUSERCHAP[MaxFileName];
    char DVDUSESTREAMS[MaxFileName];
    int DVDREMOVEAUTHORDIR;
    int DVDSIZE;
    int CDSIZE;
    char DVDNORM[MaxFileName];
    char DVDMAINSILENCEFILE[MaxFileName];
    char DVDSUBSILENCEFILE[MaxFileName];
    char DVDTEXTPLAYMOVIE[MaxFileName];
    char DVDTEXTMENU[MaxFileName];
    char DVDMAINMENUEPOSTACTION[MaxFileName];
    char DVDMENUEPOSTACTION[MaxFileName];
      //char DVDMAINBACKFILE=
      //char DVDSUBBACKFILE=
    char DVDBUTTONCOLOR[MaxFileName];
    char DVDSUBBUTTONCOLOR[MaxFileName];
    char DVDHIBUTTON2COLOR_MENU[MaxFileName];
    char DVDHIBUTTONCOLOR_MENU[MaxFileName];
    char DVDHIBUTTONCOLOR_SUBMENU[MaxFileName];
    char DVDHIBUTTON2COLOR_SUBMENU[MaxFileName];
    char DVDFILE_MAINBACKGROUND_COLOR[MaxFileName];
    char DVDFILE_SUBBACKGROUND_COLOR[MaxFileName];
    char DVDTEXTCOLOR_MENU[MaxFileName];
    char DVDTEXTCOLOR_SUBMENU[MaxFileName];
    int  DVDMENU_SHADOW;
    char DVDMAINCOLSFG[MaxFileName];
    char DVDMAINCOLSBG[MaxFileName];
    char DVDSUBCOLSFG[MaxFileName];
    char DVDSUBCOLSBG[MaxFileName];
    int DVDMAINMENUETIMEOUT;
    int DVDMENUETIMEOUT;
       
    //mp3-Variablen
    char MP3_DESTDIR[MaxFileName];
    char MP3_OPTS[MaxFileName];
    int MP3_SPLIT;
    char MPLAYERMP3SOURCE[MaxFileName];
    char MP3_TITLEDATE[MaxFileName];
    int MP3_USE_MPG123;
    char MP3USESTREAMS[MaxFileName];
};
