aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/ffmpeg/settingsdialog.ui
Commit message (Expand)AuthorAgeFilesLines
* added vqf supporttrialuser022011-12-011-2/+9
* EAC3, DTS, and Dolby TrueHD support (patch by Makis Kalofolias)trialuser022011-08-151-1/+15
* fixed ffmpeg settingstrialuser022011-05-201-8/+1
* fixed alac support (Closes issue 472)trialuser022011-05-121-2/+2
* ac3 supporttrialuser022011-04-251-2/+9
* added shorten audio formattrialuser022010-05-111-1/+8
* improved ffmpeg plugin: added stream input, fixed some bugstrialuser022010-01-061-38/+48
* mp3 support by ffmpeg plugin (Csaba Hrushka)trialuser022009-01-161-1/+8
* updated Russian translationtrialuser022008-12-231-1/+1
* more ffmpeg formats support (including ape); ffmpeg plugin settingstrialuser022008-12-191-0/+137
"hl com"> * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include <QtGui> #include <QFile> #include "aacfile.h" #include "detailsdialog.h" #include "decoder_aac.h" #include "decoderaacfactory.h" // DecoderAACFactory bool DecoderAACFactory::supports(const QString &source) const { return (source.right(4).toLower() == ".aac") || (source.right(4).toLower() == ".m4a"); } bool DecoderAACFactory::canDecode(QIODevice *) const { return FALSE; } const DecoderProperties DecoderAACFactory::properties() const { DecoderProperties properties; properties.name = tr("AAC Plugin"); properties.filter = "*.aac"; properties.description = tr("AAC Files"); //properties.contentType = ; properties.shortName = "aac"; properties.hasAbout = TRUE; properties.hasSettings = FALSE; return properties; } Decoder *DecoderAACFactory::create(QObject *parent, QIODevice *input, Output *output, const QString &) { return new DecoderAAC(parent, this, input, output); } QList<FileInfo *> DecoderAACFactory::createPlayList(const QString &fileName, bool useMetaData) { FileInfo *info = new FileInfo(fileName); QFile file(fileName); if (file.open(QIODevice::ReadOnly)) { AACFile aac_file(&file, useMetaData); if (useMetaData) info->setMetaData(aac_file.metaData()); info->setLength(aac_file.length()); } QList <FileInfo*> list; list << info; return list; } QObject* DecoderAACFactory::showDetails(QWidget *parent, const QString &path) { DetailsDialog *d = new DetailsDialog(parent, path); d -> show(); return d; } void DecoderAACFactory::showSettings(QWidget *) {} void DecoderAACFactory::showAbout(QWidget *parent) { QMessageBox::about (parent, tr("About AAC Audio Plugin"), tr("Qmmp AAC Audio Plugin")+"\n"+ tr("Writen by: Ilya Kotov <forkotov02@hotmail.ru>")); } QTranslator *DecoderAACFactory::createTranslator(QObject *parent) { QTranslator *translator = new QTranslator(parent); QString locale = QLocale::system().name(); translator->load(QString(":/aac_plugin_") + locale); return translator; } Q_EXPORT_PLUGIN(DecoderAACFactory)