diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:06:28 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:06:28 -0600 |
commit | 83b79bb29aaa412caec6abcdb42ca21d248b3b3a (patch) | |
tree | f48e8ae855d4a0be0c3ecf912a92168a829ff8c5 /libk3b/projects | |
parent | 2a3ced9fbd85b4fdbfa9b0a91f8d22e35ceaf6b5 (diff) | |
download | k3b-83b79bb29aaa412caec6abcdb42ca21d248b3b3a.tar.gz k3b-83b79bb29aaa412caec6abcdb42ca21d248b3b3a.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'libk3b/projects')
41 files changed, 87 insertions, 87 deletions
diff --git a/libk3b/projects/audiocd/k3baudiodatasource.h b/libk3b/projects/audiocd/k3baudiodatasource.h index f3bc770..1cb6f71 100644 --- a/libk3b/projects/audiocd/k3baudiodatasource.h +++ b/libk3b/projects/audiocd/k3baudiodatasource.h @@ -67,7 +67,7 @@ class LIBK3B_EXPORT K3bAudioDataSource /** * @return The raw size in pcm samples (16bit, 44800 kHz, stereo) */ - KIO::filesize_t size() const { return length().audioBytes(); } + TDEIO::filesize_t size() const { return length().audioBytes(); } virtual bool seek( const K3b::Msf& ) = 0; diff --git a/libk3b/projects/audiocd/k3baudiodoc.cpp b/libk3b/projects/audiocd/k3baudiodoc.cpp index ab06fe2..c66e000 100644 --- a/libk3b/projects/audiocd/k3baudiodoc.cpp +++ b/libk3b/projects/audiocd/k3baudiodoc.cpp @@ -145,7 +145,7 @@ void K3bAudioDoc::setLastTrack( K3bAudioTrack* track ) } -KIO::filesize_t K3bAudioDoc::size() const +TDEIO::filesize_t K3bAudioDoc::size() const { // This is not really correct but what the user expects ;) return length().mode1Bytes(); diff --git a/libk3b/projects/audiocd/k3baudiodoc.h b/libk3b/projects/audiocd/k3baudiodoc.h index fde9879..e40a53e 100644 --- a/libk3b/projects/audiocd/k3baudiodoc.h +++ b/libk3b/projects/audiocd/k3baudiodoc.h @@ -38,7 +38,7 @@ class TQTimer; class TQDomDocument; class TQDomElement; class K3bThreadJob; -class KConfig; +class TDEConfig; class K3bAudioDataSource; class K3bAudioDecoder; class K3bAudioFile; @@ -84,7 +84,7 @@ class LIBK3B_EXPORT K3bAudioDoc : public K3bDoc K3bAudioFile* createAudioFile( const KURL& url ); /** get the current size of the project */ - KIO::filesize_t size() const; + TDEIO::filesize_t size() const; K3b::Msf length() const; // CD-Text diff --git a/libk3b/projects/audiocd/k3baudiotrack.cpp b/libk3b/projects/audiocd/k3baudiotrack.cpp index 5f133a4..8738d99 100644 --- a/libk3b/projects/audiocd/k3baudiotrack.cpp +++ b/libk3b/projects/audiocd/k3baudiotrack.cpp @@ -210,7 +210,7 @@ K3b::Msf K3bAudioTrack::length() const } -KIO::filesize_t K3bAudioTrack::size() const +TDEIO::filesize_t K3bAudioTrack::size() const { return length().audioBytes(); } diff --git a/libk3b/projects/audiocd/k3baudiotrack.h b/libk3b/projects/audiocd/k3baudiotrack.h index 410b1f0..0970662 100644 --- a/libk3b/projects/audiocd/k3baudiotrack.h +++ b/libk3b/projects/audiocd/k3baudiotrack.h @@ -56,7 +56,7 @@ class LIBK3B_EXPORT K3bAudioTrack * @return length of track in frames */ K3b::Msf length() const; - KIO::filesize_t size() const; + TDEIO::filesize_t size() const; const TQString& artist() const { return m_cdText.performer(); } const TQString& performer() const { return m_cdText.performer(); } diff --git a/libk3b/projects/datacd/k3bdatadoc.cpp b/libk3b/projects/datacd/k3bdatadoc.cpp index 79e6625..c48650e 100644 --- a/libk3b/projects/datacd/k3bdatadoc.cpp +++ b/libk3b/projects/datacd/k3bdatadoc.cpp @@ -229,7 +229,7 @@ K3bDirItem* K3bDataDoc::addEmptyDir( const TQString& name, K3bDirItem* parent ) } -KIO::filesize_t K3bDataDoc::size() const +TDEIO::filesize_t K3bDataDoc::size() const { if( m_isoOptions.doNotCacheInodes() ) return root()->blocks().mode1Bytes() + m_oldSessionSize; @@ -239,7 +239,7 @@ KIO::filesize_t K3bDataDoc::size() const } -KIO::filesize_t K3bDataDoc::burningSize() const +TDEIO::filesize_t K3bDataDoc::burningSize() const { return size() - m_oldSessionSize; //m_oldSessionSizeHandler->size(); } @@ -1171,7 +1171,7 @@ bool K3bDataDoc::importSession( K3bDevice::Device* device ) // anyway since there might be files overwritten or removed m_oldSessionSize = toc.last().lastSector().mode1Bytes(); - kdDebug() << "(K3bDataDoc) imported session size: " << KIO::convertSize(m_oldSessionSize) << endl; + kdDebug() << "(K3bDataDoc) imported session size: " << TDEIO::convertSize(m_oldSessionSize) << endl; // the track size for DVD+RW media and DVD-RW Overwrite media has nothing to do with the filesystem // size. in that case we need to use the filesystem's size (which is ok since it's one track anyway, diff --git a/libk3b/projects/datacd/k3bdatadoc.h b/libk3b/projects/datacd/k3bdatadoc.h index ec80d5b..00312b6 100644 --- a/libk3b/projects/datacd/k3bdatadoc.h +++ b/libk3b/projects/datacd/k3bdatadoc.h @@ -40,7 +40,7 @@ class K3bFileCompilationSizeHandler; class KProgressDialog; //class K3bView; -class KConfig; +class TDEConfig; class TQString; class TQStringList; class TQWidget; @@ -89,12 +89,12 @@ class LIBK3B_EXPORT K3bDataDoc : public K3bDoc K3bRootItem* root() const { return m_root; } virtual bool newDocument(); - virtual KIO::filesize_t size() const; + virtual TDEIO::filesize_t size() const; /** * This is used for multisession where size() also returnes the imported session's size */ - virtual KIO::filesize_t burningSize() const; + virtual TDEIO::filesize_t burningSize() const; virtual K3b::Msf length() const; virtual K3b::Msf burningLength() const; @@ -131,7 +131,7 @@ class LIBK3B_EXPORT K3bDataDoc : public K3bDoc /** * Most of the options that map to the mkisofs parameters are grouped * together in the K3bIsoOptions class to allow easy saving to and loading - * from a KConfig object. + * from a TDEConfig object. */ const K3bIsoOptions& isoOptions() const { return m_isoOptions; } void setIsoOptions( const K3bIsoOptions& ); @@ -242,7 +242,7 @@ class LIBK3B_EXPORT K3bDataDoc : public K3bDoc K3bFileCompilationSizeHandler* m_sizeHandler; // K3bFileCompilationSizeHandler* m_oldSessionSizeHandler; - KIO::filesize_t m_oldSessionSize; + TDEIO::filesize_t m_oldSessionSize; private: void prepareFilenamesInDir( K3bDirItem* dir ); @@ -274,7 +274,7 @@ class LIBK3B_EXPORT K3bDataDoc : public K3bDoc bool m_verifyData; - KIO::filesize_t m_size; + TDEIO::filesize_t m_size; K3bIsoOptions m_isoOptions; diff --git a/libk3b/projects/datacd/k3bdataitem.cpp b/libk3b/projects/datacd/k3bdataitem.cpp index f5ce21d..40cedbb 100644 --- a/libk3b/projects/datacd/k3bdataitem.cpp +++ b/libk3b/projects/datacd/k3bdataitem.cpp @@ -89,7 +89,7 @@ bool K3bDataItem::isBootItem() const } -KIO::filesize_t K3bDataItem::size() const +TDEIO::filesize_t K3bDataItem::size() const { return itemSize( m_doc ? m_doc->isoOptions().followSymbolicLinks() || diff --git a/libk3b/projects/datacd/k3bdataitem.h b/libk3b/projects/datacd/k3bdataitem.h index 043a0d5..1f68d68 100644 --- a/libk3b/projects/datacd/k3bdataitem.h +++ b/libk3b/projects/datacd/k3bdataitem.h @@ -117,7 +117,7 @@ class LIBK3B_EXPORT K3bDataItem /** * The size of the item */ - KIO::filesize_t size() const; + TDEIO::filesize_t size() const; /** * \return The number of blocks (2048 bytes) occupied by this item. @@ -183,7 +183,7 @@ class LIBK3B_EXPORT K3bDataItem void setExtraInfo( const TQString& i ) { m_extraInfo = i; } protected: - virtual KIO::filesize_t itemSize( bool followSymlinks ) const = 0; + virtual TDEIO::filesize_t itemSize( bool followSymlinks ) const = 0; /** * \param followSymlinks If true symlinks will be followed and their diff --git a/libk3b/projects/datacd/k3bdatajob.cpp b/libk3b/projects/datacd/k3bdatajob.cpp index 442b035..8eb7d11 100644 --- a/libk3b/projects/datacd/k3bdatajob.cpp +++ b/libk3b/projects/datacd/k3bdatajob.cpp @@ -935,10 +935,10 @@ TQString K3bDataJob::jobDetails() const return i18n("ISO9660 Filesystem (Size: %1) - %n copy", "ISO9660 Filesystem (Size: %1) - %n copies", d->doc->copies() ) - .arg(KIO::convertSize( d->doc->size() )); + .arg(TDEIO::convertSize( d->doc->size() )); else return i18n("ISO9660 Filesystem (Size: %1)") - .arg(KIO::convertSize( d->doc->size() )); + .arg(TDEIO::convertSize( d->doc->size() )); } diff --git a/libk3b/projects/datacd/k3bdiritem.cpp b/libk3b/projects/datacd/k3bdiritem.cpp index f43f1d5..9cd0f31 100644 --- a/libk3b/projects/datacd/k3bdiritem.cpp +++ b/libk3b/projects/datacd/k3bdiritem.cpp @@ -271,7 +271,7 @@ bool K3bDirItem::mkdir( const TQString& dirPath ) } -KIO::filesize_t K3bDirItem::itemSize( bool followsylinks ) const +TDEIO::filesize_t K3bDirItem::itemSize( bool followsylinks ) const { if( followsylinks ) return m_followSymlinksSize; diff --git a/libk3b/projects/datacd/k3bdiritem.h b/libk3b/projects/datacd/k3bdiritem.h index a624529..c33610f 100644 --- a/libk3b/projects/datacd/k3bdiritem.h +++ b/libk3b/projects/datacd/k3bdiritem.h @@ -101,7 +101,7 @@ class LIBK3B_EXPORT K3bDirItem : public K3bDataItem * between files with the same inode in an iso9660 filesystem. * For that one has to use K3bFileCompilationSizeHandler. */ - KIO::filesize_t itemSize( bool followSymlinks ) const; + TDEIO::filesize_t itemSize( bool followSymlinks ) const; /* * Normally one does not use this method but K3bDataItem::blocks() @@ -124,8 +124,8 @@ class LIBK3B_EXPORT K3bDirItem : public K3bDataItem mutable TQPtrList<K3bDataItem> m_children; // size of the items simply added - KIO::filesize_t m_size; - KIO::filesize_t m_followSymlinksSize; + TDEIO::filesize_t m_size; + TDEIO::filesize_t m_followSymlinksSize; // number of blocks (2048 bytes) used by all the items long m_blocks; diff --git a/libk3b/projects/datacd/k3bfilecompilationsizehandler.cpp b/libk3b/projects/datacd/k3bfilecompilationsizehandler.cpp index 2d4b2fb..cb38794 100644 --- a/libk3b/projects/datacd/k3bfilecompilationsizehandler.cpp +++ b/libk3b/projects/datacd/k3bfilecompilationsizehandler.cpp @@ -28,7 +28,7 @@ // or we just update the sizes! -static long usedBlocks( const KIO::filesize_t& bytes ) +static long usedBlocks( const TDEIO::filesize_t& bytes ) { if( bytes % 2048 ) return bytes/2048 + 1; @@ -62,9 +62,9 @@ public: * This way we always use the size of the first added file and may * warn the user if sizes differ. */ - KIO::filesize_t savedSize; + TDEIO::filesize_t savedSize; - KIO::filesize_t completeSize() const { return savedSize*number; } + TDEIO::filesize_t completeSize() const { return savedSize*number; } /** * In an iso9660 filesystem a file occupies complete blocks of 2048 bytes. @@ -154,7 +154,7 @@ public: */ TQMap<K3bFileItem::Id, InodeInfo> inodeMap; - KIO::filesize_t size; + TDEIO::filesize_t size; K3b::Msf blocks; TQPtrList<K3bDataItem> specialItems; @@ -175,7 +175,7 @@ K3bFileCompilationSizeHandler::~K3bFileCompilationSizeHandler() } -const KIO::filesize_t& K3bFileCompilationSizeHandler::size( bool followSymlinks ) const +const TDEIO::filesize_t& K3bFileCompilationSizeHandler::size( bool followSymlinks ) const { if( followSymlinks ) return d_noSymlinks->size; diff --git a/libk3b/projects/datacd/k3bfilecompilationsizehandler.h b/libk3b/projects/datacd/k3bfilecompilationsizehandler.h index c996657..4745264 100644 --- a/libk3b/projects/datacd/k3bfilecompilationsizehandler.h +++ b/libk3b/projects/datacd/k3bfilecompilationsizehandler.h @@ -43,7 +43,7 @@ class K3bFileCompilationSizeHandler * This does NOT equal blocks() * 2048. * This is the sum of the actual file sizes. */ - const KIO::filesize_t& size( bool followSymlinks = false ) const; + const TDEIO::filesize_t& size( bool followSymlinks = false ) const; /** * Number of blocks the files will occupy. diff --git a/libk3b/projects/datacd/k3bfileitem.cpp b/libk3b/projects/datacd/k3bfileitem.cpp index 7cabec8..3e20982 100644 --- a/libk3b/projects/datacd/k3bfileitem.cpp +++ b/libk3b/projects/datacd/k3bfileitem.cpp @@ -87,7 +87,7 @@ K3bFileItem::K3bFileItem( const TQString& filePath, K3bDataDoc* doc, K3bDirItem* } } else { - m_size = (KIO::filesize_t)statBuf.st_size; + m_size = (TDEIO::filesize_t)statBuf.st_size; m_bSymLink = S_ISLNK(statBuf.st_mode); @@ -108,7 +108,7 @@ K3bFileItem::K3bFileItem( const TQString& filePath, K3bDataDoc* doc, K3bDirItem* m_idFollowed.inode = statBuf.st_ino; m_idFollowed.device = statBuf.st_dev; - m_sizeFollowed = (KIO::filesize_t)statBuf.st_size; + m_sizeFollowed = (TDEIO::filesize_t)statBuf.st_size; } } @@ -130,7 +130,7 @@ K3bFileItem::K3bFileItem( const k3b_struct_stat* stat, else m_k3bName = k3bName; - m_size = (KIO::filesize_t)stat->st_size; + m_size = (TDEIO::filesize_t)stat->st_size; m_bSymLink = S_ISLNK(stat->st_mode); // @@ -144,7 +144,7 @@ K3bFileItem::K3bFileItem( const k3b_struct_stat* stat, m_idFollowed.inode = followedStat->st_ino; m_idFollowed.device = followedStat->st_dev; - m_sizeFollowed = (KIO::filesize_t)followedStat->st_size; + m_sizeFollowed = (TDEIO::filesize_t)followedStat->st_size; } else { m_idFollowed = m_id; @@ -182,7 +182,7 @@ K3bDataItem* K3bFileItem::copy() const } -KIO::filesize_t K3bFileItem::itemSize( bool followSymlinks ) const +TDEIO::filesize_t K3bFileItem::itemSize( bool followSymlinks ) const { if( followSymlinks ) return m_sizeFollowed; diff --git a/libk3b/projects/datacd/k3bfileitem.h b/libk3b/projects/datacd/k3bfileitem.h index 46e2930..45e5b08 100644 --- a/libk3b/projects/datacd/k3bfileitem.h +++ b/libk3b/projects/datacd/k3bfileitem.h @@ -103,13 +103,13 @@ public: /** * Normally one does not use this method but K3bDataItem::size() */ - KIO::filesize_t itemSize( bool followSymlinks ) const; + TDEIO::filesize_t itemSize( bool followSymlinks ) const; private: K3bDataItem* m_replacedItemFromOldSession; - KIO::filesize_t m_size; - KIO::filesize_t m_sizeFollowed; + TDEIO::filesize_t m_size; + TDEIO::filesize_t m_sizeFollowed; Id m_id; Id m_idFollowed; diff --git a/libk3b/projects/datacd/k3bisoimager.cpp b/libk3b/projects/datacd/k3bisoimager.cpp index 6b1de51..dea41b6 100644 --- a/libk3b/projects/datacd/k3bisoimager.cpp +++ b/libk3b/projects/datacd/k3bisoimager.cpp @@ -894,7 +894,7 @@ void K3bIsoImager::writePathSpecForFile( K3bFileItem* item, TQTextStream& stream TQString tempPath = temp.name(); temp.unlink(); - if( !KIO::NetAccess::copy( KURL(item->localPath()), KURL::fromPathOrURL(tempPath) ) ) { + if( !TDEIO::NetAccess::copy( KURL(item->localPath()), KURL::fromPathOrURL(tempPath) ) ) { emit infoMessage( i18n("Failed to backup boot image file %1").arg(item->localPath()), ERROR ); return; } diff --git a/libk3b/projects/datacd/k3bisooptions.cpp b/libk3b/projects/datacd/k3bisooptions.cpp index f239f2a..91b6302 100644 --- a/libk3b/projects/datacd/k3bisooptions.cpp +++ b/libk3b/projects/datacd/k3bisooptions.cpp @@ -66,7 +66,7 @@ K3bIsoOptions::K3bIsoOptions() } -void K3bIsoOptions::save( KConfigBase* c, bool saveVolumeDesc ) +void K3bIsoOptions::save( TDEConfigBase* c, bool saveVolumeDesc ) { if( saveVolumeDesc ) { c->writeEntry( "volume id", m_volumeID ); @@ -134,7 +134,7 @@ void K3bIsoOptions::save( KConfigBase* c, bool saveVolumeDesc ) } -K3bIsoOptions K3bIsoOptions::load( KConfigBase* c, bool loadVolumeDesc ) +K3bIsoOptions K3bIsoOptions::load( TDEConfigBase* c, bool loadVolumeDesc ) { K3bIsoOptions options; diff --git a/libk3b/projects/datacd/k3bisooptions.h b/libk3b/projects/datacd/k3bisooptions.h index 3d51d3d..04dab2e 100644 --- a/libk3b/projects/datacd/k3bisooptions.h +++ b/libk3b/projects/datacd/k3bisooptions.h @@ -19,7 +19,7 @@ #include <tqstring.h> #include "k3b_export.h" -class KConfigBase; +class TDEConfigBase; class LIBK3B_EXPORT K3bIsoOptions @@ -124,9 +124,9 @@ class LIBK3B_EXPORT K3bIsoOptions bool doNotCacheInodes() const { return m_doNotCacheInodes; } void setDoNotCacheInodes( bool b ) { m_doNotCacheInodes = b; } - void save( KConfigBase* c, bool saveVolumeDesc = true ); + void save( TDEConfigBase* c, bool saveVolumeDesc = true ); - static K3bIsoOptions load( KConfigBase* c, bool loadVolumeDesc = true ); + static K3bIsoOptions load( TDEConfigBase* c, bool loadVolumeDesc = true ); static K3bIsoOptions defaults(); private: diff --git a/libk3b/projects/datacd/k3bsessionimportitem.h b/libk3b/projects/datacd/k3bsessionimportitem.h index 33f8124..e97b201 100644 --- a/libk3b/projects/datacd/k3bsessionimportitem.h +++ b/libk3b/projects/datacd/k3bsessionimportitem.h @@ -53,11 +53,11 @@ class K3bSessionImportItem : public K3bDataItem /** * Normally one does not use this method but K3bDataItem::size() */ - KIO::filesize_t itemSize( bool ) const { return m_size; } + TDEIO::filesize_t itemSize( bool ) const { return m_size; } private: K3bFileItem* m_replaceItem; - KIO::filesize_t m_size; + TDEIO::filesize_t m_size; }; #endif diff --git a/libk3b/projects/datacd/k3bspecialdataitem.h b/libk3b/projects/datacd/k3bspecialdataitem.h index 1dc3bb7..cb7f708 100644 --- a/libk3b/projects/datacd/k3bspecialdataitem.h +++ b/libk3b/projects/datacd/k3bspecialdataitem.h @@ -29,7 +29,7 @@ class K3bSpecialDataItem : public K3bDataItem { public: - K3bSpecialDataItem( K3bDataDoc* doc, KIO::filesize_t size, K3bDirItem* parent = 0, const TQString& k3bName = TQString() ) + K3bSpecialDataItem( K3bDataDoc* doc, TDEIO::filesize_t size, K3bDirItem* parent = 0, const TQString& k3bName = TQString() ) : K3bDataItem( doc, parent ), m_size( size ) { @@ -65,11 +65,11 @@ class K3bSpecialDataItem : public K3bDataItem /** * Normally one does not use this method but K3bDataItem::size() */ - KIO::filesize_t itemSize( bool ) const { return m_size; } + TDEIO::filesize_t itemSize( bool ) const { return m_size; } private: TQString m_mimeType; - KIO::filesize_t m_size; + TDEIO::filesize_t m_size; }; #endif diff --git a/libk3b/projects/datadvd/k3bdvddoc.h b/libk3b/projects/datadvd/k3bdvddoc.h index ff3ebbf..405dbde 100644 --- a/libk3b/projects/datadvd/k3bdvddoc.h +++ b/libk3b/projects/datadvd/k3bdvddoc.h @@ -18,7 +18,7 @@ #include <k3bdatadoc.h> #include "k3b_export.h" -class KConfig; +class TDEConfig; class LIBK3B_EXPORT K3bDvdDoc : public K3bDataDoc { diff --git a/libk3b/projects/datadvd/k3bdvdjob.cpp b/libk3b/projects/datadvd/k3bdvdjob.cpp index dda717d..7e5a19d 100644 --- a/libk3b/projects/datadvd/k3bdvdjob.cpp +++ b/libk3b/projects/datadvd/k3bdvdjob.cpp @@ -335,10 +335,10 @@ TQString K3bDvdJob::jobDetails() const return i18n("ISO9660 Filesystem (Size: %1) - %n copy", "ISO9660 Filesystem (Size: %1) - %n copies", m_doc->copies()) - .arg(KIO::convertSize( m_doc->size() )); + .arg(TDEIO::convertSize( m_doc->size() )); else return i18n("ISO9660 Filesystem (Size: %1)") - .arg(KIO::convertSize( m_doc->size() )); + .arg(TDEIO::convertSize( m_doc->size() )); } #include "k3bdvdjob.moc" diff --git a/libk3b/projects/k3bcdrdaowriter.cpp b/libk3b/projects/k3bcdrdaowriter.cpp index 6d61005..be7f38c 100644 --- a/libk3b/projects/k3bcdrdaowriter.cpp +++ b/libk3b/projects/k3bcdrdaowriter.cpp @@ -516,7 +516,7 @@ void K3bCdrdaoWriter::start() m_backupTocFile = m_tocFile + ".k3bbak"; // workaround, cdrdao deletes the tocfile when --remote parameter is set - if ( !KIO::NetAccess::copy(KURL(m_tocFile),KURL(m_backupTocFile), (TQWidget*) 0) ) + if ( !TDEIO::NetAccess::copy(KURL(m_tocFile),KURL(m_backupTocFile), (TQWidget*) 0) ) { kdDebug() << "(K3bCdrdaoWriter) could not backup " << m_tocFile << " to " << m_backupTocFile << endl; emit infoMessage( i18n("Could not backup tocfile."), ERROR ); @@ -722,20 +722,20 @@ void K3bCdrdaoWriter::slotProcessExited( TDEProcess* p ) case WRITE: case COPY: if ( !m_binFileLnk.isEmpty() ) { - KIO::NetAccess::del(KURL::fromPathOrURL(m_cueFileLnk), (TQWidget*) 0); - KIO::NetAccess::del(KURL::fromPathOrURL(m_binFileLnk), (TQWidget*) 0); + TDEIO::NetAccess::del(KURL::fromPathOrURL(m_cueFileLnk), (TQWidget*) 0); + TDEIO::NetAccess::del(KURL::fromPathOrURL(m_binFileLnk), (TQWidget*) 0); } else if( (!TQFile::exists( m_tocFile ) || K3b::filesize( KURL::fromPathOrURL(m_tocFile) ) == 0 ) && !m_onTheFly ) { // cdrdao removed the tocfile :( // we need to recover it - if ( !KIO::NetAccess::copy(KURL::fromPathOrURL(m_backupTocFile), KURL::fromPathOrURL(m_tocFile), (TQWidget*) 0) ) + if ( !TDEIO::NetAccess::copy(KURL::fromPathOrURL(m_backupTocFile), KURL::fromPathOrURL(m_tocFile), (TQWidget*) 0) ) { kdDebug() << "(K3bCdrdaoWriter) restoring tocfile " << m_tocFile << " failed." << endl; emit infoMessage( i18n("Due to a bug in cdrdao the toc/cue file %1 has been deleted. " "K3b was unable to restore it from the backup %2.").arg(m_tocFile).arg(m_backupTocFile), ERROR ); } - else if ( !KIO::NetAccess::del(KURL::fromPathOrURL(m_backupTocFile), (TQWidget*) 0) ) + else if ( !TDEIO::NetAccess::del(KURL::fromPathOrURL(m_backupTocFile), (TQWidget*) 0) ) { kdDebug() << "(K3bCdrdaoWriter) delete tocfile backkup " << m_backupTocFile << " failed." << endl; } diff --git a/libk3b/projects/k3bdoc.h b/libk3b/projects/k3bdoc.h index e3306b3..9d7474a 100644 --- a/libk3b/projects/k3bdoc.h +++ b/libk3b/projects/k3bdoc.h @@ -38,7 +38,7 @@ class KTempFile; class K3bBurnJob; class TQDomDocument; class TQDomElement; -class KConfig; +class TDEConfig; class KActionCollection; class K3bJobHandler; @@ -141,7 +141,7 @@ class LIBK3B_EXPORT K3bDoc : public TQObject int copies() const { return m_copies; } int speed() const { return m_speed; } K3bDevice::Device* burner() const { return m_burner; } - virtual KIO::filesize_t size() const = 0; + virtual TDEIO::filesize_t size() const = 0; virtual K3b::Msf length() const = 0; // FIXME: rename this to something like imagePath diff --git a/libk3b/projects/mixedcd/k3bmixeddoc.cpp b/libk3b/projects/mixedcd/k3bmixeddoc.cpp index 8bd8eac..07e1fcf 100644 --- a/libk3b/projects/mixedcd/k3bmixeddoc.cpp +++ b/libk3b/projects/mixedcd/k3bmixeddoc.cpp @@ -85,7 +85,7 @@ bool K3bMixedDoc::isModified() const } -KIO::filesize_t K3bMixedDoc::size() const +TDEIO::filesize_t K3bMixedDoc::size() const { return m_dataDoc->size() + m_audioDoc->size(); } diff --git a/libk3b/projects/mixedcd/k3bmixeddoc.h b/libk3b/projects/mixedcd/k3bmixeddoc.h index f302c66..3e55064 100644 --- a/libk3b/projects/mixedcd/k3bmixeddoc.h +++ b/libk3b/projects/mixedcd/k3bmixeddoc.h @@ -27,7 +27,7 @@ class TQDomElement; class K3bBurnJob; //class K3bView; class TQWidget; -class KConfig; +class TDEConfig; class LIBK3B_EXPORT K3bMixedDoc : public K3bDoc @@ -46,7 +46,7 @@ class LIBK3B_EXPORT K3bMixedDoc : public K3bDoc void setModified( bool m = true ); bool isModified() const; - KIO::filesize_t size() const; + TDEIO::filesize_t size() const; K3b::Msf length() const; int numOfTracks() const; diff --git a/libk3b/projects/mixedcd/k3bmixedjob.cpp b/libk3b/projects/mixedcd/k3bmixedjob.cpp index 556e606..bcbe019 100644 --- a/libk3b/projects/mixedcd/k3bmixedjob.cpp +++ b/libk3b/projects/mixedcd/k3bmixedjob.cpp @@ -793,8 +793,8 @@ bool K3bMixedJob::writeTocFile() m_tocFile->close(); // backup for debugging -// KIO::NetAccess::del("/tmp/trueg/tocfile_debug_backup.toc",0L); -// KIO::NetAccess::copy( m_tocFile->name(), "/tmp/trueg/tocfile_debug_backup.toc",0L ); +// TDEIO::NetAccess::del("/tmp/trueg/tocfile_debug_backup.toc",0L); +// TDEIO::NetAccess::copy( m_tocFile->name(), "/tmp/trueg/tocfile_debug_backup.toc",0L ); return success; } @@ -1330,7 +1330,7 @@ TQString K3bMixedJob::jobDetails() const return ( i18n("%1 tracks (%2 minutes audio data, %3 ISO9660 data)") .arg(m_doc->numOfTracks()) .arg(m_doc->audioDoc()->length().toString()) - .arg(KIO::convertSize(m_doc->dataDoc()->size())) + .arg(TDEIO::convertSize(m_doc->dataDoc()->size())) + ( m_doc->copies() > 1 && !m_doc->dummy() ? i18n(" - %n copy", " - %n copies", m_doc->copies()) : TQString() ) ); diff --git a/libk3b/projects/movixcd/k3bmovixdoc.h b/libk3b/projects/movixcd/k3bmovixdoc.h index 0ceb8c3..1436eba 100644 --- a/libk3b/projects/movixcd/k3bmovixdoc.h +++ b/libk3b/projects/movixcd/k3bmovixdoc.h @@ -28,7 +28,7 @@ class TQDomElement; class K3bFileItem; class K3bMovixFileItem; class K3bDataItem; -class KConfig; +class TDEConfig; class LIBK3B_EXPORT K3bMovixDoc : public K3bDataDoc diff --git a/libk3b/projects/movixcd/k3bmovixjob.cpp b/libk3b/projects/movixcd/k3bmovixjob.cpp index eb8b276..70a639d 100644 --- a/libk3b/projects/movixcd/k3bmovixjob.cpp +++ b/libk3b/projects/movixcd/k3bmovixjob.cpp @@ -123,7 +123,7 @@ TQString K3bMovixJob::jobDetails() const { return ( i18n("1 file (%1) and about 8 MB eMovix data", "%n files (%1) and about 8 MB eMovix data", - m_doc->movixFileItems().count()).arg(KIO::convertSize(m_doc->size())) + m_doc->movixFileItems().count()).arg(TDEIO::convertSize(m_doc->size())) + ( m_doc->copies() > 1 ? i18n(" - %n copy", " - %n copies", m_doc->copies()) : TQString() ) ); diff --git a/libk3b/projects/movixdvd/k3bmovixdvddoc.h b/libk3b/projects/movixdvd/k3bmovixdvddoc.h index 7897441..c5472e3 100644 --- a/libk3b/projects/movixdvd/k3bmovixdvddoc.h +++ b/libk3b/projects/movixdvd/k3bmovixdvddoc.h @@ -18,7 +18,7 @@ #include <k3bmovixdoc.h> #include "k3b_export.h" -class KConfig; +class TDEConfig; class LIBK3B_EXPORT K3bMovixDvdDoc : public K3bMovixDoc diff --git a/libk3b/projects/movixdvd/k3bmovixdvdjob.cpp b/libk3b/projects/movixdvd/k3bmovixdvdjob.cpp index 097d004..9c12741 100644 --- a/libk3b/projects/movixdvd/k3bmovixdvdjob.cpp +++ b/libk3b/projects/movixdvd/k3bmovixdvdjob.cpp @@ -122,7 +122,7 @@ TQString K3bMovixDvdJob::jobDetails() const { return ( i18n("1 file (%1) and about 8 MB eMovix data", "%n files (%1) and about 8 MB eMovix data", - m_doc->movixFileItems().count()).arg(KIO::convertSize(m_doc->size())) + m_doc->movixFileItems().count()).arg(TDEIO::convertSize(m_doc->size())) + ( m_doc->copies() > 1 ? i18n(" - %n copy", " - %n copies", m_doc->copies()) : TQString() ) ); diff --git a/libk3b/projects/videocd/k3bvcddoc.cpp b/libk3b/projects/videocd/k3bvcddoc.cpp index 42b3170..d28e942 100644 --- a/libk3b/projects/videocd/k3bvcddoc.cpp +++ b/libk3b/projects/videocd/k3bvcddoc.cpp @@ -95,7 +95,7 @@ TQString K3bVcdDoc::name() const } -KIO::filesize_t K3bVcdDoc::calcTotalSize() const +TDEIO::filesize_t K3bVcdDoc::calcTotalSize() const { unsigned long long sum = 0; if ( m_tracks ) { @@ -106,7 +106,7 @@ KIO::filesize_t K3bVcdDoc::calcTotalSize() const return sum; } -KIO::filesize_t K3bVcdDoc::size() const +TDEIO::filesize_t K3bVcdDoc::size() const { // mode2 -> mode1 int(( n+2047 ) / 2048) * 2352 // mode1 -> mode2 int(( n+2351 ) / 2352) * 2048 @@ -114,7 +114,7 @@ KIO::filesize_t K3bVcdDoc::size() const return tracksize + ISOsize(); } -KIO::filesize_t K3bVcdDoc::ISOsize() const +TDEIO::filesize_t K3bVcdDoc::ISOsize() const { // 136000b for vcd iso reseved long long iso_size = 136000; @@ -841,7 +841,7 @@ bool K3bVcdDoc::saveDocumentData( TQDomElement * docElem ) ++iterTrack; TQDomElement trackElem = doc.createElement( "track" ); - trackElem.setAttribute( "url", KIO::decodeFileName( track->absPath() ) ); + trackElem.setAttribute( "url", TDEIO::decodeFileName( track->absPath() ) ); trackElem.setAttribute( "playtime", track->getPlayTime() ); trackElem.setAttribute( "waittime", track->getWaitTime() ); trackElem.setAttribute( "reactivity", track->Reactivity() ); diff --git a/libk3b/projects/videocd/k3bvcddoc.h b/libk3b/projects/videocd/k3bvcddoc.h index f9dd6ed..e752a98 100644 --- a/libk3b/projects/videocd/k3bvcddoc.h +++ b/libk3b/projects/videocd/k3bvcddoc.h @@ -41,7 +41,7 @@ class TQWidget; class TQTimer; class TQDomDocument; class TQDomElement; -class KConfig; +class TDEConfig; @@ -106,7 +106,7 @@ class LIBK3B_EXPORT K3bVcdDoc : public K3bDoc } /** get the current size of the project */ - KIO::filesize_t size() const; + TDEIO::filesize_t size() const; K3b::Msf length() const; K3bBurnJob* newBurnJob( K3bJobHandler* hdl, TQObject* parent ); @@ -178,8 +178,8 @@ class LIBK3B_EXPORT K3bVcdDoc : public K3bDoc TQTimer* m_urlAddingTimer; TQPtrList<K3bVcdTrack>* m_tracks; - KIO::filesize_t calcTotalSize() const; - KIO::filesize_t ISOsize() const; + TDEIO::filesize_t calcTotalSize() const; + TDEIO::filesize_t ISOsize() const; bool isImage( const KURL& url ); diff --git a/libk3b/projects/videocd/k3bvcdjob.cpp b/libk3b/projects/videocd/k3bvcdjob.cpp index fe62515..7b2d4ff 100644 --- a/libk3b/projects/videocd/k3bvcdjob.cpp +++ b/libk3b/projects/videocd/k3bvcdjob.cpp @@ -558,7 +558,7 @@ TQString K3bVcdJob::jobDetails() const { return ( i18n( "1 MPEG (%1)", "%n MPEGs (%1)", - m_doc->tracks() ->count() ).arg( KIO::convertSize( m_doc->size() ) ) + m_doc->tracks() ->count() ).arg( TDEIO::convertSize( m_doc->size() ) ) + ( m_doc->copies() > 1 ? i18n( " - %n copy", " - %n copies", m_doc->copies() ) : TQString() ) ); diff --git a/libk3b/projects/videocd/k3bvcdoptions.cpp b/libk3b/projects/videocd/k3bvcdoptions.cpp index 9b80a8d..f963be8 100644 --- a/libk3b/projects/videocd/k3bvcdoptions.cpp +++ b/libk3b/projects/videocd/k3bvcdoptions.cpp @@ -82,7 +82,7 @@ bool K3bVcdOptions::checkCdiFiles() return true; } -void K3bVcdOptions::save( KConfigBase* c ) +void K3bVcdOptions::save( TDEConfigBase* c ) { c->writeEntry( "volume_id", m_volumeID ); c->writeEntry( "album_id", m_albumID ); @@ -109,7 +109,7 @@ void K3bVcdOptions::save( KConfigBase* c ) } -K3bVcdOptions K3bVcdOptions::load( KConfigBase* c ) +K3bVcdOptions K3bVcdOptions::load( TDEConfigBase* c ) { K3bVcdOptions options; diff --git a/libk3b/projects/videocd/k3bvcdoptions.h b/libk3b/projects/videocd/k3bvcdoptions.h index 420e593..cfa382f 100644 --- a/libk3b/projects/videocd/k3bvcdoptions.h +++ b/libk3b/projects/videocd/k3bvcdoptions.h @@ -19,7 +19,7 @@ #include <tqstring.h> #include "k3b_export.h" -class KConfigBase; +class TDEConfigBase; class LIBK3B_EXPORT K3bVcdOptions { @@ -242,9 +242,9 @@ class LIBK3B_EXPORT K3bVcdOptions } bool checkCdiFiles(); - void save( KConfigBase* c ); + void save( TDEConfigBase* c ); - static K3bVcdOptions load( KConfigBase* c ); + static K3bVcdOptions load( TDEConfigBase* c ); static K3bVcdOptions defaults(); void setPbcEnabled( const bool& b ) diff --git a/libk3b/projects/videocd/k3bvcdtrack.cpp b/libk3b/projects/videocd/k3bvcdtrack.cpp index 3ed27f9..59d6387 100644 --- a/libk3b/projects/videocd/k3bvcdtrack.cpp +++ b/libk3b/projects/videocd/k3bvcdtrack.cpp @@ -58,7 +58,7 @@ K3bVcdTrack::~K3bVcdTrack() {} -KIO::filesize_t K3bVcdTrack::size() const +TDEIO::filesize_t K3bVcdTrack::size() const { return m_file.size(); } diff --git a/libk3b/projects/videocd/k3bvcdtrack.h b/libk3b/projects/videocd/k3bvcdtrack.h index c48be55..f36eb8c 100644 --- a/libk3b/projects/videocd/k3bvcdtrack.h +++ b/libk3b/projects/videocd/k3bvcdtrack.h @@ -42,7 +42,7 @@ class LIBK3B_EXPORT K3bVcdTrack { return TQFileInfo( m_file ).absFilePath(); } - KIO::filesize_t size() const; + TDEIO::filesize_t size() const; int index() const; const TQString& title() const diff --git a/libk3b/projects/videodvd/k3bvideodvddoc.h b/libk3b/projects/videodvd/k3bvideodvddoc.h index e12ee07..390089a 100644 --- a/libk3b/projects/videodvd/k3bvideodvddoc.h +++ b/libk3b/projects/videodvd/k3bvideodvddoc.h @@ -18,7 +18,7 @@ #include <k3bdvddoc.h> #include "k3b_export.h" -class KConfig; +class TDEConfig; class LIBK3B_EXPORT K3bVideoDvdDoc : public K3bDvdDoc { diff --git a/libk3b/projects/videodvd/k3bvideodvdjob.cpp b/libk3b/projects/videodvd/k3bvideodvdjob.cpp index 9b6a178..e261c77 100644 --- a/libk3b/projects/videodvd/k3bvideodvdjob.cpp +++ b/libk3b/projects/videodvd/k3bvideodvdjob.cpp @@ -92,7 +92,7 @@ TQString K3bVideoDvdJob::jobDescription() const TQString K3bVideoDvdJob::jobDetails() const { - return ( i18n("ISO9660/Udf Filesystem (Size: %1)").arg(KIO::convertSize( doc()->size() )) + return ( i18n("ISO9660/Udf Filesystem (Size: %1)").arg(TDEIO::convertSize( doc()->size() )) + ( m_doc->copies() > 1 ? i18n(" - %n copy", " - %n copies", m_doc->copies()) : TQString() ) ); |