diff options
Diffstat (limited to 'p2pvr/daemon/si.cpp')
-rw-r--r-- | p2pvr/daemon/si.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/p2pvr/daemon/si.cpp b/p2pvr/daemon/si.cpp index 557003c..dda2275 100644 --- a/p2pvr/daemon/si.cpp +++ b/p2pvr/daemon/si.cpp @@ -12,6 +12,7 @@ ResourceString(SI_servicesSelectById, daemon_sql_SI_servicesSelectById_sql); ResourceString(SI_eventById, daemon_sql_SI_eventById_sql); ResourceString(SI_eventsOnNow, daemon_sql_SI_eventsOnNow_sql); ResourceString(SI_eventsInRange, daemon_sql_SI_eventsInRange_sql); +ResourceString(SI_eventSearch, daemon_sql_SI_eventSearch_sql); P2PVR::Deliveries SI::GetAllDeliveries(short type, const Ice::Current &) @@ -125,3 +126,12 @@ SI::EventsInRange(const Common::DateTime & from, const Common::DateTime & to, co return rtn; } +DVBSI::Events +SI::EventSearch(const IceUtil::Optional<std::string> & keywords, const IceUtil::Optional<Ice::Int> & serviceId, const IceUtil::Optional<Common::DateTime> & from, const IceUtil::Optional<Common::DateTime> & to, const Ice::Current &) +{ + DVBSI::Events rtn; + SqlContainerCreator<DVBSI::Events, DVBSI::Event> cc(rtn); + cc.populate(Select(SI_eventSearch, from, to, serviceId, serviceId, keywords, keywords, keywords).second); + return rtn; +} + |