00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00012
00013 #ifndef CAPTURESERVICES_H_
00014 #define CAPTURESERVICES_H_
00015
00016 #include <QFileInfo>
00017 #include <QStringList>
00018
00019 #include "service.h"
00020
00021 #include "datacontracts/captureCard.h"
00022 #include "datacontracts/captureCardList.h"
00023
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00039
00040 class SERVICE_PUBLIC CaptureServices : public Service
00041 {
00042 Q_OBJECT
00043 Q_CLASSINFO( "version" , "1.4" );
00044 Q_CLASSINFO( "RemoveCaptureCard_Method", "POST" )
00045 Q_CLASSINFO( "AddCaptureCard_Method", "POST" )
00046 Q_CLASSINFO( "UpdateCaptureCard_Method", "POST" )
00047 Q_CLASSINFO( "RemoveCardInput_Method", "POST" )
00048 Q_CLASSINFO( "AddCardInput_Method", "POST" )
00049 Q_CLASSINFO( "UpdateCardInput_Method", "POST" )
00050
00051 public:
00052
00053
00054
00055
00056 CaptureServices( QObject *parent = 0 ) : Service( parent )
00057 {
00058 DTC::CaptureCard::InitializeCustomTypes();
00059 DTC::CaptureCardList::InitializeCustomTypes();
00060 }
00061
00062 public slots:
00063
00064 virtual DTC::CaptureCardList* GetCaptureCardList ( const QString &HostName,
00065 const QString &CardType ) = 0;
00066
00067 virtual DTC::CaptureCard* GetCaptureCard ( int CardId ) = 0;
00068
00069 virtual bool RemoveCaptureCard ( int CardId ) = 0;
00070
00071 virtual int AddCaptureCard ( const QString &VideoDevice,
00072 const QString &AudioDevice,
00073 const QString &VBIDevice,
00074 const QString &CardType,
00075 const uint AudioRateLimit,
00076 const QString &HostName,
00077 const uint DVBSWFilter,
00078 const uint DVBSatType,
00079 bool DVBWaitForSeqStart,
00080 bool SkipBTAudio,
00081 bool DVBOnDemand,
00082 const uint DVBDiSEqCType,
00083 const uint FirewireSpeed,
00084 const QString &FirewireModel,
00085 const uint FirewireConnection,
00086 const uint SignalTimeout,
00087 const uint ChannelTimeout,
00088 const uint DVBTuningDelay,
00089 const uint Contrast,
00090 const uint Brightness,
00091 const uint Colour,
00092 const uint Hue,
00093 const uint DiSEqCId,
00094 bool DVBEITScan) = 0;
00095
00096 virtual bool UpdateCaptureCard ( int CardId,
00097 const QString &Setting,
00098 const QString &Value ) = 0;
00099
00100
00101
00102 virtual bool RemoveCardInput ( int CardInputId) = 0;
00103
00104 virtual int AddCardInput ( const uint CardId,
00105 const uint SourceId,
00106 const QString &InputName,
00107 const QString &ExternalCommand,
00108 const QString &ChangerDevice,
00109 const QString &ChangerModel,
00110 const QString &HostName,
00111 const QString &TuneChan,
00112 const QString &StartChan,
00113 const QString &DisplayName,
00114 bool DishnetEIT,
00115 const uint RecPriority,
00116 const uint Quicktune,
00117 const uint SchedOrder,
00118 const uint LiveTVOrder) = 0;
00119
00120 virtual bool UpdateCardInput ( int CardInputId,
00121 const QString &Setting,
00122 const QString &Value ) = 0;
00123 };
00124
00125 #endif
00126