[mythtv-commits] Ticket #13404: QT5: QFileInfo is not registered to QMetaType at startup anymore
MythTV
noreply at mythtv.org
Fri Feb 15 19:43:08 UTC 2019
#13404: QT5: QFileInfo is not registered to QMetaType at startup anymore
------------------------------+---------------------------
Reporter: rcrdnalor | Owner: Bill Meek
Type: Patch - Bug Fix | Status: accepted
Priority: minor | Milestone: 30.1
Component: MythTV - General | Version: v29-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
------------------------------+---------------------------
Comment (by rcrdnalor):
I checked the code:
For cutom types in namespace DTC of Mythtv Services,
QRegisterMetaType is called by !InitializeCustomTypes() for each type.
Beside the types in namespace DTC and the C standard types,
only these QT types are used in Mythtv Services:
{{{
QString
QStringList
QFileInfo
}}}
Running a quick test on a freschly booted backend with services
returning a QString or a QStringList shows, that those types
are already registered to QMetaTypes:
{{{
QString:
http://BackendServerIP:6544/Content/GetHash?StorageGroup=Default&FileName=3008_20180808105300.ts
LogFile:
HttpServer56 servicehost.cpp:85 (Invoke) MethodInfo::Invoke: nRetIndx is
'10' and type is 'QString'.
QStringList
http://BackendServerIP:6544/Content/GetFileList?StorageGroup=Default
Logfile:
HttpServer55 servicehost.cpp:85 (Invoke) MethodInfo::Invoke: nRetIndx is
'11' and type is 'QStringList'.
}}}
Therefore I am pretty confident that QFileInfo is the only type for
Mythtv's Services, which is not registered at startup.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13404#comment:3>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list