3#include "PluginPlayer.h"
4#include "OperatePlayer.h"
6CPluginPlayer::CPluginPlayer(QObject *parent)
15const CPlugin::TYPE CPluginPlayer::Type()
const
32 QString szText = tr(
"Player: play media files or camera.");
33 #ifdef HAVE_QT6_RECORD
34 szText += tr(
" Record camera or media stream.");
41 return PLayer_VERSION;
44COperate *CPluginPlayer::OnCreateOperate(
const QString &szId)
47 if(this->
Id() == szId)
52const QIcon CPluginPlayer::Icon()
const
54 return QIcon::fromTheme(
"multimedia-player");
60 szDetails =
"- " + tr(
"Qt version:") +
"\n";
61 szDetails +=
" - " + tr(
"Compile version: ") + QT_VERSION_STR +
"\n";
62 szDetails +=
" - " + tr(
"Runtime version: ") + qVersion() +
"\n";
63#ifdef HAVE_QVideoWidget
64 szDetails +=
"- " + tr(
"Use QVideoWidget");
virtual const QString Description() const override
Plugin description.
virtual const QString Details() const override
Display more information in About dialog or log.
virtual const QString Name() const override
This name must be the same as the project name (${PROJECT_NAME}). The translation file (${PROJECT_NAM...
virtual const QString DisplayName() const override
The plugin display name.
virtual const QString Protocol() const override
Plugin Protocol.
virtual const QString Version() const override
Version.
virtual const QString Id()
ID. Default: Type() + ":" + Protocol() + ":" + Name()