SVN commit 622012 by dfaure: Move mimetype() up from MimetypeJob to TransferJob, so that kmail doesn't have to do a nasty downcast of a TransferJob to MimetypeJob to get hold of it. M +7 -7 jobclasses.h --- trunk/KDE/kdelibs/kio/kio/jobclasses.h #622011:622012 @@ -771,6 +771,13 @@ */ bool reportDataSent(); + /** + * Call this in the slot connected to result, + * and only after making sure no error happened. + * @return the mimetype of the URL + */ + QString mimetype() const { return m_mimetype; } + Q_SIGNALS: /** * Data from the slave has arrived. @@ -1026,13 +1033,6 @@ MimetypeJob(const KUrl& url, int command, const QByteArray &packedArgs, bool showProgressInfo); /** - * Call this in the slot connected to result, - * and only after making sure no error happened. - * @return the mimetype of the URL - */ - QString mimetype() const { return m_mimetype; } - - /** * @internal * Called by the scheduler when a slave gets to * work on this job.