summaryrefslogtreecommitdiff
path: root/p2pvr/lib/objectRowState.h
diff options
context:
space:
mode:
Diffstat (limited to 'p2pvr/lib/objectRowState.h')
-rw-r--r--p2pvr/lib/objectRowState.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/p2pvr/lib/objectRowState.h b/p2pvr/lib/objectRowState.h
index f305469..d98380b 100644
--- a/p2pvr/lib/objectRowState.h
+++ b/p2pvr/lib/objectRowState.h
@@ -4,15 +4,27 @@
#include <boost/function.hpp>
#include <string>
#include <rowSet.h>
+#include <slicer/modelParts.h>
typedef boost::function<void(const std::string &, bool)> ColumnCreator;
typedef boost::function<void(const ColumnCreator &)> ColumnSpecifier;
+void BindColumns(Slicer::ModelPartPtr, RowState &);
+
template <typename V>
-void BindColumns(RowState &, const V &);
+void BindColumns(RowState & rs, const V & v)
+{
+ BindColumns(Slicer::ModelPartFor(const_cast<V &>(v)), rs);
+}
+
+void CreateColumns(Slicer::ModelPartPtr, const ColumnCreator &);
template <typename V>
-void CreateColumns(const ColumnCreator &);
+void CreateColumns(const ColumnCreator & cc)
+{
+ V v;
+ CreateColumns(Slicer::ModelPartFor(v), cc);
+}
template <typename T>
class ObjectRowState : public RowState {