MythTV master
v2video.h
Go to the documentation of this file.
1#ifndef V2VIDEO_H
2#define V2VIDEO_H
3
6
9#include "v2blurayInfo.h"
11#include "v2cutList.h"
12
13#define VIDEO_SERVICE QString("/Video/")
14#define VIDEO_HANDLE QString("Video")
15
17{
18 Q_OBJECT
19 Q_CLASSINFO("Version", "1.5")
20 Q_CLASSINFO("description", "Methods to access and update Video metadata and related topics")
21 Q_CLASSINFO("LookupVideo", "methods=GET,POST,HEAD")
22 Q_CLASSINFO("GetSavedBookmark", "name=long")
23 Q_CLASSINFO("GetLastPlayPos", "name=long")
24 Q_CLASSINFO("RemoveVideoFromDB", "methods=POST;name=bool")
25 Q_CLASSINFO("AddVideo", "methods=POST;name=bool")
26 Q_CLASSINFO("UpdateVideoWatchedStatus", "methods=POST;name=bool")
27 Q_CLASSINFO("UpdateVideoMetadata", "methods=POST;name=bool")
28
29 public:
30 V2Video();
31 ~V2Video() override = default;
32 static void RegisterCustomTypes();
33
34 public slots:
35
36 static V2VideoMetadataInfo* GetVideo (int Id);
37 static V2VideoMetadataInfo* GetVideoByFileName ( const QString &FileName );
38 static long GetSavedBookmark (int Id );
39 static long GetLastPlayPos (int Id );
40 V2VideoMetadataInfoList* GetVideoList ( const QString &Folder,
41 const QString &Sort,
42 const QString &TitleRegEx,
43 int Category,
44 bool Descending,
45 int StartIndex,
46 int Count,
47 bool CollapseSubDirs );
48 static V2VideoLookupList* LookupVideo ( const QString &Title,
49 const QString &Subtitle,
50 const QString &Inetref,
51 int Season,
52 int Episode,
53 const QString &GrabberType,
54 bool AllowGeneric );
55 static bool RemoveVideoFromDB ( int Id );
56 static bool AddVideo ( const QString &FileName,
57 const QString &HostName );
58
59 static bool UpdateVideoWatchedStatus ( int Id,
60 bool Watched );
61 bool UpdateVideoMetadata ( int Id,
62 const QString &Title,
63 const QString &SubTitle,
64 const QString &TagLine,
65 const QString &Director,
66 const QString &Studio,
67 const QString &Plot,
68 const QString &Rating,
69 const QString &Inetref,
70 int CollectionRef,
71 const QString &HomePage,
72 int Year,
73 QDate ReleaseDate,
74 float UserRating,
75 int Length,
76 int PlayCount,
77 int Season,
78 int Episode,
79 int ShowLevel,
80 const QString &FileName,
81 const QString &Hash,
82 const QString &CoverFile,
83 int ChildID,
84 bool Browse,
85 bool Watched,
86 bool Processed,
87 const QString &PlayCommand,
88 int Category,
89 const QString &Trailer,
90 const QString &Host,
91 const QString &Screenshot,
92 const QString &Banner,
93 const QString &Fanart,
94 QDate InsertDate,
95 const QString &ContentType,
96 const QString &Genres,
97 const QString &Cast,
98 const QString &Countries
99 );
100
101 static bool SetSavedBookmark ( int Id,
102 long Offset );
103
104 static bool SetLastPlayPos ( int Id,
105 long Offset );
106
107 static V2BlurayInfo* GetBluray ( const QString &Path );
108
109 static V2VideoStreamInfoList* GetStreamInfo ( const QString &StorageGroup,
110 const QString &FileName );
111
112 static V2CutList* GetVideoCutList ( int Id,
113 const QString &OffsetType,
114 bool IncludeFps );
115
116 static V2CutList* GetVideoCommBreak ( int Id,
117 const QString &OffsetType,
118 bool IncludeFps );
119
121
122 private:
123 Q_DISABLE_COPY(V2Video)
124};
125
126#endif // V2VIDEO_H
bool UpdateVideoMetadata(int Id, const QString &Title, const QString &SubTitle, const QString &TagLine, const QString &Director, const QString &Studio, const QString &Plot, const QString &Rating, const QString &Inetref, int CollectionRef, const QString &HomePage, int Year, QDate ReleaseDate, float UserRating, int Length, int PlayCount, int Season, int Episode, int ShowLevel, const QString &FileName, const QString &Hash, const QString &CoverFile, int ChildID, bool Browse, bool Watched, bool Processed, const QString &PlayCommand, int Category, const QString &Trailer, const QString &Host, const QString &Screenshot, const QString &Banner, const QString &Fanart, QDate InsertDate, const QString &ContentType, const QString &Genres, const QString &Cast, const QString &Countries)
Definition: v2video.cpp:630
static V2CutList * GetVideoCutList(int Id, const QString &OffsetType, bool IncludeFps)
Definition: v2video.cpp:1155
static bool AddVideo(const QString &FileName, const QString &HostName)
Definition: v2video.cpp:556
static V2VideoMetadataInfo * GetVideoByFileName(const QString &FileName)
Definition: v2video.cpp:73
V2Video()
Definition: v2video.cpp:53
static bool SetSavedBookmark(int Id, long Offset)
Definition: v2video.cpp:957
static void RegisterCustomTypes()
static bool UpdateVideoWatchedStatus(int Id, bool Watched)
Definition: v2video.cpp:612
static V2CutList * GetVideoCommBreak(int Id, const QString &OffsetType, bool IncludeFps)
Definition: v2video.cpp:1217
static bool RemoveVideoFromDB(int Id)
Definition: v2video.cpp:540
static bool SetLastPlayPos(int Id, long Offset)
Definition: v2video.cpp:1004
static long GetLastPlayPos(int Id)
Definition: v2video.cpp:143
static long GetSavedBookmark(int Id)
Definition: v2video.cpp:96
static V2VideoLookupList * LookupVideo(const QString &Title, const QString &Subtitle, const QString &Inetref, int Season, int Episode, const QString &GrabberType, bool AllowGeneric)
Definition: v2video.cpp:419
static V2BlurayInfo * GetBluray(const QString &Path)
Definition: v2video.cpp:1048
V2VideoMetadataInfoList * GetVideoList(const QString &Folder, const QString &Sort, const QString &TitleRegEx, int Category, bool Descending, int StartIndex, int Count, bool CollapseSubDirs)
Definition: v2video.cpp:205
static V2VideoStreamInfoList * GetStreamInfo(const QString &StorageGroup, const QString &FileName)
Definition: v2video.cpp:1111
static V2VideoMetadataInfo * GetVideo(int Id)
Definition: v2video.cpp:58
static V2VideoCategoryList * GetCategoryList()
Definition: v2video.cpp:1274
~V2Video() override=default
GrabberType