3#include "PluginPlayer.h"
4#include "ConnecterPlayer.h"
6CPluginPlayer::CPluginPlayer(QObject *parent)
27 QString szText = tr(
"Player: play media files or camera.");
28 #ifdef HAVE_QT6_RECORD
29 szText += tr(
" Record camera or media stream.");
36 return PLayer_VERSION;
42 if(this->
Id() == szId)
47const QIcon CPluginPlayer::Icon()
const
49 return QIcon::fromTheme(
"multimedia-player");
55 szDetails =
"- " + tr(
"Qt version:") +
"\n";
56 szDetails +=
" - " + tr(
"Compile version: ") + QT_VERSION_STR +
"\n";
57 szDetails +=
" - " + tr(
"Runtime version: ") + qVersion() +
"\n";
58#ifdef HAVE_QVideoWidget
59 szDetails +=
"- " + tr(
"Use QVideoWidget");
virtual const QString Id() const
ID. Default: Protocol() + ":" + Name()
virtual CConnecter * CreateConnecter(const QString &szId) override
New CConnecter instance.
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.