3#include "PluginPlayer.h"
4#include "OperatePlayer.h"
5#include <QLoggingCategory>
6static Q_LOGGING_CATEGORY(log,
"Player.Plugin")
10 qDebug(log) << Q_FUNC_INFO;
13CPluginPlayer::~CPluginPlayer()
15 qDebug(log) << Q_FUNC_INFO;
23const CPlugin::TYPE CPluginPlayer::Type()
const
40 QString szText = tr(
"Player: play media files or camera.");
41 #ifdef HAVE_QT6_RECORD
42 szText += tr(
" Record camera or media stream.");
49 return PLayer_VERSION;
52COperate *CPluginPlayer::OnCreateOperate(
const QString &szId)
55 if(this->
Id() == szId)
60const QIcon CPluginPlayer::Icon()
const
62 return QIcon::fromTheme(
"multimedia-player");
68 szDetails =
"- " + tr(
"Qt version:") +
"\n";
69 szDetails +=
" - " + tr(
"Compile version: ") + QT_VERSION_STR +
"\n";
70 szDetails +=
" - " + tr(
"Runtime version: ") + qVersion() +
"\n";
71#ifdef HAVE_QVideoWidget
72 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()