MythTV master
preformat.h
Go to the documentation of this file.
1
2// 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
19class 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
Q_CLASSINFO("Version", "1.0")
Q_DISABLE_COPY(Preformat)
Q_INVOKABLE Preformat(QObject *parent=nullptr)
Definition: preformat.h:29
Q_CLASSINFO("preformat", "true")
Q_DECLARE_METATYPE(std::chrono::seconds)
#define SERVICE_PROPERTY2(Type, Name)