00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00012
00013 #ifndef VIDEOSERVICES_H_
00014 #define VIDEOSERVICES_H_
00015
00016 #include <QFileInfo>
00017 #include <QStringList>
00018
00019 #include "service.h"
00020
00021 #include "datacontracts/videoMetadataInfoList.h"
00022 #include "datacontracts/videoLookupInfoList.h"
00023 #include "datacontracts/blurayInfo.h"
00024
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00040
00041 class SERVICE_PUBLIC VideoServices : public Service
00042 {
00043 Q_OBJECT
00044 Q_CLASSINFO( "version" , "1.2" );
00045 Q_CLASSINFO( "RemoveVideoFromDB_Method", "POST" )
00046 Q_CLASSINFO( "AddVideo_Method", "POST" )
00047
00048 public:
00049
00050
00051
00052
00053 VideoServices( QObject *parent = 0 ) : Service( parent )
00054 {
00055 DTC::VideoMetadataInfoList::InitializeCustomTypes();
00056 DTC::VideoLookupList::InitializeCustomTypes();
00057 DTC::BlurayInfo::InitializeCustomTypes();
00058 }
00059
00060 public slots:
00061
00062
00063
00064 virtual DTC::VideoMetadataInfoList* GetVideoList ( bool Descending,
00065 int StartIndex,
00066 int Count ) = 0;
00067
00068 virtual DTC::VideoMetadataInfo* GetVideo ( int Id ) = 0;
00069
00070 virtual DTC::VideoMetadataInfo* GetVideoByFileName ( const QString &FileName ) = 0;
00071
00072 virtual DTC::VideoLookupList* LookupVideo ( const QString &Title,
00073 const QString &Subtitle,
00074 const QString &Inetref,
00075 int Season,
00076 int Episode,
00077 const QString &GrabberType,
00078 bool AllowGeneric) = 0;
00079
00080 virtual bool RemoveVideoFromDB ( int Id ) = 0;
00081
00082 virtual bool AddVideo ( const QString &FileName,
00083 const QString &HostName ) = 0;
00084
00085
00086
00087 virtual DTC::BlurayInfo* GetBluray ( const QString &Path ) = 0;
00088 };
00089
00090 #endif
00091