MythTV  master
preformat.h
Go to the documentation of this file.
1 // Program Name: preformat.h
3 //
4 // Purpose - General return class for services that preformat the
5 // return data (e.g. legacy status service)
6 //
7 // Created By : Peter Bennett
8 //
10 
11 #ifndef PREFORMAT_H_
12 #define PREFORMAT_H_
13 
14 #include <QBuffer>
15 
17 
18 // Legacy return type for the status service
19 class Preformat : public QObject
20 {
21  Q_OBJECT
22  Q_CLASSINFO( "Version", "1.0" );
23  Q_CLASSINFO( "preformat", "true" );
24 
25  SERVICE_PROPERTY2 ( QString , mimetype)
26  SERVICE_PROPERTY2 ( QString , buffer )
27 
28  public:
29  Q_INVOKABLE Preformat(QObject *parent = nullptr)
30  : QObject ( parent )
31  {
32  }
33 
34  private:
36 };
37 
39 
40 #endif
Preformat::Preformat
Q_INVOKABLE Preformat(QObject *parent=nullptr)
Definition: preformat.h:29
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(StandardSetting *)
SERVICE_PROPERTY2
#define SERVICE_PROPERTY2(Type, Name)
Definition: mythhttpservice.h:72
Preformat::Q_CLASSINFO
Q_CLASSINFO("Version", "1.0")
mythhttpservice.h
Preformat::Q_DISABLE_COPY
Q_DISABLE_COPY(Preformat)
Preformat
Definition: preformat.h:19