[mythtv-firehose] mythtv/master commit: ce52b5eee by Robert McNamara (rmcnamara)
MythTV
noreply at mythtv.org
Fri Nov 11 18:28:36 UTC 2011
Author: Robert McNamara <rmcnamara at mythtv.org>
Change Date: 2011-11-11T10:26:40-08:00
Push Date: 2011/11/11 10:28:20 -0800
Repository: mythtv
Branch: master
New Revision: ce52b5eeeb5ff3a22e64b415b7e81132457637a1
Changeset: https://github.com/MythTV/mythtv/commit/ce52b5eee
Log:
Services API: Naming standardization. PLEASE READ IF YOU ARE USING SERVICES.
Rename a number of the existing APIs for naming consistency. There's
never going to be another good chance to change API names and it's
a good idea to start with some consistency before it reaches a broader
audience.
* For methods returning data (besides bool returns), use the prefix "Get".
* For methods returning a list of items, use the suffix "List".
* For methods adding a new item, use the prefix "Add".
* For methods removing an item from the DB or disk, use the prefix "Remove".
* For methods returning a single item, use the singular of that item name.
The following methods are affected:
BEFORE -> AFTER
CreateDBChannel -> AddDBChannel
DeleteDBChannel -> RemoveDBChannel
CreateVideoSource -> AddVideoSource
DeleteVideoSource -> RemoveVideoSource
GetDDLineups -> GetDDLineupList
GetXMLTVids -> GetXMLTVidList
GetExpiring -> GetExpiringList
GetRecorded -> GetRecordedList
GetRecordedItem -> GetRecorded
RemoveRecordedItem -> RemoveRecorded
GetConflicts -> GetConflictList
GetUpcoming -> GetUpcomingList
Encoders -> GetEncoderList
GetRecordSchedules -> GetRecordScheduleList
GetVideos -> GetVideoList
GetVideoById -> GetVideo
Modified:
mythtv/html/misc/overview.qsp
mythtv/html/samples/recorded.qsp
mythtv/html/setup/js/channeleditor.js
mythtv/libs/libmythservicecontracts/services/channelServices.h
mythtv/libs/libmythservicecontracts/services/dvrServices.h
mythtv/libs/libmythservicecontracts/services/videoServices.h
mythtv/programs/mythbackend/services/channel.cpp
mythtv/programs/mythbackend/services/channel.h
mythtv/programs/mythbackend/services/dvr.cpp
mythtv/programs/mythbackend/services/dvr.h
mythtv/programs/mythbackend/services/video.cpp
mythtv/programs/mythbackend/services/video.h
More information about the mythtv-firehose
mailing list