Logo Search packages:      
Sourcecode: vdr-plugin-epgsync version File versions  Download package

setup.h

/*
 * setup.h: Settings
 *
 * See the README file for copyright information and how to reach the author.
 */

#ifndef _EPGSYNC_SETUP__H
#define _EPGSYNC_SETUP__H

#include <vdr/config.h>

#define MAX_IP_LENGTH 16

enum eRedirectChannelModes { rcmId, rcmIdName, rcmNameId, rcm_Count };
enum eChannelTypes {
      ctAll, ctDVB_C, ctDVB_S, ctDVB_T, ctAnalog,
#ifdef PLUGINPARAMPATCHVERSNUM
      ctIptv,
#endif
      ct_Count
      };

00023 struct cEpgSyncSetup {
      int hideMainMenuEntry;
      char serverIp[MAX_IP_LENGTH];
      int serverPort;
      int connectAttempts;
      int nowNext;
      int channelByChannel;
      int syncOnStart;
      int redirectChannels;
      int channelTypes;

      bool Parse(const char *Name, const char *Value);
      cEpgSyncSetup& operator=(const cEpgSyncSetup &Setup);
      cEpgSyncSetup();
};

extern cEpgSyncSetup EpgSyncSetup;

00041 class cEpgSyncMenuSetup: public cMenuSetupPage {
      private:
            cEpgSyncSetup setupTmp;
            const char* redirectChannelsTexts[rcm_Count];
            const char* channelTypeTexts[ct_Count];
      protected:
            virtual void Store(void);
      public:
            cEpgSyncMenuSetup();
            virtual ~cEpgSyncMenuSetup();
};

#endif //_EPGSYNC_SETUP__H

Generated by  Doxygen 1.6.0   Back to index