00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00012
00013 #ifndef CHANNELSERVICES_H_
00014 #define CHANNELSERVICES_H_
00015
00016 #include "service.h"
00017
00018 #include "datacontracts/channelInfoList.h"
00019 #include "datacontracts/videoSource.h"
00020 #include "datacontracts/videoSourceList.h"
00021 #include "datacontracts/videoMultiplex.h"
00022 #include "datacontracts/videoMultiplexList.h"
00023 #include "datacontracts/lineup.h"
00024
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00040
00041 class SERVICE_PUBLIC ChannelServices : public Service
00042 {
00043 Q_OBJECT
00044 Q_CLASSINFO( "version" , "1.2" );
00045 Q_CLASSINFO( "AddDBChannel_Method", "POST" )
00046 Q_CLASSINFO( "UpdateDBChannel_Method", "POST" )
00047 Q_CLASSINFO( "RemoveDBChannel_Method", "POST" )
00048 Q_CLASSINFO( "AddVideoSource_Method", "POST" )
00049 Q_CLASSINFO( "UpdateVideoSource_Method", "POST" )
00050 Q_CLASSINFO( "RemoveVideoSource_Method", "POST" )
00051
00052 public:
00053
00054
00055
00056
00057 ChannelServices( QObject *parent = 0 ) : Service( parent )
00058 {
00059 DTC::ChannelInfoList::InitializeCustomTypes();
00060 DTC::VideoSource::InitializeCustomTypes();
00061 DTC::VideoSourceList::InitializeCustomTypes();
00062 DTC::VideoMultiplex::InitializeCustomTypes();
00063 DTC::VideoMultiplexList::InitializeCustomTypes();
00064 DTC::Lineup::InitializeCustomTypes();
00065 DTC::LineupList::InitializeCustomTypes();
00066 }
00067
00068 public slots:
00069
00070
00071
00072 virtual DTC::ChannelInfoList* GetChannelInfoList ( int SourceID,
00073 int StartIndex,
00074 int Count ) = 0;
00075
00076 virtual DTC::ChannelInfo* GetChannelInfo ( int ChanID ) = 0;
00077
00078 virtual bool UpdateDBChannel ( uint MplexID,
00079 uint SourceID,
00080 uint ChannelID,
00081 const QString &CallSign,
00082 const QString &ChannelName,
00083 const QString &ChannelNumber,
00084 uint ServiceID,
00085 uint ATSCMajorChannel,
00086 uint ATSCMinorChannel,
00087 bool UseEIT,
00088 bool visible,
00089 const QString &FrequencyID,
00090 const QString &Icon,
00091 const QString &Format,
00092 const QString &XMLTVID,
00093 const QString &DefaultAuthority ) = 0;
00094
00095 virtual bool AddDBChannel ( uint MplexID,
00096 uint SourceID,
00097 uint ChannelID,
00098 const QString &CallSign,
00099 const QString &ChannelName,
00100 const QString &ChannelNumber,
00101 uint ServiceID,
00102 uint ATSCMajorChannel,
00103 uint ATSCMinorChannel,
00104 bool UseEIT,
00105 bool visible,
00106 const QString &FrequencyID,
00107 const QString &Icon,
00108 const QString &Format,
00109 const QString &XMLTVID,
00110 const QString &DefaultAuthority ) = 0;
00111
00112 virtual bool RemoveDBChannel ( uint ChannelID ) = 0;
00113
00114
00115
00116 virtual DTC::VideoSourceList* GetVideoSourceList ( void ) = 0;
00117
00118 virtual DTC::VideoSource* GetVideoSource ( uint SourceID ) = 0;
00119
00120 virtual bool UpdateVideoSource ( uint SourceID,
00121 const QString &SourceName,
00122 const QString &Grabber,
00123 const QString &UserId,
00124 const QString &FreqTable,
00125 const QString &LineupId,
00126 const QString &Password,
00127 bool UseEIT,
00128 const QString &ConfigPath,
00129 int NITId ) = 0;
00130
00131 virtual int AddVideoSource ( const QString &SourceName,
00132 const QString &Grabber,
00133 const QString &UserId,
00134 const QString &FreqTable,
00135 const QString &LineupId,
00136 const QString &Password,
00137 bool UseEIT,
00138 const QString &ConfigPath,
00139 int NITId ) = 0;
00140
00141 virtual bool RemoveVideoSource ( uint SourceID ) = 0;
00142
00143 virtual DTC::LineupList* GetDDLineupList ( const QString &Source,
00144 const QString &UserId,
00145 const QString &Password ) = 0;
00146
00147 virtual int FetchChannelsFromSource( const uint SourceId,
00148 const uint CardId,
00149 bool WaitForFinish ) = 0;
00150
00151
00152
00153 virtual DTC::VideoMultiplexList* GetVideoMultiplexList ( int SourceID,
00154 int StartIndex,
00155 int Count ) = 0;
00156
00157 virtual DTC::VideoMultiplex* GetVideoMultiplex ( int MplexID ) = 0;
00158
00159 virtual QStringList GetXMLTVIdList ( int SourceID ) = 0;
00160 };
00161
00162 #endif
00163