MythTV  master
imageServices.h
Go to the documentation of this file.
1 #ifndef IMAGESERVICES_H_
2 #define IMAGESERVICES_H_
3 
4 #include <QFileInfo>
5 #include <QStringList>
6 
7 #include "service.h"
10 
11 
12 
14 {
15  Q_OBJECT
16  Q_CLASSINFO( "version" , "2.0" )
17  Q_CLASSINFO( "RemoveImage_Method", "POST" )
18  Q_CLASSINFO( "RenameImage_Method", "POST" )
19  Q_CLASSINFO( "StartSync_Method", "POST" )
20  Q_CLASSINFO( "StopSync_Method", "POST" )
21  Q_CLASSINFO( "CreateThumbnail_Method", "POST" )
22 
23  public:
24 
25  // Must call InitializeCustomTypes for each unique
26  // Custom Type used in public slots below.
27  ImageServices( QObject *parent = nullptr ) : Service( parent )
28  {
29  // Must call InitializeCustomTypes for each
30  // unique Custom Type used in public slots below.
33  }
34 
35  public slots:
36 
37  virtual QString GetImageInfo ( int Id,
38  const QString &Tag ) = 0;
39 
40  virtual DTC::ImageMetadataInfoList* GetImageInfoList ( int Id ) = 0;
41 
42  virtual bool RemoveImage ( int Id ) = 0;
43  virtual bool RenameImage ( int Id,
44  const QString &NewName ) = 0;
45 
46  virtual bool StartSync ( void ) = 0;
47  virtual bool StopSync ( void ) = 0;
48  virtual DTC::ImageSyncInfo* GetSyncStatus ( void ) = 0;
49 
50  virtual bool CreateThumbnail ( int Id ) = 0;
51 };
52 
53 #endif
unsigned int slots[4]
Definition: element.c:38
ImageServices(QObject *parent=nullptr)
Definition: imageServices.h:27
#define SERVICE_PUBLIC
Definition: serviceexp.h:9
static void InitializeCustomTypes()
Definition: imageSyncInfo.h:50