Permalink
Browse files

dropped mythtv PVR client

  • Loading branch information...
1 parent f075e8c commit ed7c6cc31bcad928538f7f6bababa7047c047354 @opdenkamp committed May 18, 2012
Showing with 0 additions and 1,690 deletions.
  1. +0 −2 Makefile.in
  2. +0 −1 configure.in
  3. +0 −25 xbmc/pvrclients/mythtv/Makefile.in
  4. +0 −144 xbmc/pvrclients/mythtv/MythXml.cpp
  5. +0 −34 xbmc/pvrclients/mythtv/MythXml.h
  6. +0 −482 xbmc/pvrclients/mythtv/client.cpp
  7. +0 −48 xbmc/pvrclients/mythtv/client.h
  8. +0 −25 xbmc/pvrclients/mythtv/libmythxml/GetChannelListCommand.h
  9. +0 −19 xbmc/pvrclients/mythtv/libmythxml/GetChannelListParameters.h
  10. +0 −53 xbmc/pvrclients/mythtv/libmythxml/GetChannelListResult.cpp
  11. +0 −17 xbmc/pvrclients/mythtv/libmythxml/GetChannelListResult.h
  12. +0 −24 xbmc/pvrclients/mythtv/libmythxml/GetNumChannelsCommand.h
  13. +0 −19 xbmc/pvrclients/mythtv/libmythxml/GetNumChannelsParameters.h
  14. +0 −54 xbmc/pvrclients/mythtv/libmythxml/GetNumChannelsResult.cpp
  15. +0 −23 xbmc/pvrclients/mythtv/libmythxml/GetNumChannelsResult.h
  16. +0 −18 xbmc/pvrclients/mythtv/libmythxml/GetProgramGuideCommand.h
  17. +0 −43 xbmc/pvrclients/mythtv/libmythxml/GetProgramGuideParameters.cpp
  18. +0 −38 xbmc/pvrclients/mythtv/libmythxml/GetProgramGuideParameters.h
  19. +0 −331 xbmc/pvrclients/mythtv/libmythxml/GetProgramGuideResult.cpp
  20. +0 −25 xbmc/pvrclients/mythtv/libmythxml/GetProgramGuideResult.h
  21. +0 −16 xbmc/pvrclients/mythtv/libmythxml/Makefile
  22. +0 −42 xbmc/pvrclients/mythtv/libmythxml/MythXmlCommand.cpp
  23. +0 −49 xbmc/pvrclients/mythtv/libmythxml/MythXmlCommand.h
  24. +0 −33 xbmc/pvrclients/mythtv/libmythxml/MythXmlCommandParameters.cpp
  25. +0 −43 xbmc/pvrclients/mythtv/libmythxml/MythXmlCommandParameters.h
  26. +0 −35 xbmc/pvrclients/mythtv/libmythxml/MythXmlCommandResult.h
  27. +0 −18 xbmc/pvrclients/mythtv/libmythxml/SChannel.h
  28. +0 −29 xbmc/pvrclients/mythtv/libmythxml/SEpg.h
View
@@ -176,7 +176,6 @@ endif
PVR_DIRS=\
xbmc/pvrclients/MediaPortal \
- xbmc/pvrclients/mythtv \
xbmc/pvrclients/vdr-vnsi \
xbmc/pvrclients/tvheadend \
xbmc/pvrclients/pvr-demo
@@ -280,7 +279,6 @@ screensavers: $(SS_DIRS)
pvrclients: exports
$(MAKE) -C xbmc/pvrclients/MediaPortal
- $(MAKE) -C xbmc/pvrclients/mythtv
$(MAKE) -C xbmc/pvrclients/vdr-vnsi
$(MAKE) -C xbmc/pvrclients/tvheadend
$(MAKE) -C xbmc/pvrclients/pvr-demo
View
@@ -1986,7 +1986,6 @@ OUTPUT_FILES="Makefile \
xbmc/visualizations/iTunes/Makefile \
xbmc/pvrclients/Makefile.include \
xbmc/pvrclients/MediaPortal/Makefile \
- xbmc/pvrclients/mythtv/Makefile \
xbmc/pvrclients/pvr-demo/Makefile \
xbmc/pvrclients/tvheadend/Makefile \
xbmc/pvrclients/vdr-vnsi/Makefile \
@@ -1,25 +0,0 @@
-#
-# Makefile for the XBMC MythTV PVR AddOn
-#
-# See the README for copyright information and
-# how to reach the author.
-#
-
-LIBS = libmythxml/libmythxml.a
-LIBDIR = @abs_top_srcdir@/addons/pvr.mythtv
-LIB = @abs_top_srcdir@/addons/pvr.mythtv/XBMC_Mythtv.pvr
-
-SRCS=client.cpp \
- MythXml.cpp
-
-include ../Makefile.include
-
-clean:
- -rm -f $(OBJS) $(LIB) *.P *~
- $(MAKE) -C libmythxml clean
-
-INCLUDES += -I../../linux
-
-$(LIB): $(OBJS)
- $(MAKE) -C libmythxml
- $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -g $(OBJS) $(LIBS) $(LIBDIRS) $(SILIB) -o $(LIB)
@@ -1,144 +0,0 @@
-/*
- * MythXml.cpp
- *
- * Created on: Oct 7, 2010
- * Author: tafypz
- */
-
-#include "MythXml.h"
-
-#include "filesystem/CurlFile.h"
-#include "utils/log.h"
-
-#include "libmythxml/GetNumChannelsParameters.h"
-#include "libmythxml/GetNumChannelsResult.h"
-#include "libmythxml/GetNumChannelsCommand.h"
-#include "libmythxml/GetChannelListCommand.h"
-#include "libmythxml/GetChannelListParameters.h"
-#include "libmythxml/GetChannelListResult.h"
-#include "libmythxml/GetProgramGuideParameters.h"
-#include "libmythxml/GetProgramGuideResult.h"
-#include "libmythxml/GetProgramGuideCommand.h"
-
-
-using namespace XFILE;
-
-MythXml::MythXml() {
- hostname_ = "";
- port_ = -1;
- pin_ = -1;
- timeout_ = -1;
-}
-
-MythXml::~MythXml() {
-}
-
-void MythXml::init(){
-}
-
-void MythXml::cleanup(){
-}
-
-bool MythXml::open(CStdString hostname, int port, CStdString user, CStdString pass, int pin, long timeout){
- hostname_ = hostname;
- port_ = port;
- timeout_ = timeout;
- pin_ = pin;
- CStdString strUrl;
- strUrl.Format("http://%s:%i/Myth/GetConnectionInfo?Pin=%i", hostname.c_str(), port, pin);
- CStdString strXML;
-
- CCurlFile http;
-
- http.SetTimeout(timeout);
- if(!http.Get(strUrl, strXML)){
- CLog::Log(LOGDEBUG, "MythXml - Could not open connection to mythtv backend.");
- http.Cancel();
- return false;
- }
- http.Cancel();
- return true;
-}
-
-int MythXml::getNumChannels(){
- if(!checkConnection())
- return 0;
- GetNumChannelsCommand cmd;
- GetNumChannelsParameters params;
- GetNumChannelsResult result;
- cmd.execute(hostname_, port_, params, result, timeout_);
- return result.getNumberOfChannels();
-}
-
-PVR_ERROR MythXml::requestChannelList(PVR_HANDLE handle, bool bRadio){
- if(!checkConnection())
- return PVR_ERROR_SERVER_ERROR;
- GetChannelListCommand cmd;
- GetChannelListParameters params;
- GetChannelListResult result;
- cmd.execute(hostname_, port_, params, result, timeout_);
-
- if(!result.isSuccess())
- return PVR_ERROR_UNKNOWN;
-
- const vector<SChannel>& channellist = result.getChannels();
- vector<SChannel>::const_iterator it;
- PVR_CHANNEL tag;
- for( it = channellist.begin(); it != channellist.end(); ++it){
- const SChannel& channel = *it;
- memset(&tag, 0 , sizeof(tag));
- tag.iUniqueId = channel.id;
- tag.iChannelNumber = channel.id;
- tag.strChannelName = channel.name.c_str();
-// tag.callsign = channel.callsign.c_str();;
- tag.bIsRadio = false;
- tag.strInputFormat = "";
- tag.strStreamURL = "";
-
- PVR->TransferChannelEntry(handle, &tag);
- }
- return PVR_ERROR_NO_ERROR;
-}
-
-PVR_ERROR MythXml::requestEPGForChannel(PVR_HANDLE handle, const PVR_CHANNEL &channel, time_t iStart, time_t iEnd){
- if(!checkConnection())
- return PVR_ERROR_SERVER_ERROR;
- GetProgramGuideCommand cmd;
- GetProgramGuideParameters params(channel.iUniqueId, CDateTime(iStart), CDateTime(iEnd), true);
- GetProgramGuideResult result;
-
- cmd.execute(hostname_, port_, params, result, timeout_);
-
- if(!result.isSuccess())
- return PVR_ERROR_UNKNOWN;
-
- EPG_TAG guideItem;
- const vector<SEpg>& epgInfo = result.getEpg();
- vector<SEpg>::const_iterator it;
- for( it = epgInfo.begin(); it != epgInfo.end(); ++it)
- {
- const SEpg& epg = *it;
- time_t itemStart;
- time_t itemEnd;
- epg.start_time.GetAsTime(itemStart);
- epg.end_time.GetAsTime(itemEnd);
-
- guideItem.iChannelNumber = epg.chan_num;
- guideItem.iUniqueBroadcastId = epg.id;
- guideItem.strTitle = epg.title;
- guideItem.strPlotOutline = epg.subtitle;
- guideItem.strPlot = epg.description;
- guideItem.iGenreType = epg.genre_type;
- guideItem.iGenreSubType = epg.genre_subtype;
- guideItem.strGenreDescription = "";
- guideItem.iParentalRating = epg.parental_rating;
- guideItem.startTime = itemStart;
- guideItem.endTime = itemEnd;
- PVR->TransferEpgEntry(handle, &guideItem);
- }
- return PVR_ERROR_NO_ERROR;
-}
-
-bool MythXml::checkConnection(){
- return true;
-}
@@ -1,34 +0,0 @@
-/*
- * MythXml.h
- *
- * Created on: Oct 7, 2010
- * Author: tafypz
- */
-
-#ifndef XBMC_PVRCLIENTS_MYTHTV_MYTHXML_H_
-#define XBMC_PVRCLIENTS_MYTHTV_MYTHXML_H_
-
-#include "client.h"
-
-/*! \class MythXml
- \brief Acts as the glue between the PVR Addon world and the mythXML world.
- */
-class MythXml {
-public:
- MythXml();
- virtual ~MythXml();
- void init();
- void cleanup();
- bool open(CStdString hostname, int port, CStdString user, CStdString pass, int pin, long timeout);
- int getNumChannels();
- PVR_ERROR requestChannelList(PVR_HANDLE handle, bool bRadio);
- PVR_ERROR requestEPGForChannel(PVR_HANDLE handle, const PVR_CHANNEL &channel, time_t iStart, time_t iEnd);
-private:
- bool checkConnection();
- CStdString hostname_;
- int port_;
- int timeout_;
- int pin_;
-};
-
-#endif /* XBMC_PVRCLIENTS_MYTHTV_MYTHXML_H_ */
Oops, something went wrong.

0 comments on commit ed7c6cc

Please sign in to comment.