#ifndef __VDRICQSETUP_H
#define __VDRICQSETUP_H


#include <vdr/plugin.h>


#define MAX_ICQPASSWORDLEN 8

class SimpleClient;


// --- cVdrIcqSetup -----------------------------------------------------------

struct cVdrIcqSetup {
        cVdrIcqSetup(void);

        bool SetupParse(const char *Name, const char *Value);

        int  OriginX;
        int  OriginY;
        int  IcqUIN;
        char IcqPassword[MAX_ICQPASSWORDLEN + 1];
        int  StatusOnVDRStartup;
        int  StatusOnOpenVdrICQ;
        int  StatusOnCloseVdrICQ;
        int  TextInputmode;
};

extern cVdrIcqSetup VdrIcqSetup;



// --- cMenuSetupVdrIcq -------------------------------------------------------

class cMenuSetupVdrIcq : public cMenuSetupPage {
private:
  int  newOriginX;
  int  newOriginY;
  int  newIcqUIN;
  char newIcqPassword[MAX_ICQPASSWORDLEN + 1];
  int  newStatusOnVDRStartup;
  int  newStatusOnOpenVdrICQ;
  int  newStatusOnCloseVdrICQ;
  int  newTextInputmode;
  SimpleClient *m_pIcqClient;
  const char *statuslist[9];
  const char *textinputmodelist[2];
protected:
  virtual void Store(void);
public:
  cMenuSetupVdrIcq(SimpleClient *pIcqClient);
  };


#endif // __VDRICQSETUP_H
