summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMountainMan <MountainMan@e10066b5-e1e2-0310-b819-94efdf66514b>2004-02-02 17:57:53 +0000
committerMountainMan <MountainMan@e10066b5-e1e2-0310-b819-94efdf66514b>2004-02-02 17:57:53 +0000
commit41b962e0042a8e3cf66caeea7fd6610648175941 (patch)
treee9f294a6453e73050f56d0f1c81a4bf82dd8bd07
parentd79d2d24fcf5a3b4594face6a8c7e7bcb36d1dbc (diff)
downloadvdr-plugin-muggle-41b962e0042a8e3cf66caeea7fd6610648175941.tar.gz
vdr-plugin-muggle-41b962e0042a8e3cf66caeea7fd6610648175941.tar.bz2
values m_ival, m_bbal, m_strval are now public
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk/muggle-plugin@15 e10066b5-e1e2-0310-b819-94efdf66514b
-rw-r--r--mg_media.c35
-rw-r--r--mg_media.h20
2 files changed, 10 insertions, 45 deletions
diff --git a/mg_media.c b/mg_media.c
index be86621..4027ab9 100644
--- a/mg_media.c
+++ b/mg_media.c
@@ -3,8 +3,8 @@
* \brief Top level access to media in vdr plugin muggle
* for the vdr muggle plugindatabase
********************************************************************
- * \version $Revision: 1.2 $
- * \date $Date: 2004/02/02 02:01:11 $
+ * \version $Revision: 1.3 $
+ * \date $Date: 2004/02/02 17:57:53 $
* \author Ralf Klueber, Lars von Wedel, Andreas Kellner
* \author file owner: $Author: MountainMan $
*
@@ -48,10 +48,6 @@ mgFilterInt::~mgFilterInt()
{
}
-int mgFilterInt::getVal()
-{
- return m_intval;
-}
string mgFilterInt::getStrVal()
{
char buffer[20];
@@ -68,11 +64,6 @@ int mgFilterInt::getMax()
return m_max;
}
-void mgFilterInt::setVal(int value)
-{
- m_intval = value;
-}
-
mgFilterString::mgFilterString(const char *name, const char* value)
: mgFilter(name)
{
@@ -87,24 +78,12 @@ mgFilterString::~mgFilterString()
}
}
-const char* mgFilterString::getVal()
-{
- return m_strval;
-}
string mgFilterString::getStrVal()
{
return (string) m_strval;
}
-void mgFilterString::setVal(const char* value)
-{
- if(m_strval)
- {
- free(m_strval);
- }
- m_strval = strdup(value);
-}
mgFilterBool::mgFilterBool(const char *name, bool value)
: mgFilter(name)
{
@@ -115,11 +94,6 @@ mgFilterBool::~mgFilterBool()
{
}
-bool mgFilterBool::getVal()
-{
- return m_bval;
-}
-
string mgFilterBool::getStrVal()
{
if(m_bval)
@@ -128,11 +102,6 @@ string mgFilterBool::getStrVal()
return "false";
}
-void mgFilterBool::setVal(bool value)
-{
- m_bval = value;
-}
-
mgTrackFilters::mgTrackFilters()
{
}
diff --git a/mg_media.h b/mg_media.h
index 9e8c3e7..a77500a 100644
--- a/mg_media.h
+++ b/mg_media.h
@@ -3,8 +3,8 @@
* \brief Top level access to media in vdr plugin muggle
* for the vdr muggle plugindatabase
********************************************************************
- * \version $Revision: 1.2 $
- * \date $Date: 2004/02/02 02:01:11 $
+ * \version $Revision: 1.3 $
+ * \date $Date: 2004/02/02 17:57:53 $
* \author Ralf Klueber, Lars von Wedel, Andreas Kellner
* \author file owner: $Author: MountainMan $
*
@@ -51,9 +51,10 @@ class mgFilterInt : public mgFilter
private:
int m_min;
int m_max;
- int m_intval;
public:
+ int m_intval;
+
mgFilterInt(const char *name, int value, int min = 0, int max = INT_MAX);
virtual ~mgFilterInt();
@@ -61,38 +62,33 @@ class mgFilterInt : public mgFilter
int getMin();
int getMax();
virtual std::string getStrVal();
-
- void setVal(int value);
};
class mgFilterString : public mgFilter
{
private:
- char* m_strval;
public:
+ char* m_strval;
+
mgFilterString(const char *name, const char* value);
virtual ~mgFilterString();
- const char* getVal();
virtual std::string getStrVal();
-
- void setVal(const char* val);
};
class mgFilterBool : public mgFilter
{
private:
- bool m_bval;
public:
+ bool m_bval;
+
mgFilterBool(const char *name, bool value);
virtual ~mgFilterBool();
- bool getVal();
virtual std::string getStrVal();
- void setVal(bool val);
};
class mgTrackFilters