summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--p2pvr/ice/converters.cpp12
-rw-r--r--p2pvr/ice/p2pvr.ice2
2 files changed, 14 insertions, 0 deletions
diff --git a/p2pvr/ice/converters.cpp b/p2pvr/ice/converters.cpp
index 23861f8..2a6b3c2 100644
--- a/p2pvr/ice/converters.cpp
+++ b/p2pvr/ice/converters.cpp
@@ -43,5 +43,17 @@ namespace Slicer {
{
return *c;
}
+
+ Common::Duration
+ timedurationToDuration(const boost::posix_time::time_duration & td)
+ {
+ return *td;
+ }
+
+ boost::posix_time::time_duration
+ durationToTimeDuration(const Common::Duration & td)
+ {
+ return *td;
+ }
}
diff --git a/p2pvr/ice/p2pvr.ice b/p2pvr/ice/p2pvr.ice
index f191ab8..ff9b859 100644
--- a/p2pvr/ice/p2pvr.ice
+++ b/p2pvr/ice/p2pvr.ice
@@ -36,7 +36,9 @@ module P2PVR {
optional(3) string Title;
optional(4) string Search;
int Priority = 0;
+ [ "slicer:conversion:boost.posix_time.time_duration:timedurationToDuration:durationToTimeDuration" ]
Common::Duration Early;
+ [ "slicer:conversion:boost.posix_time.time_duration:timedurationToDuration:durationToTimeDuration" ]
Common::Duration Late;
bool Repeats = false;
};