[mythtv-firehose] mythtv branch master updated by gigem. v0.27-pre2-1003-g2865936

Git Repo Owner noreply at mythtv.org
Wed May 1 14:31:20 UTC 2013


The branch, master has been updated on the
mythtv repository by gitolite user gigem.
       via  2865936d776f42759e2b41ed152126b0b264eb32 (commit)
      from  7d9c51eb75ae37f39a57eb969c0ad7e532738e8a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2865936d776f42759e2b41ed152126b0b264eb32
Author:    David Engel <dengel at mythtv.org> at Wed, 1 May 2013 09:16:07 -0500
Committer: David Engel <dengel at mythtv.org> at Wed, 1 May 2013 09:16:07 -0500
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=2865936d776f42759e2b41ed152126b0b264eb32

Rework recording rule handling in services API.
Thanks to tafy/dev-team%40tikinou.com providing the initial patch and
testing the end result.

The existing AddRecordSchedule() and new UpdateRecordSchedule() calls
essentially take complete, fully-specified rules and sanity check them
before saving.  AddRecordSchedule() is used to add new rules and
UpdateRecordSchedule() is used to update existing rules.

GetRecordSchedule() is changed to conveniently provide rules suitable
for later calls to AddRecordSchedule() and UpdateRecordSchedule().
When given a valid RecordId, GetRecordSchedule() returns that rule.
When given a Template name, GetRecordSchedule() returns an empty rule
initialized with that template.  When given a ChanId and StartTime,
GetRecordSchedule() returns the rule for that program or a new one if
no rule currently exists.  If the MakeOverride parameter is true, the
returned rule for the program will converted to an override rule if
needed.

Clients should always call GetRecordSchedule() with the appropriate
parameters before modifying the rule and then calling
AddRecordSchedule() or UpdateRecordSchedule().  In this way, clients
do not need to know all of the details on how to initialize rules or
update them for specific programs.

Fixes #11495



-----------------------------------------------------------------------

Summary of changes:
 mythtv/libs/libmythbase/mythversion.h              |    2 +-
 .../datacontracts/recRule.h                        |   21 +-
 .../libmythservicecontracts/services/dvrServices.h |   64 ++++-
 mythtv/libs/libmythtv/recordingrule.cpp            |  176 ++++++++++++
 mythtv/libs/libmythtv/recordingrule.h              |    2 +
 mythtv/programs/mythbackend/services/dvr.cpp       |  303 +++++++++++++++++---
 mythtv/programs/mythbackend/services/dvr.h         |   61 ++++-
 .../programs/mythbackend/services/serviceUtil.cpp  |    5 +-
 8 files changed, 564 insertions(+), 70 deletions(-)

-- 



More information about the mythtv-firehose mailing list