#include "soundkonverterapp.h" #include "tplugins.h" #include #include #include static const char description[] = I18N_NOOP("soundKonverter is a frontend to various audio converters, Replay Gain tools and CD rippers.\n\nPlease file bug reports at https://bugs.launchpad.net/ubuntu/+source/soundkonverter\nor simply send me a mail to hessijames@gmail.com"); static const char version[] = "0.3.8"; static KCmdLineOptions options[] = { { "replaygain", I18N_NOOP("Open the Replay Gain tool an add all given files"), 0 }, // { "repair", I18N_NOOP("Open the repair files tool an add all given files"), 0 }, { "rip ", I18N_NOOP("List all tracks on the cd drive , 'auto' will search for a cd"), 0 }, { "profile ", I18N_NOOP("Add all files using the given profile"), 0 }, { "format ", I18N_NOOP("Add all files using the given format"), 0 }, { "output ", I18N_NOOP("Output all files to "), 0 }, { "invisible", I18N_NOOP("Start soundKonverter invisible"), 0 }, { "autoclose", I18N_NOOP("Close soundKonverter after all files are converted (enabled when using '--invisible')"), 0 }, { "command ", I18N_NOOP("Execute after each file has been converted"), 0 }, { "+[files]", I18N_NOOP("Audio file(s) to append to the file list"), 0 }, KCmdLineLastOption }; int main(int argc, char **argv) { KAboutData about("soundkonverter", I18N_NOOP("soundKonverter"), version, description, KAboutData::License_GPL, "(C) 2008 Daniel Faust", 0, 0, "hessijames@gmail.com"); about.addAuthor( "Daniel Faust", 0, "hessijames@gmail.com" ); about.addCredit( "David Vignoni", "Nuvola icon theme", 0, "http://www.icon-king.com" ); about.addCredit( "Scott Wheeler", "TagLib", "wheeler@kde.org", "http://ktown.kde.org/~wheeler" ); about.addCredit( "Amarok developers", "Amarok", 0, "http://amarok.kde.org" ); about.addCredit( "Kaffeine developers", "Kaffeine", 0, "http://kaffeine.sourceforge.net" ); about.addCredit( "All programmers of audioconverters", "Backends" ); KCmdLineArgs::init(argc, argv, &about); KCmdLineArgs::addCmdLineOptions( options ); soundKonverterApp::addCmdLineOptions(); if( !soundKonverterApp::start() ) { return 0; } soundKonverterApp app; registerTaglibPlugins(); // mainWin has WDestructiveClose flag by default, so it will delete itself. return app.exec(); } /* methods and files to update: outputdirectory.cpp: vfatPath( const QString& path ) metadata/ cddb.cpp, cddb.h cdmanager.cpp, cdmanager.h audio/x-musepack;application/x-musepack;audio/musepack;application/musepack; application/x-ape;audio/ape;audio/x-ape; audio/x-mp3;application/x-id3;audio/mpeg;audio/x-mpeg;audio/x-mpeg-3;audio/mpeg3;audio/mp3;audio/x-mp3;application/x-id3;audio/mpeg;audio/x-mpeg;audio/x-mpeg-3;audio/mpeg3;audio/mp3; audio/mp4;audio/x-m4a;audio/x-m4a; audio/mpc;audio/x-mpc;audio/mp;audio/x-mp;audio/mpc;audio/x-mpc;audio/mp;audio/x-mp; application/ogg;application/x-ogg;application/x-vorbis+ogg;audio/x-vorbis+ogg;audio/vorbis;audio/x-vorbis;audio/ogg;audio/x-ogg;application/ogg;application/x-ogg;audio/vorbis;audio/x-vorbis;audio/ogg;audio/x-ogg; audio/x-flac;application/x-flac;audio/flac;audio/x-flac;application/x-flac;audio/flac; audio/x-s3m;audio/x-mod;audio/x-xm;audio/x-it;audio/x-s3m;audio/x-mod;audio/x-xm;audio/x-it */