aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-07-21 17:30:35 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-07-21 17:30:35 +0000
commit2111b82728e37a649539076ee4e9fc83103f196b (patch)
tree502932f709108cd76ae393a4904e460c5dd57d0a /src/plugins/General
parent6ca203336305da1b2f8b45e4dca647153da49e3c (diff)
downloadqmmp-2111b82728e37a649539076ee4e9fc83103f196b.tar.gz
qmmp-2111b82728e37a649539076ee4e9fc83103f196b.tar.bz2
qmmp-2111b82728e37a649539076ee4e9fc83103f196b.zip
changed translation api again
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8200 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General')
-rw-r--r--src/plugins/General/converter/converterfactory.cpp8
-rw-r--r--src/plugins/General/converter/converterfactory.h3
-rw-r--r--src/plugins/General/copypaste/copypastefactory.cpp8
-rw-r--r--src/plugins/General/copypaste/copypastefactory.h3
-rw-r--r--src/plugins/General/covermanager/covermanagerfactory.cpp8
-rw-r--r--src/plugins/General/covermanager/covermanagerfactory.h3
-rw-r--r--src/plugins/General/fileops/fileopsfactory.cpp8
-rw-r--r--src/plugins/General/fileops/fileopsfactory.h3
-rw-r--r--src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp8
-rw-r--r--src/plugins/General/gnomehotkey/gnomehotkeyfactory.h3
-rw-r--r--src/plugins/General/hal/halfactory.cpp8
-rw-r--r--src/plugins/General/hal/halfactory.h3
-rw-r--r--src/plugins/General/hotkey/hotkeyfactory.cpp8
-rw-r--r--src/plugins/General/hotkey/hotkeyfactory.h3
-rw-r--r--src/plugins/General/kdenotify/kdenotifyfactory.cpp10
-rw-r--r--src/plugins/General/kdenotify/kdenotifyfactory.h3
-rw-r--r--src/plugins/General/lyrics/lyricsfactory.cpp8
-rw-r--r--src/plugins/General/lyrics/lyricsfactory.h3
-rw-r--r--src/plugins/General/mpris/mprisfactory.cpp8
-rw-r--r--src/plugins/General/mpris/mprisfactory.h3
-rw-r--r--src/plugins/General/notifier/notifierfactory.cpp8
-rw-r--r--src/plugins/General/notifier/notifierfactory.h3
-rw-r--r--src/plugins/General/rgscan/rgscanfactory.cpp8
-rw-r--r--src/plugins/General/rgscan/rgscanfactory.h3
-rw-r--r--src/plugins/General/scrobbler/scrobblerfactory.cpp8
-rw-r--r--src/plugins/General/scrobbler/scrobblerfactory.h3
-rw-r--r--src/plugins/General/statusicon/statusiconfactory.cpp8
-rw-r--r--src/plugins/General/statusicon/statusiconfactory.h3
-rw-r--r--src/plugins/General/streambrowser/streambrowserfactory.cpp8
-rw-r--r--src/plugins/General/streambrowser/streambrowserfactory.h3
-rw-r--r--src/plugins/General/trackchange/trackchangefactory.cpp8
-rw-r--r--src/plugins/General/trackchange/trackchangefactory.h3
-rw-r--r--src/plugins/General/udisks2/udisks2factory.cpp8
-rw-r--r--src/plugins/General/udisks2/udisks2factory.h3
34 files changed, 137 insertions, 52 deletions
diff --git a/src/plugins/General/converter/converterfactory.cpp b/src/plugins/General/converter/converterfactory.cpp
index 0254cda82..c48deae30 100644
--- a/src/plugins/General/converter/converterfactory.cpp
+++ b/src/plugins/General/converter/converterfactory.cpp
@@ -22,12 +22,11 @@
#include "converterhelper.h"
#include "converterfactory.h"
-const GeneralProperties ConverterFactory::properties() const
+GeneralProperties ConverterFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("Converter Plugin");
properties.shortName = "converter";
- properties.translation = QLatin1String(":/converter_plugin_");
properties.hasAbout = true;
properties.hasSettings = false;
properties.visibilityControl = false;
@@ -53,3 +52,8 @@ void ConverterFactory::showAbout(QWidget *parent)
"using external command-line encoders") +"\n"+
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
+
+QString ConverterFactory::translation() const
+{
+ return QLatin1String(":/converter_plugin_");
+}
diff --git a/src/plugins/General/converter/converterfactory.h b/src/plugins/General/converter/converterfactory.h
index 83a7f3bf3..280a9825c 100644
--- a/src/plugins/General/converter/converterfactory.h
+++ b/src/plugins/General/converter/converterfactory.h
@@ -34,10 +34,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif
diff --git a/src/plugins/General/copypaste/copypastefactory.cpp b/src/plugins/General/copypaste/copypastefactory.cpp
index 458d6a764..5c15895de 100644
--- a/src/plugins/General/copypaste/copypastefactory.cpp
+++ b/src/plugins/General/copypaste/copypastefactory.cpp
@@ -23,12 +23,11 @@
#include "copypaste.h"
#include "copypastefactory.h"
-const GeneralProperties CopyPasteFactory::properties() const
+GeneralProperties CopyPasteFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("Copy/Paste Plugin");
properties.shortName = "copypaste";
- properties.translation = QLatin1String(":/copypaste_plugin_");
properties.hasAbout = true;
properties.hasSettings = false;
properties.visibilityControl = false;
@@ -52,3 +51,8 @@ void CopyPasteFactory::showAbout(QWidget *parent)
tr("This plugin allows one to copy selected tracks from one playlist to another")+"\n"+
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
+
+QString CopyPasteFactory::translation() const
+{
+ return QLatin1String(":/copypaste_plugin_");
+}
diff --git a/src/plugins/General/copypaste/copypastefactory.h b/src/plugins/General/copypaste/copypastefactory.h
index 1dda634e4..20bb61a6c 100644
--- a/src/plugins/General/copypaste/copypastefactory.h
+++ b/src/plugins/General/copypaste/copypastefactory.h
@@ -34,10 +34,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif // COPYPASTEFACTORY_H
diff --git a/src/plugins/General/covermanager/covermanagerfactory.cpp b/src/plugins/General/covermanager/covermanagerfactory.cpp
index ef79a0520..caae162f5 100644
--- a/src/plugins/General/covermanager/covermanagerfactory.cpp
+++ b/src/plugins/General/covermanager/covermanagerfactory.cpp
@@ -24,12 +24,11 @@
#include "covermanager.h"
#include "covermanagerfactory.h"
-const GeneralProperties CoverManagerFactory::properties() const
+GeneralProperties CoverManagerFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("Cover Manager Plugin");
properties.shortName = "cover_manager";
- properties.translation = QLatin1String(":/covermanager_plugin_");
properties.hasAbout = true;
properties.hasSettings = false;
properties.visibilityControl = false;
@@ -52,3 +51,8 @@ void CoverManagerFactory::showAbout(QWidget *parent)
tr("Qmmp Cover Manager Plugin")+"\n"+
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
+
+QString CoverManagerFactory::translation() const
+{
+ return QLatin1String(":/covermanager_plugin_");
+}
diff --git a/src/plugins/General/covermanager/covermanagerfactory.h b/src/plugins/General/covermanager/covermanagerfactory.h
index c9c78a277..b4d838cf9 100644
--- a/src/plugins/General/covermanager/covermanagerfactory.h
+++ b/src/plugins/General/covermanager/covermanagerfactory.h
@@ -34,10 +34,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif
diff --git a/src/plugins/General/fileops/fileopsfactory.cpp b/src/plugins/General/fileops/fileopsfactory.cpp
index 12dfd08a0..baed7b309 100644
--- a/src/plugins/General/fileops/fileopsfactory.cpp
+++ b/src/plugins/General/fileops/fileopsfactory.cpp
@@ -24,12 +24,11 @@
#include "settingsdialog.h"
#include "fileopsfactory.h"
-const GeneralProperties FileOpsFactory::properties() const
+GeneralProperties FileOpsFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("File Operations Plugin");
properties.shortName = "fileops";
- properties.translation = QLatin1String(":/fileops_plugin_");
properties.hasAbout = true;
properties.hasSettings = true;
properties.visibilityControl = false;
@@ -52,3 +51,8 @@ void FileOpsFactory::showAbout(QWidget *parent)
tr("Qmmp File Operations Plugin")+"\n"+
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
+
+QString FileOpsFactory::translation() const
+{
+ return QLatin1String(":/fileops_plugin_");
+}
diff --git a/src/plugins/General/fileops/fileopsfactory.h b/src/plugins/General/fileops/fileopsfactory.h
index 1118b67b9..1a6deef94 100644
--- a/src/plugins/General/fileops/fileopsfactory.h
+++ b/src/plugins/General/fileops/fileopsfactory.h
@@ -35,10 +35,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif
diff --git a/src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp b/src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp
index 5e9ba1c7b..e22d2d9e9 100644
--- a/src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp
+++ b/src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp
@@ -23,12 +23,11 @@
#include "mediakeys.h"
#include "gnomehotkeyfactory.h"
-const GeneralProperties GnomeHotkeyFactory::properties() const
+GeneralProperties GnomeHotkeyFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("Gnome Hotkey Plugin");
properties.shortName = "gnomehotkey";
- properties.translation = QLatin1String(":/gnomehotkey_plugin_");
properties.hasAbout = true;
properties.hasSettings = false;
properties.visibilityControl = false;
@@ -53,3 +52,8 @@ void GnomeHotkeyFactory::showAbout(QWidget *parent)
tr("This plugin adds support of the GNOME/Cinnamon hotkeys") + "\n" +
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
+
+QString GnomeHotkeyFactory::translation() const
+{
+ return QLatin1String(":/gnomehotkey_plugin_");
+}
diff --git a/src/plugins/General/gnomehotkey/gnomehotkeyfactory.h b/src/plugins/General/gnomehotkey/gnomehotkeyfactory.h
index ebe082435..d119143b0 100644
--- a/src/plugins/General/gnomehotkey/gnomehotkeyfactory.h
+++ b/src/plugins/General/gnomehotkey/gnomehotkeyfactory.h
@@ -34,10 +34,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif
diff --git a/src/plugins/General/hal/halfactory.cpp b/src/plugins/General/hal/halfactory.cpp
index 6046ba105..400e2caa0 100644
--- a/src/plugins/General/hal/halfactory.cpp
+++ b/src/plugins/General/hal/halfactory.cpp
@@ -24,12 +24,11 @@
#include "halplugin.h"
#include "halfactory.h"
-const GeneralProperties HalFactory::properties() const
+GeneralProperties HalFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("HAL Plugin");
properties.shortName = "hal";
- properties.translation = QLatin1String(":/hal_plugin_");
properties.hasAbout = true;
properties.hasSettings = true;
properties.visibilityControl = false;
@@ -54,3 +53,8 @@ void HalFactory::showAbout(QWidget *parent)
tr("Written by: Ilya Kotov <forkotov02@ya.ru>") + "\n" +
tr("Based on Solid (KDE hardware library)"));
}
+
+QString HalFactory::translation() const
+{
+ return QLatin1String(":/hal_plugin_");
+}
diff --git a/src/plugins/General/hal/halfactory.h b/src/plugins/General/hal/halfactory.h
index a2b8b5ed9..195b3c42c 100644
--- a/src/plugins/General/hal/halfactory.h
+++ b/src/plugins/General/hal/halfactory.h
@@ -33,10 +33,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif
diff --git a/src/plugins/General/hotkey/hotkeyfactory.cpp b/src/plugins/General/hotkey/hotkeyfactory.cpp
index 7092e1d06..ff74a5cfe 100644
--- a/src/plugins/General/hotkey/hotkeyfactory.cpp
+++ b/src/plugins/General/hotkey/hotkeyfactory.cpp
@@ -25,12 +25,11 @@
#include "hotkeymanager.h"
#include "hotkeyfactory.h"
-const GeneralProperties HotkeyFactory::properties() const
+GeneralProperties HotkeyFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("Global Hotkey Plugin");
properties.shortName = "hotkey";
- properties.translation = QLatin1String(":/hotkey_plugin_");
properties.hasAbout = true;
properties.hasSettings = true;
properties.visibilityControl = false;
@@ -60,3 +59,8 @@ void HotkeyFactory::showAbout(QWidget *parent)
tr("This plugin adds support for multimedia keys or global key combinations")+"\n"+
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
+
+QString HotkeyFactory::translation() const
+{
+ return QLatin1String(":/hotkey_plugin_");
+}
diff --git a/src/plugins/General/hotkey/hotkeyfactory.h b/src/plugins/General/hotkey/hotkeyfactory.h
index 98e8cbcac..2bd998f5f 100644
--- a/src/plugins/General/hotkey/hotkeyfactory.h
+++ b/src/plugins/General/hotkey/hotkeyfactory.h
@@ -33,10 +33,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif
diff --git a/src/plugins/General/kdenotify/kdenotifyfactory.cpp b/src/plugins/General/kdenotify/kdenotifyfactory.cpp
index 1597f3eb6..9d55ec451 100644
--- a/src/plugins/General/kdenotify/kdenotifyfactory.cpp
+++ b/src/plugins/General/kdenotify/kdenotifyfactory.cpp
@@ -23,12 +23,11 @@
#include "kdenotify.h"
#include "settingsdialog.h"
-const GeneralProperties KdeNotifyFactory::properties() const
+GeneralProperties KdeNotifyFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("KDE notification plugin");
properties.shortName = "kdenotify_icon";
- properties.translation = QLatin1String(":/kdenotify_plugin_");
properties.hasAbout = true;
properties.hasSettings = true;
properties.visibilityControl = false;
@@ -49,5 +48,10 @@ void KdeNotifyFactory::showAbout(QWidget *parent)
{
QMessageBox::about (parent, tr("About KDE Notification Plugin"),
tr("KDE notification plugin for Qmmp") + "<br>"
- "Artur Guzik <a.guzik88@gmail.com>");
+ "Artur Guzik <a.guzik88@gmail.com>");
+}
+
+QString KdeNotifyFactory::translation() const
+{
+ return QLatin1String(":/kdenotify_plugin_");
}
diff --git a/src/plugins/General/kdenotify/kdenotifyfactory.h b/src/plugins/General/kdenotify/kdenotifyfactory.h
index 083a95e6c..9d4e76c57 100644
--- a/src/plugins/General/kdenotify/kdenotifyfactory.h
+++ b/src/plugins/General/kdenotify/kdenotifyfactory.h
@@ -33,10 +33,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif // KDENOTIFYFACTORY_H
diff --git a/src/plugins/General/lyrics/lyricsfactory.cpp b/src/plugins/General/lyrics/lyricsfactory.cpp
index cf1440469..1b5cac3e2 100644
--- a/src/plugins/General/lyrics/lyricsfactory.cpp
+++ b/src/plugins/General/lyrics/lyricsfactory.cpp
@@ -23,12 +23,11 @@
#include "lyrics.h"
#include "lyricsfactory.h"
-const GeneralProperties LyricsFactory::properties() const
+GeneralProperties LyricsFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("Lyrics Plugin");
properties.shortName = "lyrics";
- properties.translation = QLatin1String(":/lyrics_plugin_");
properties.hasAbout = true;
properties.hasSettings = false;
properties.visibilityControl = false;
@@ -53,3 +52,8 @@ void LyricsFactory::showAbout(QWidget *parent)
tr("This plugin retrieves lyrics from LyricWiki")+"\n"+
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
+
+QString LyricsFactory::translation() const
+{
+ return QLatin1String(":/lyrics_plugin_");
+}
diff --git a/src/plugins/General/lyrics/lyricsfactory.h b/src/plugins/General/lyrics/lyricsfactory.h
index fdcddb897..c968329bd 100644
--- a/src/plugins/General/lyrics/lyricsfactory.h
+++ b/src/plugins/General/lyrics/lyricsfactory.h
@@ -35,10 +35,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif
diff --git a/src/plugins/General/mpris/mprisfactory.cpp b/src/plugins/General/mpris/mprisfactory.cpp
index 645d42480..a43139505 100644
--- a/src/plugins/General/mpris/mprisfactory.cpp
+++ b/src/plugins/General/mpris/mprisfactory.cpp
@@ -24,12 +24,11 @@
#include "mpris.h"
#include "mprisfactory.h"
-const GeneralProperties MPRISFactory::properties() const
+GeneralProperties MPRISFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("MPRIS Plugin");
properties.shortName = "mpris";
- properties.translation = QLatin1String(":/mpris_plugin_");
properties.hasAbout = true;
properties.hasSettings = false;
properties.visibilityControl = false;
@@ -52,3 +51,8 @@ void MPRISFactory::showAbout(QWidget *parent)
tr("Qmmp MPRIS Plugin")+"\n"+
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
+
+QString MPRISFactory::translation() const
+{
+ return QLatin1String(":/mpris_plugin_");
+}
diff --git a/src/plugins/General/mpris/mprisfactory.h b/src/plugins/General/mpris/mprisfactory.h
index 28abf020e..95b64c603 100644
--- a/src/plugins/General/mpris/mprisfactory.h
+++ b/src/plugins/General/mpris/mprisfactory.h
@@ -34,10 +34,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif
diff --git a/src/plugins/General/notifier/notifierfactory.cpp b/src/plugins/General/notifier/notifierfactory.cpp
index e69aa2b20..6627ff430 100644
--- a/src/plugins/General/notifier/notifierfactory.cpp
+++ b/src/plugins/General/notifier/notifierfactory.cpp
@@ -23,12 +23,11 @@
#include "settingsdialog.h"
#include "notifierfactory.h"
-const GeneralProperties NotifierFactory::properties() const
+GeneralProperties NotifierFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("Notifier Plugin");
properties.shortName = "notifier";
- properties.translation = QLatin1String(":/notifier_plugin_");
properties.hasAbout = true;
properties.hasSettings = true;
properties.visibilityControl = false;
@@ -51,3 +50,8 @@ void NotifierFactory::showAbout(QWidget *parent)
tr("Qmmp Notifier Plugin")+"\n"+
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
+
+QString NotifierFactory::translation() const
+{
+ return QLatin1String(":/notifier_plugin_");
+}
diff --git a/src/plugins/General/notifier/notifierfactory.h b/src/plugins/General/notifier/notifierfactory.h
index 764ed45f5..d93852958 100644
--- a/src/plugins/General/notifier/notifierfactory.h
+++ b/src/plugins/General/notifier/notifierfactory.h
@@ -35,10 +35,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif
diff --git a/src/plugins/General/rgscan/rgscanfactory.cpp b/src/plugins/General/rgscan/rgscanfactory.cpp
index fe89a62c1..9e68e89a9 100644
--- a/src/plugins/General/rgscan/rgscanfactory.cpp
+++ b/src/plugins/General/rgscan/rgscanfactory.cpp
@@ -22,12 +22,11 @@
#include "rgscanhelper.h"
#include "rgscanfactory.h"
-const GeneralProperties RGScanFactory::properties() const
+GeneralProperties RGScanFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("ReplayGain Scanner Plugin");
properties.shortName = "rgscan";
- properties.translation = QLatin1String(":/rgscan_plugin_");
properties.hasAbout = true;
properties.hasSettings = false;
properties.visibilityControl = false;
@@ -57,3 +56,8 @@ void RGScanFactory::showAbout(QWidget *parent)
tr("Frank Klemm"));
}
+
+QString RGScanFactory::translation() const
+{
+ return QLatin1String(":/rgscan_plugin_");
+}
diff --git a/src/plugins/General/rgscan/rgscanfactory.h b/src/plugins/General/rgscan/rgscanfactory.h
index 63c900b7d..e6f3aa7ed 100644
--- a/src/plugins/General/rgscan/rgscanfactory.h
+++ b/src/plugins/General/rgscan/rgscanfactory.h
@@ -34,10 +34,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif
diff --git a/src/plugins/General/scrobbler/scrobblerfactory.cpp b/src/plugins/General/scrobbler/scrobblerfactory.cpp
index d79b26e50..5d8ebe3d7 100644
--- a/src/plugins/General/scrobbler/scrobblerfactory.cpp
+++ b/src/plugins/General/scrobbler/scrobblerfactory.cpp
@@ -25,12 +25,11 @@
#include "settingsdialog.h"
#include "scrobblerfactory.h"
-const GeneralProperties ScrobblerFactory::properties() const
+GeneralProperties ScrobblerFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("Scrobbler Plugin");
properties.shortName = "scrobbler";
- properties.translation = QLatin1String(":/scrobbler_plugin_");
properties.hasAbout = true;
properties.hasSettings = true;
properties.visibilityControl = false;
@@ -53,3 +52,8 @@ void ScrobblerFactory::showAbout(QWidget *parent)
tr("Qmmp AudioScrobbler Plugin")+"\n"+
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
+
+QString ScrobblerFactory::translation() const
+{
+ return QLatin1String(":/scrobbler_plugin_");
+}
diff --git a/src/plugins/General/scrobbler/scrobblerfactory.h b/src/plugins/General/scrobbler/scrobblerfactory.h
index 9b07a927e..5a3c5e673 100644
--- a/src/plugins/General/scrobbler/scrobblerfactory.h
+++ b/src/plugins/General/scrobbler/scrobblerfactory.h
@@ -34,10 +34,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif
diff --git a/src/plugins/General/statusicon/statusiconfactory.cpp b/src/plugins/General/statusicon/statusiconfactory.cpp
index 26b0f4641..0ac66b39d 100644
--- a/src/plugins/General/statusicon/statusiconfactory.cpp
+++ b/src/plugins/General/statusicon/statusiconfactory.cpp
@@ -23,7 +23,7 @@
#include "settingsdialog.h"
#include "statusiconfactory.h"
-const GeneralProperties StatusIconFactory::properties() const
+GeneralProperties StatusIconFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("Status Icon Plugin");
@@ -31,7 +31,6 @@ const GeneralProperties StatusIconFactory::properties() const
properties.hasAbout = true;
properties.hasSettings = true;
properties.visibilityControl = true;
- properties.translation = QLatin1String(":/statusicon_plugin_");
return properties;
}
@@ -53,3 +52,8 @@ void StatusIconFactory::showAbout(QWidget *parent)
tr("Ilya Kotov <forkotov02@ya.ru>")+"\n"+
tr("Artur Guzik <a.guzik88@gmail.com>"));
}
+
+QString StatusIconFactory::translation() const
+{
+ return QLatin1String(":/statusicon_plugin_");
+}
diff --git a/src/plugins/General/statusicon/statusiconfactory.h b/src/plugins/General/statusicon/statusiconfactory.h
index 434929d73..d33b9d6ec 100644
--- a/src/plugins/General/statusicon/statusiconfactory.h
+++ b/src/plugins/General/statusicon/statusiconfactory.h
@@ -35,10 +35,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif
diff --git a/src/plugins/General/streambrowser/streambrowserfactory.cpp b/src/plugins/General/streambrowser/streambrowserfactory.cpp
index 4cdbd12cc..655a7adfb 100644
--- a/src/plugins/General/streambrowser/streambrowserfactory.cpp
+++ b/src/plugins/General/streambrowser/streambrowserfactory.cpp
@@ -23,12 +23,11 @@
#include "streambrowser.h"
#include "streambrowserfactory.h"
-const GeneralProperties StreamBrowserFactory::properties() const
+GeneralProperties StreamBrowserFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("Stream Browser Plugin");
properties.shortName = "streambrowser";
- properties.translation = QLatin1String(":/streambrowser_plugin_");
properties.hasAbout = true;
properties.hasSettings = false;
properties.visibilityControl = false;
@@ -53,3 +52,8 @@ void StreamBrowserFactory::showAbout(QWidget *parent)
tr("This plugin allows one to add stream from IceCast stream directory")+"\n"+
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
+
+QString StreamBrowserFactory::translation() const
+{
+ return QLatin1String(":/streambrowser_plugin_");
+}
diff --git a/src/plugins/General/streambrowser/streambrowserfactory.h b/src/plugins/General/streambrowser/streambrowserfactory.h
index 320bb77ba..c4436ff81 100644
--- a/src/plugins/General/streambrowser/streambrowserfactory.h
+++ b/src/plugins/General/streambrowser/streambrowserfactory.h
@@ -35,10 +35,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif
diff --git a/src/plugins/General/trackchange/trackchangefactory.cpp b/src/plugins/General/trackchange/trackchangefactory.cpp
index 806f3f073..3933983bb 100644
--- a/src/plugins/General/trackchange/trackchangefactory.cpp
+++ b/src/plugins/General/trackchange/trackchangefactory.cpp
@@ -24,12 +24,11 @@
#include "settingsdialog.h"
#include "trackchangefactory.h"
-const GeneralProperties TrackChangeFactory::properties() const
+GeneralProperties TrackChangeFactory::properties() const
{
GeneralProperties properties;
properties.name = tr("Track Change Plugin");
properties.shortName = "trackchange";
- properties.translation = QLatin1String(":/trackchange_plugin_");
properties.hasAbout = true;
properties.hasSettings = true;
properties.visibilityControl = false;
@@ -53,3 +52,8 @@ void TrackChangeFactory::showAbout(QWidget *parent)
tr("This plugin executes external command when current track is changed") + "\n" +
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
+
+QString TrackChangeFactory::translation() const
+{
+ return QLatin1String(":/trackchange_plugin_");
+}
diff --git a/src/plugins/General/trackchange/trackchangefactory.h b/src/plugins/General/trackchange/trackchangefactory.h
index 955053a72..f8470b1b6 100644
--- a/src/plugins/General/trackchange/trackchangefactory.h
+++ b/src/plugins/General/trackchange/trackchangefactory.h
@@ -34,10 +34,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif
diff --git a/src/plugins/General/udisks2/udisks2factory.cpp b/src/plugins/General/udisks2/udisks2factory.cpp
index 4be6d28f2..721ff275f 100644
--- a/src/plugins/General/udisks2/udisks2factory.cpp
+++ b/src/plugins/General/udisks2/udisks2factory.cpp
@@ -24,12 +24,11 @@
#include "udisks2plugin.h"
#include "udisks2factory.h"
-const GeneralProperties UDisks2Factory::properties() const
+GeneralProperties UDisks2Factory::properties() const
{
GeneralProperties properties;
properties.name = tr("UDisks2 Plugin");
properties.shortName = "udisks2";
- properties.translation = QLatin1String(":/udisks2_plugin_");
properties.hasAbout = true;
properties.hasSettings = true;
properties.visibilityControl = false;
@@ -53,3 +52,8 @@ void UDisks2Factory::showAbout(QWidget *parent)
tr("This plugin provides removable devices detection using UDisks2") + "\n" +
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
+
+QString UDisks2Factory::translation() const
+{
+ return QLatin1String(":/udisks2_plugin_");
+}
diff --git a/src/plugins/General/udisks2/udisks2factory.h b/src/plugins/General/udisks2/udisks2factory.h
index cdf1081fb..e760bf43c 100644
--- a/src/plugins/General/udisks2/udisks2factory.h
+++ b/src/plugins/General/udisks2/udisks2factory.h
@@ -34,10 +34,11 @@ Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.GeneralFactoryInterface.1.0")
Q_INTERFACES(GeneralFactory)
public:
- const GeneralProperties properties() const;
+ GeneralProperties properties() const;
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
+ QString translation() const;
};
#endif