Skip to content

Commit

Permalink
V2 services: Fix wsdl for Frontend service
Browse files Browse the repository at this point in the history
  • Loading branch information
bennettpeter committed Sep 13, 2021
1 parent df83f4b commit ddf7239
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythbase/http/mythwsdl.cpp
Expand Up @@ -496,6 +496,8 @@ bool MythWSDL::IsCustomType( QString &sTypeName )
// for now, treat QFileInfo as a string. Need to turn into MTOM later.
if (id == qMetaTypeId<QFileInfo>())
return false;
if (sTypeName == "std::chrono::seconds")
return false;
break;
}

Expand Down
3 changes: 3 additions & 0 deletions mythtv/libs/libmythbase/http/mythxsd.cpp
Expand Up @@ -928,6 +928,9 @@ QString MythXSD::ConvertTypeToXSD( const QString &sType, bool bCustomType )
if (sType == "qlonglong" )
return "long";

if (sType == "std::chrono::seconds" )
return "long";

if (sType == "qulonglong" )
return "unsignedLong";

Expand Down
4 changes: 4 additions & 0 deletions mythtv/programs/mythfrontend/services/mythfrontendservice.h
Expand Up @@ -23,6 +23,8 @@ class FrontendStatus : public QObject
SERVICE_PROPERTY(QVariantMap, AudioTracks, audioTracks)

public:
Q_INVOKABLE FrontendStatus(QObject *parent = nullptr)
: QObject ( parent ) {};
FrontendStatus(const QString& Name, const QString& Version, const QVariantMap& State);
};

Expand All @@ -36,6 +38,8 @@ class FrontendActionList : public QObject
SERVICE_PROPERTY(QVariantMap, ActionList, actionList)

public:
Q_INVOKABLE FrontendActionList(QObject *parent = nullptr)
: QObject ( parent ) {};
FrontendActionList(const QVariantMap& List);
};

Expand Down

0 comments on commit ddf7239

Please sign in to comment.