File indexing completed on 2024-06-09 04:47:53

0001 /*
0002 
0003     SPDX-FileCopyrightText: 1998-2008 Sebastian Trueg <trueg@k3b.org>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #include <config-k3b.h>
0009 
0010 #include "k3b<name>encoder.h"
0011 #include "k3bplugin_i18n.h"
0012 
0013 #include <KConfig>
0014 #include <KSharedConfig>
0015 #include <QDebug>
0016 
0017 K3B_EXPORT_PLUGIN(k3b<name>encoder, K3b<name>Encoder)
0018 K3B_EXPORT_PLUGIN_CONFIG_WIDGET( kcm_<name>, K3b<name>EncoderConfigWidget )
0019 
0020 K3b<name>Encoder::K3b<name>Encoder( QObject* parent, const QVariantList& )
0021     : K3b::AudioEncoder( parent )
0022 {
0023 }
0024 
0025 
0026 K3b<name>Encoder::~K3b<name>Encoder()
0027 {
0028 }
0029 
0030 
0031 bool K3b<name>Encoder::initEncoderInternal( const QString& extension, const Msf& length, const MetaData& metaData )
0032 {
0033     // PUT YOUR CODE HERE
0034     return false;
0035 }
0036 
0037 
0038 long K3b<name>Encoder::encodeInternal( const char* data, Q_ULONG len )
0039 {
0040     // PUT YOUR CODE HERE
0041     return false;
0042 }
0043 
0044 
0045 void K3b<name>Encoder::finishEncoderInternal()
0046 {
0047     // PUT YOUR CODE HERE
0048 }
0049 
0050 
0051 QStringList K3b<name>Encoder::extensions() const
0052 {
0053     // PUT YOUR CODE HERE
0054     return QStringList( "" );
0055 }
0056 
0057 
0058 QString K3b<name>Encoder::fileTypeComment( const QString& ) const
0059 {
0060     // PUT YOUR CODE HERE
0061     return "";
0062 }
0063 
0064 
0065 long long K3b<name>Encoder::fileSize( const QString&, const K3b::Msf& msf ) const
0066 {
0067     // PUT YOUR CODE HERE
0068     return -1;
0069 }
0070 
0071 
0072 
0073 K3b<name>EncoderConfigWidget::K3b<name>EncoderConfigWidget( QWidget* parent )
0074     : K3b::PluginConfigWidget( parent )
0075 {
0076 }
0077 
0078 
0079 K3b<name>EncoderConfigWidget::~K3b<name>EncoderConfigWidget()
0080 {
0081 }
0082 
0083 
0084 void K3b<name>EncoderConfigWidget::load()
0085 {
0086     KSharedConfig::Ptr c = KSharedConfig::openConfig();
0087     c->setGroup( "K3b<name>EncoderPlugin" );
0088 
0089     // PUT YOUR CODE HERE
0090 }
0091 
0092 
0093 void K3b<name>EncoderConfigWidget::save()
0094 {
0095     KSharedConfig::Ptr c = KSharedConfig::openConfig();
0096     c->setGroup( "K3b<name>EncoderPlugin" );
0097 
0098     // PUT YOUR CODE HERE
0099 }
0100 
0101 
0102 void K3b<name>EncoderConfigWidget::defaults()
0103 {
0104     // PUT YOUR CODE HERE
0105 }
0106 
0107 
0108 #include "k3b<name>encoder.moc"
0109 
0110 #include "moc_skeleton.cpp"