summaryrefslogtreecommitdiff
path: root/vdr_setup.h
diff options
context:
space:
mode:
Diffstat (limited to 'vdr_setup.h')
-rw-r--r--vdr_setup.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/vdr_setup.h b/vdr_setup.h
new file mode 100644
index 0000000..a77cf75
--- /dev/null
+++ b/vdr_setup.h
@@ -0,0 +1,76 @@
+/*!
+ * \file vdr_setup.h
+ * \brief A setup class for a VDR media plugin (muggle)
+ *
+ * \version $Revision: 1.2 $
+ * \date $Date: 2004/05/28 15:29:19 $
+ * \author Ralf Klueber, Lars von Wedel, Andreas Kellner
+ * \author Responsible author: $Author: lvw $
+ *
+ * $Id: vdr_setup.h,v 1.2 2004/05/28 15:29:19 lvw Exp $
+ *
+ * Adapted from
+ * MP3/MPlayer plugin to VDR (C++)
+ * (C) 2001,2002 Stefan Huelswitt <huels@iname.com>
+ */
+
+#ifndef ___SETUP_MG_H
+#define ___SETUP_MG_H
+
+// #include <osd.h>
+#include <menuitems.h>
+
+#define MAX_STRING_LEN 128
+
+#define DEFAULT_TARGET_LEVEL 25
+#define MAX_TARGET_LEVEL 50
+#define DEFAULT_LIMITER_LEVEL 70
+#define MIN_LIMITER_LEVEL 25
+
+/*!
+ * \brief storage for setup data
+ */
+class mgSetup
+{
+public:
+ int InitLoopMode;
+ int InitShuffleMode;
+ int AudioMode;
+ int DisplayMode;
+ int BackgrMode;
+ int MenuMode;
+ int TargetLevel;
+ int LimiterLevel;
+ int Only48kHz;
+
+ char *DbHost;
+ char *DbName;
+ char *DbUser;
+ char *DbPass;
+ int DbPort;
+ bool GdCompatibility;
+ char *ToplevelDir;
+
+ char PathPrefix[MAX_STRING_LEN];
+
+ public:
+ mgSetup(void);
+};
+
+extern mgSetup the_setup;
+
+/*!
+ * \brief allow user to modify setup on OSD
+ */
+class mgMenuSetup : public cMenuSetupPage
+{
+private:
+ mgSetup m_data;
+protected:
+ virtual void Store();
+public:
+ mgMenuSetup();
+};
+
+
+#endif //___SETUP_MP3_H