Commit 3bfde6ee authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Fix minor typos

parent 802ee66f
......@@ -59,7 +59,7 @@ namespace K3b {
public:
/**
* Although Core is a singlelton it's constructor is not private to make inheritance
* Although Core is a singleton it's constructor is not private to make inheritance
* possible. Just make sure to only create one instance.
*/
explicit Core( QObject* parent = 0 );
......
......@@ -98,7 +98,7 @@ namespace K3b {
/**
* this scans for the program in the given path,
* adds the found bin object to the list and returnes true.
* adds the found bin object to the list and returns true.
* if nothing could be found false is returned.
*/
virtual bool scan( const QString& ) = 0;
......@@ -111,7 +111,7 @@ namespace K3b {
/**
* Builds the path to the program from the \p dir and the \p programName.
* On Windows the .exe extension is added autoamtically.
* On Windows the .exe extension is added automatically.
*/
static QString buildProgramPath( const QString& dir, const QString& programName );
......
......@@ -179,7 +179,7 @@ namespace K3b {
/**
* returns the parent dir of a path.
* CAUTION: this does only work well with absolut paths.
* CAUTION: this does only work well with absolute paths.
*
* Example: /usr/share/doc -> /usr/share/
*/
......
......@@ -59,7 +59,7 @@ K3b::Job::~Job()
// but we do this here for security reasons.
//
if( d->active ) {
qDebug() << "Finishing job in destuctor! This is NOT good. Fix the job.";
qDebug() << "Finishing job in destructor! This is NOT good. Fix the job.";
jobFinished( false );
}
......
......@@ -220,7 +220,7 @@ namespace K3b {
void started();
/**
* Emitted once the job has been finshed. Never emit this signal directly.
* Emitted once the job has been finished. Never emit this signal directly.
* Use jobFinished() instead, otherwise the job will not be properly deregistered
*/
void finished( bool success );
......
......@@ -220,7 +220,7 @@ int K3b::Version::compareSuffix( const QString& suffix1, const QString& suffix2
static QRegExp betaRx( "beta(\\d+)" );
static QRegExp alphaRx( "a(?:lpha)?(\\d+)" );
// first we check if one of the suffixes (or both are empty) becasue that case if simple
// first we check if one of the suffixes (or both are empty) because that case if simple
if( suffix1.isEmpty() ) {
if( suffix2.isEmpty() )
return 0;
......
......@@ -126,7 +126,7 @@ namespace K3b {
* [empty prefix] > rcX > preX > betaX > alphaX = aX (where X is a number)
*
* Every other suffixes are compared alphanumerical.
* An empty prefix is always considered newer than an unknown non-emtpy suffix (e.g. not one of the above.)
* An empty prefix is always considered newer than an unknown non-empty suffix (e.g. not one of the above.)
*
* @return \li -1 if suffix1 is less than suffix2
* \li 0 if suffix1 equals suffix2 (be aware that this is not the same as comparing to strings as
......
......@@ -992,7 +992,7 @@ void K3b::CdCopyJob::slotSessionReaderFinished( bool success )
if( !m_onlyCreateImages ) {
if( m_readerDevice == m_writerDevice ) {
// eject the media (we do this blocking to know if it worked
// becasue if it did not it might happen that k3b overwrites a CD-RW
// because if it did not it might happen that k3b overwrites a CD-RW
// source)
if( !K3b::eject( m_readerDevice ) ) {
blockingInformation( i18n("K3b was unable to eject the source disk. Please do so manually.") );
......
......@@ -418,7 +418,7 @@ int K3b::DataTrackReader::read( unsigned char* buffer, unsigned long sector, uns
}
// here we read every single sector for itself to find the troubleing ones
// here we read every single sector for itself to find the troubling ones
bool K3b::DataTrackReader::retryRead( unsigned char* buffer, unsigned long startSector, unsigned int len )
{
emit debuggingOutput( "K3b::DataTrackReader", QString( "Problem while reading. Retrying from sector %1.").arg(startSector) );
......
......@@ -118,7 +118,7 @@ void K3b::Iso9660ImageWritingJob::slotWriterJobFinished( bool success )
if( !m_simulate && m_verifyData ) {
emit burning(false);
// allright
// alright
// the writerJob should have emitted the "simulation/writing successful" signal
if( !d->verifyJob ) {
......
......@@ -36,7 +36,7 @@ namespace K3b {
* descriptor.
* \li Audio tracks: Rip the track with a 2352 bytes sector size.
* In the case of audio tracks the job will not fail if the checksums
* differ becasue audio CD tracks do not contain error correction data.
* differ because audio CD tracks do not contain error correction data.
* In this case only a warning will be emitted.
*
* Other sector sizes than 2048 bytes for data tracks are not supported yet,
......
......@@ -493,7 +493,7 @@ bool K3b::AudioDecoder::seek( const K3b::Msf& pos )
// First check if we may do a "perfect seek".
// We cannot rely on the decoding plugins to seek perfectly. Especially
// the mp3 decoder does not. But in case we want to split a live recording
// it is absolutely nesseccary to perform a perfect seek.
// it is absolutely necessary to perform a perfect seek.
// So if we did not already decode past the seek position and the difference
// between the current position and the seek position is less than some fixed
// value we simply decode up to the seek position.
......
......@@ -92,7 +92,7 @@ namespace K3b {
* The filetype is only used for informational purposes.
* It is not necessary but highly recommended to implement this method
* as it enhances usability.
* @returne The filetype of the decoded file.
* @return The filetype of the decoded file.
*/
virtual QString fileType() const { return QString(); }
......@@ -113,7 +113,7 @@ namespace K3b {
virtual QString technicalInfo( const QString& ) const;
/**
* returnes -1 on error, 0 when finished, length of data otherwise
* returns -1 on error, 0 when finished, length of data otherwise
* takes care of padding
* calls decodeInternal() to actually decode data
*
......@@ -133,7 +133,7 @@ namespace K3b {
* Seek to the position pos.
* Decoding is started new. That means that the data will be padded to
* length() - pos.
* returnes true on success;
* returns true on success;
*/
bool seek( const Msf& pos );
......
......@@ -75,7 +75,7 @@ namespace K3b {
/**
* Determine the filesize of the encoded file (~)
* default implementation returnes -1 (unknown)
* default implementation returns -1 (unknown)
* First parameter is the extension to be used
*/
virtual long long fileSize( const QString&, const Msf& ) const { return -1; }
......@@ -94,7 +94,7 @@ namespace K3b {
typedef QHash<MetaDataField, QVariant> MetaData;
/**
* The default implementation openes the file for writing with
* The default implementation opens the file for writing with
* writeData. Normally this does not need to be reimplemented.
* @param extension the filetype to be used.
* @param filename path to an output file
......@@ -108,7 +108,7 @@ namespace K3b {
/**
* The default implementation returnes true if openFile (default implementation) has been
* The default implementation returns true if openFile (default implementation) has been
* successfully called. Normally this does not need to be reimplemented but it has to be
* if openFile is reimplemented.
*/
......@@ -123,7 +123,7 @@ namespace K3b {
virtual void closeFile();
/**
* The default implementation returnes the filename set in openFile
* The default implementation returns the filename set in openFile
* or QString() if no file has been opened.
* Normally this does not need to be reimplemented but it has to be
* if openFile is reimplemented.
......@@ -131,7 +131,7 @@ namespace K3b {
virtual QString filename() const;
/**
* Returnes the amount of actually written bytes or -1 if an error
* Returns the amount of actually written bytes or -1 if an error
* occurred.
*
* Be aware that the returned amount of written data may very well differ
......@@ -153,7 +153,7 @@ namespace K3b {
bool initEncoder( const QString& extension, const Msf& length, const MetaData& metaData );
/**
* Called by the deafult implementation of openFile
* Called by the default implementation of openFile
* This calls finishEncoderInternal.
*/
void finishEncoder();
......@@ -161,7 +161,7 @@ namespace K3b {
/**
* Use this to write the data to the file when
* using the default implementation of openFile
* Returnes the number of bytes actually written.
* Returns the number of bytes actually written.
*/
qint64 writeData( const char*, qint64 len );
......
......@@ -48,7 +48,7 @@ namespace K3b {
QList<Plugin*> plugins( const QString& category = QString() ) const;
/**
* Returnes a list of the available categories.
* Returns a list of the available categories.
*/
QStringList categories() const;
......
......@@ -26,7 +26,7 @@ namespace K3b {
* This Iterator iterates over the sources in an audio project
*
* Be aware that this iterator does not properly update when the doc
* changes. A manual update can be issued with first(). This is becasue
* changes. A manual update can be issued with first(). This is because
* an update would either involve slots (this being a QObject) which is
* too much overhead or the AudioDoc would need to have knowledge of all
* the iterators which is also overhead that would be overkill.
......
......@@ -875,7 +875,7 @@ bool K3b::AudioDoc::saveDocumentData( QDomElement* docElem )
for( K3b::AudioDataSource* source = track->firstSource(); source; source = source->next() ) {
// TODO: save a source element with a type attribute and start- and endoffset
// then distict between the different source types.
// then distinct between the different source types.
if( K3b::AudioFile* file = dynamic_cast<K3b::AudioFile*>(source) ) {
QDomElement sourceElem = doc.createElement( "file" );
sourceElem.setAttribute( "url", file->filename() );
......
......@@ -360,7 +360,7 @@ void K3b::AudioJob::slotMaxSpeedJobFinished( bool success )
emit infoMessage( i18n("Unable to determine maximum speed for some reason. Ignoring."), MessageWarning );
// now start the writing
// same code as above. See the commecnts there
// same code as above. See the comments there
if( !prepareWriter() ) {
cleanupAfterError();
jobFinished(false);
......
......@@ -581,7 +581,7 @@ bool K3b::DataDoc::loadDataItem( QDomElement& elem, K3b::DirItem* parent )
QFileInfo f( urlElem.text() );
// We canot use exists() here since this always disqualifies broken symlinks
// We cannot use exists() here since this always disqualifies broken symlinks
if( !f.isFile() && !f.isSymLink() )
d->notFoundFiles.append( urlElem.text() );
......
......@@ -58,7 +58,7 @@ namespace K3b {
QString name() const override;
/**
* The spported media types based on the project size
* The supported media types based on the project size
* and settings (example: if writing mode == TAO we force
* CD media)
*/
......@@ -86,7 +86,7 @@ namespace K3b {
KIO::filesize_t size() const override;
/**
* This is used for multisession where size() also returnes the imported session's size
* This is used for multisession where size() also returns the imported session's size
*/
KIO::filesize_t burningSize() const override;
Msf length() const override;
......@@ -210,7 +210,7 @@ namespace K3b {
void addUrls( const QList<QUrl>& urls ) override;
/**
* Add urls syncroneously
* Add urls synchronously
* This method adds files recursively including symlinks, hidden, and system files.
* If a file already exists the new file's name will be appended a number.
*/
......@@ -219,7 +219,7 @@ namespace K3b {
void clearImportedSession();
/**
* Just a convience method to prevent using setIsoOptions for this
* Just a convenience method to prevent using setIsoOptions for this
* often used value.
*/
void setVolumeID( const QString& );
......@@ -256,11 +256,11 @@ namespace K3b {
void endRemoveItems( DirItem* parent, int start, int end );
/**
* load recursivly
* load recursively
*/
bool loadDataItem( QDomElement& e, DirItem* parent );
/**
* save recursivly
* save recursively
*/
void saveDataItem( DataItem* item, QDomDocument* doc, QDomElement* parent );
......
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