Commit 75adfd3c authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Use override as suggested by compiler

parent dcc8a75e
......@@ -45,9 +45,9 @@ class AudioCDProtocol : public KIO::SlaveBase
AudioCDProtocol(const QByteArray & protocol, const QByteArray & pool, const QByteArray & app);
virtual ~AudioCDProtocol();
virtual void get(const QUrl &);
virtual void stat(const QUrl &);
virtual void listDir(const QUrl &);
virtual void get(const QUrl &) override;
virtual void stat(const QUrl &) override;
virtual void listDir(const QUrl &) override;
protected:
AudioCDEncoder *encoderFromExtension(const QString& extension);
......
......@@ -52,12 +52,12 @@ public:
explicit KAudiocdModule(QWidget *parent=0, const QVariantList &args=QVariantList());
~KAudiocdModule();
QString quickHelp() const;
QString quickHelp() const override;
public slots:
void defaults();
void save();
void load();
void defaults() override;
void save() override;
void load() override;
private slots:
void updateExample();
......
......@@ -45,17 +45,17 @@ public:
explicit EncoderFLAC(KIO::SlaveBase *slave);
~EncoderFLAC();
virtual QString type() const { return QLatin1String( "FLAC" ); };
virtual bool init();
virtual void loadSettings();
virtual unsigned long size(long time_secs) const;
virtual const char * fileType() const { return "flac"; };
virtual const char * mimeType() const { return "audio/x-flac"; }
virtual void fillSongInfo( KCDDB::CDInfo info, int track, const QString &comment );
virtual long readInit(long size);
virtual long read(qint16 * buf, int frames);
virtual long readCleanup();
virtual QWidget* getConfigureWidget(KConfigSkeleton** manager) const;
virtual QString type() const override { return QLatin1String( "FLAC" ); };
virtual bool init() override;
virtual void loadSettings() override;
virtual unsigned long size(long time_secs) const override;
virtual const char * fileType() const override { return "flac"; };
virtual const char * mimeType() const override { return "audio/x-flac"; }
virtual void fillSongInfo( KCDDB::CDInfo info, int track, const QString &comment ) override;
virtual long readInit(long size) override;
virtual long read(qint16 * buf, int frames) override;
virtual long readCleanup() override;
virtual QWidget* getConfigureWidget(KConfigSkeleton** manager) const override;
class Private;
private:
......
......@@ -45,19 +45,19 @@ public:
explicit EncoderLame(KIO::SlaveBase *slave);
~EncoderLame();
virtual QString type() const { return "MP3"; }
virtual bool init();
virtual void loadSettings();
virtual unsigned long size(long time_secs) const;
virtual const char * fileType() const { return "mp3"; }
virtual const char * mimeType() const { return "audio/x-mp3"; }
virtual void fillSongInfo( KCDDB::CDInfo info, int track, const QString &comment );
virtual long readInit(long size);
virtual long read(qint16 * buf, int frames);
virtual long readCleanup();
virtual QString lastErrorMessage() const;
virtual QString type() const override { return "MP3"; }
virtual bool init() override;
virtual void loadSettings() override;
virtual unsigned long size(long time_secs) const override;
virtual const char * fileType() const override { return "mp3"; }
virtual const char * mimeType() const override { return "audio/x-mp3"; }
virtual void fillSongInfo( KCDDB::CDInfo info, int track, const QString &comment ) override;
virtual long readInit(long size) override;
virtual long read(qint16 * buf, int frames) override;
virtual long readCleanup() override;
virtual QString lastErrorMessage() const override;
virtual QWidget* getConfigureWidget(KConfigSkeleton** manager) const;
virtual QWidget* getConfigureWidget(KConfigSkeleton** manager) const override;
protected slots:
// void wroteStdin();
......
......@@ -28,9 +28,9 @@
class EncoderOpusConfig : public QWidget, public Ui::EncoderOpusConfig
{
public:
EncoderOpusConfig( QWidget *parent = 0 ) : QWidget( parent ) {
setupUi( this );
}
EncoderOpusConfig( QWidget *parent = 0 ) : QWidget( parent ) {
setupUi( this );
}
};
......@@ -46,19 +46,19 @@ public:
explicit EncoderOpus(KIO::SlaveBase *slave);
~EncoderOpus();
virtual QString type() const { return QStringLiteral( "Opus" ); }
virtual bool init();
virtual void loadSettings();
virtual unsigned long size(long time_secs) const;
virtual const char * fileType() const { return "opus"; }
virtual const char * mimeType() const { return "audio/x-opus+ogg"; }
virtual void fillSongInfo( KCDDB::CDInfo info, int track, const QString &comment );
virtual long readInit(long size);
virtual long read(qint16 * buf, int frames);
virtual long readCleanup();
virtual QString lastErrorMessage() const;
virtual QWidget* getConfigureWidget(KConfigSkeleton** manager) const;
virtual QString type() const override { return QStringLiteral( "Opus" ); }
virtual bool init() override;
virtual void loadSettings() override;
virtual unsigned long size(long time_secs) const override;
virtual const char * fileType() const override { return "opus"; }
virtual const char * mimeType() const override { return "audio/x-opus+ogg"; }
virtual void fillSongInfo( KCDDB::CDInfo info, int track, const QString &comment ) override;
virtual long readInit(long size) override;
virtual long read(qint16 * buf, int frames) override;
virtual long readCleanup() override;
virtual QString lastErrorMessage() const override;
virtual QWidget* getConfigureWidget(KConfigSkeleton** manager) const override;
protected slots:
void receivedStdout();
......
......@@ -48,17 +48,17 @@ public:
explicit EncoderVorbis(KIO::SlaveBase *slave);
~EncoderVorbis();
virtual QString type() const { return QLatin1String( "Ogg Vorbis" ); }
virtual bool init();
virtual void loadSettings();
virtual unsigned long size(long time_secs) const;
virtual const char * fileType() const { return "ogg"; }
virtual const char * mimeType() const;
virtual void fillSongInfo( KCDDB::CDInfo info, int track, const QString &comment );
virtual long readInit(long size);
virtual long read(qint16 * buf, int frames);
virtual long readCleanup();
virtual QWidget* getConfigureWidget(KConfigSkeleton** manager) const;
virtual QString type() const override { return QLatin1String( "Ogg Vorbis" ); }
virtual bool init() override;
virtual void loadSettings() override;
virtual unsigned long size(long time_secs) const override;
virtual const char * fileType() const override { return "ogg"; }
virtual const char * mimeType() const override;
virtual void fillSongInfo( KCDDB::CDInfo info, int track, const QString &comment ) override;
virtual long readInit(long size) override;
virtual long read(qint16 * buf, int frames) override;
virtual long readCleanup() override;
virtual QWidget* getConfigureWidget(KConfigSkeleton** manager) const override;
private:
long flush_vorbis();
......
......@@ -40,16 +40,16 @@ class EncoderCda : public AudioCDEncoder {
public:
explicit EncoderCda(KIO::SlaveBase *slave) : AudioCDEncoder(slave) {}
~EncoderCda(){}
virtual bool init(){ return true; }
virtual void loadSettings(){}
virtual unsigned long size(long time_secs) const;
virtual QString type() const { return QLatin1String( "CDA" ); }
virtual const char * mimeType() const;
virtual const char * fileType() const { return "cda"; }
virtual void fillSongInfo( KCDDB::CDInfo, int, const QString &){}
virtual long readInit(long){ return 0; }
virtual long read(qint16 * buf, int frames);
virtual long readCleanup(){ return 0; }
virtual bool init() override { return true; }
virtual void loadSettings() override {}
virtual unsigned long size(long time_secs) const override;
virtual QString type() const override { return QLatin1String( "CDA" ); }
virtual const char * mimeType() const override;
virtual const char * fileType() const override { return "cda"; }
virtual void fillSongInfo( KCDDB::CDInfo, int, const QString &) override {}
virtual long readInit(long) override { return 0; }
virtual long read(qint16 * buf, int frames) override;
virtual long readCleanup() override { return 0; }
};
......
......@@ -39,13 +39,13 @@ class EncoderWav : public EncoderCda {
public:
explicit EncoderWav(KIO::SlaveBase *slave) : EncoderCda(slave) {}
~EncoderWav(){}
virtual bool init(){ return true; }
virtual unsigned long size(long time_secs) const;
virtual QString type() const { return QLatin1String( "Wav" ); }
virtual const char * fileType() const { return "wav"; }
virtual const char * mimeType() const;
virtual void fillSongInfo( KCDDB::CDInfo, int, const QString &){}
virtual long readInit(long size);
virtual bool init() override { return true; }
virtual unsigned long size(long time_secs) const override;
virtual QString type() const override { return QLatin1String( "Wav" ); }
virtual const char * fileType() const override { return "wav"; }
virtual const char * mimeType() const override;
virtual void fillSongInfo( KCDDB::CDInfo, int, const QString &) override {}
virtual long readInit(long size) override;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment