From f2cfda2a54780868dfe0af7bd652fcd4906547da Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 1 Mar 2010 19:09:31 +0000 Subject: Added KDE3 version of SoundKonverter git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/soundkonverter@1097614 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/pluginloader/replaygainpluginloader.h | 89 +++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100755 src/pluginloader/replaygainpluginloader.h (limited to 'src/pluginloader/replaygainpluginloader.h') diff --git a/src/pluginloader/replaygainpluginloader.h b/src/pluginloader/replaygainpluginloader.h new file mode 100755 index 0000000..d1c1237 --- /dev/null +++ b/src/pluginloader/replaygainpluginloader.h @@ -0,0 +1,89 @@ + + +#ifndef REPLAYGAINPLUGINLOADER_H +#define REPLAYGAINPLUGINLOADER_H + +#include "pluginloaderbase.h" + + +/** + * @short The complete data, how to use the backend + * @author Daniel Faust + * @version 0.3 + */ +class ReplayGainPlugin +{ +public: + /** + * Constructor + */ + ReplayGainPlugin(); + + /** + * Destructor + */ + virtual ~ReplayGainPlugin(); + + QString filePathName; // the file name of th plugin (needed to detect write permissions) + + struct Info + { + int version; // the version of our plugin (v0.2.1 = 201, v11.3 = 110300) + QString name; // the name of our plugin + QString author; // the author of the plugin + QString about; // a short information aboue the plugin + } info; + + struct ReplayGain + { + //PluginLoaderBase::FeatureLevel level; + int rank; + QString bin; + QString param; + QString silent_param; + QStringList mime_types; + QString in_files; + QString output_single; + QString output_multiple; + QString force; + QString skip; + QString track; // TODO remove track and album (put them into param) + QString album; + QString remove; + + /*struct Test // obsolete + { + bool enabled; + QString param; + QString output_track; + QString output_album; + } test;*/ + } replaygain; +}; + +/** + * @short The plugin loader for the replaygain plugins + * @author Daniel Faust + * @version 0.3 + */ +class ReplayGainPluginLoader : public PluginLoaderBase +{ + Q_OBJECT +public: + /** + * Constructor + */ + ReplayGainPluginLoader(); + + /** + * Destructor + */ + virtual ~ReplayGainPluginLoader(); + + /** is this file a replaygain plugin and loadable? */ + int verifyFile( QString ); + /** load a given file */ + ReplayGainPlugin* loadFile( QString ); +}; + +#endif // REPLAYGAINPLUGINLOADER_H -- cgit v1.2.1