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 
8 
11 
12 
13 
15 {
16  Q_OBJECT
17  Q_CLASSINFO( "version" , "2.0" )
18  Q_CLASSINFO( "RemoveImage_Method", "POST" )
19  Q_CLASSINFO( "RenameImage_Method", "POST" )
20  Q_CLASSINFO( "StartSync_Method", "POST" )
21  Q_CLASSINFO( "StopSync_Method", "POST" )
22  Q_CLASSINFO( "CreateThumbnail_Method", "POST" )
23 
24  public:
25 
26  // Must call InitializeCustomTypes for each unique
27  // Custom Type used in public slots below.
28  ImageServices( QObject *parent = nullptr ) : Service( parent )
29  {
30  // Must call InitializeCustomTypes for each
31  // unique Custom Type used in public slots below.
34  }
35 
36  public slots:
37 
38  virtual QString GetImageInfo ( int Id,
39  const QString &Tag ) = 0;
40 
41  virtual DTC::ImageMetadataInfoList* GetImageInfoList ( int Id ) = 0;
42 
43  virtual bool RemoveImage ( int Id ) = 0;
44  virtual bool RenameImage ( int Id,
45  const QString &NewName ) = 0;
46 
47  virtual bool StartSync ( void ) = 0;
48  virtual bool StopSync ( void ) = 0;
49  virtual DTC::ImageSyncInfo* GetSyncStatus ( void ) = 0;
50 
51  virtual bool CreateThumbnail ( int Id ) = 0;
52 };
53 
54 #endif
DTC::ImageSyncInfo
Definition: imageSyncInfo.h:14
service.h
DTC::ImageMetadataInfoList::InitializeCustomTypes
static void InitializeCustomTypes()
Definition: imageMetadataInfoList.h:75
SERVICE_PUBLIC
#define SERVICE_PUBLIC
Definition: serviceexp.h:9
DTC::ImageSyncInfo::InitializeCustomTypes
static void InitializeCustomTypes()
Definition: imageSyncInfo.h:50
ImageServices
Definition: imageServices.h:14
Service
Definition: service.h:42
imageMetadataInfoList.h
imageSyncInfo.h
DTC::ImageMetadataInfoList
Definition: imageMetadataInfoList.h:15
ImageServices::ImageServices
ImageServices(QObject *parent=nullptr)
Definition: imageServices.h:28