[mythtv-commits] mythtv/master commit: 974dcf49c by Mark Kendall (mark-kendall)

MythTV noreply at mythtv.org
Thu Nov 10 20:32:26 UTC 2011


      Author:  Mark Kendall <mkendall at mythtv.org>
 Change Date:  2011-11-10T12:32:06-08:00
   Push Date:  2011/11/10 12:32:13 -0800
  Repository:  mythtv
      Branch:  master
New Revision:  974dcf49c17204d5af1540227caa263b50167476
   Changeset:  https://github.com/MythTV/mythtv/commit/974dcf49c

Log:

Services API: Add initial Status service to MythFrontend.

- removes the 'old' status method from MythFEXML.

- adds a new frontend service to fetch the status which should respond
to requests for xml, json etc

- the previous approach of having the UI send the status back via an
event would not work with the services structure (the objects created to
respond to requests do not have their own thread and are transient), so
I instead added a state tracker singleton to libmythui that is refreshed
on request. This could obviously be extended for other purposes.

- more MythFEXML methods will be moved over in due course and the whole
frontend remote interface reviewed (we now have a frontend service, the
http status page and the other MythFEXML methods).

Added:

   mythtv/libs/libmythservicecontracts/datacontracts/frontendStatus.h
   mythtv/libs/libmythservicecontracts/services/frontendServices.h
   mythtv/libs/libmythui/mythuistatetracker.cpp
   mythtv/libs/libmythui/mythuistatetracker.h
   mythtv/programs/mythfrontend/serviceHosts/frontendServiceHost.h
   mythtv/programs/mythfrontend/services/frontend.cpp
   mythtv/programs/mythfrontend/services/frontend.h

Modified:

   mythtv/libs/libmythservicecontracts/libmythservicecontracts.pro
   mythtv/libs/libmythtv/tv_play.cpp
   mythtv/libs/libmythui/libmythui.pro
   mythtv/libs/libmythui/mythmainwindow.cpp
   mythtv/programs/mythfrontend/mediarenderer.cpp
   mythtv/programs/mythfrontend/mythfexml.cpp
   mythtv/programs/mythfrontend/mythfexml.h
   mythtv/programs/mythfrontend/mythfrontend.pro



More information about the mythtv-commits mailing list