00001
00002
00003
00004
00005
00006
00007
00008 #ifndef _CMENUSETUPUPNP_H
00009 #define _CMENUSETUPUPNP_H
00010
00011 #include <vdr/plugin.h>
00012 #include "../server/server.h"
00013 #include "config.h"
00014
00021 class cMenuSetupUPnP : public cMenuSetupPage {
00022 public:
00023 cMenuSetupUPnP();
00024
00035 virtual eOSState ProcessKey(
00036 eKeys Key
00037 );
00038 protected:
00044 virtual void Store(void);
00050 void Update(void);
00056 void Load(void);
00057 private:
00058 const char* const* getInterfaceList(int *count);
00059 int getInterfaceIndex(const char* Interface);
00060 const char* getInterface(int Index);
00061 cOsdItem *mCtrlBind;
00062 cOsdItem *mCtrlEnabled;
00063 cOsdItem *mCtrlPort;
00064 cOsdItem *mCtrlAutoMode;
00065 cUPnPServer* mUpnpServer;
00073 int mEnable;
00074 int mAutoSetup;
00084 int mPort;
00085 int mDetectPort;
00093 int mInterfaceIndex;
00099 char *mAddress;
00100 };
00101
00102 #endif
00103