diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:58:15 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:58:15 -0600 |
commit | 377fa3a2775cdb3194315bb83e21744dc7c97bbf (patch) | |
tree | b6f515484589d67271adb168a1ead39f1c98493d /kdat/TapeDrive.cpp | |
parent | d1248617107f659af9d03cf1ef6d783571a0cba8 (diff) | |
download | tdeadmin-377fa3a2775cdb3194315bb83e21744dc7c97bbf.tar.gz tdeadmin-377fa3a2775cdb3194315bb83e21744dc7c97bbf.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit d1248617107f659af9d03cf1ef6d783571a0cba8.
Diffstat (limited to 'kdat/TapeDrive.cpp')
-rw-r--r-- | kdat/TapeDrive.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kdat/TapeDrive.cpp b/kdat/TapeDrive.cpp index 2e4c59b..4fbcb25 100644 --- a/kdat/TapeDrive.cpp +++ b/kdat/TapeDrive.cpp @@ -170,15 +170,15 @@ bool TapeDrive::isTapePresent() } // Get tape status. - struct mtget tapeStatus; - int ret = ioctl( _fd, MTIOCGET, &tapeStatus ); + struct mtget tapetqStatus; + int ret = ioctl( _fd, MTIOCGET, &tapetqStatus ); if ( ret < 0 ) { return FALSE; } // Check for the presence of a tape. -// if ( !GMT_DR_OPEN( tapeStatus.mt_gstat ) ) { - if ( GMT_ONLINE( tapeStatus.mt_gstat ) ) { +// if ( !GMT_DR_OPEN( tapetqStatus.mt_gstat ) ) { + if ( GMT_ONLINE( tapetqStatus.mt_gstat ) ) { // Lock the tape drive door. //struct mtop tapeOp; //tapeOp.mt_op = MTLOCK; @@ -189,9 +189,9 @@ bool TapeDrive::isTapePresent() //} if ( _readOnly ) { - emit sigStatus( i18n( "Tape mounted readonly." ) ); + emit sigtqStatus( i18n( "Tape mounted readonly." ) ); } else { - emit sigStatus( i18n( "Tape mounted read/write." ) ); + emit sigtqStatus( i18n( "Tape mounted read/write." ) ); } return TRUE; } else { @@ -221,14 +221,14 @@ Tape* TapeDrive::readHeader() _tape = NULL; // Rewind tape. - emit sigStatus( "Rewinding tape..." ); + emit sigtqStatus( "Rewinding tape..." ); if ( !rewind() ) { KMessageBox::error( KDatMainWindow::getInstance(), i18n( "Rewinding tape failed." )); return NULL; } // KDat magic string. - emit sigStatus( i18n( "Reading magic string..." ) ); + emit sigtqStatus( i18n( "Reading magic string..." ) ); char magic[9]; if ( read( magic, 9 ) < 9 ) { KMessageBox::error( KDatMainWindow::getInstance(), i18n( "Reading magic string failed." )); @@ -240,7 +240,7 @@ Tape* TapeDrive::readHeader() } // Read version number. - emit sigStatus( i18n( "Reading version number..." ) ); + emit sigtqStatus( i18n( "Reading version number..." ) ); int version; if ( read( (char*)&version, 4 ) < 4 ) { KMessageBox::error( KDatMainWindow::getInstance(), i18n( "Reading version number failed." )); @@ -252,7 +252,7 @@ Tape* TapeDrive::readHeader() } // Read tape ID. - emit sigStatus( i18n( "Reading tape ID..." ) ); + emit sigtqStatus( i18n( "Reading tape ID..." ) ); int len; if ( read( (char*)&len, 4 ) < 4 ) { KMessageBox::error( KDatMainWindow::getInstance(), i18n( "Reading tape ID length failed." )); @@ -517,12 +517,12 @@ bool TapeDrive::seek( int file, int tarBlock ) flush(); // Go to the desired archive. - emit sigStatus( i18n( "Skipping to archive..." ) ); + emit sigtqStatus( i18n( "Skipping to archive..." ) ); int curFile = getFile(); // printf( "TapeDrive::seek() -- curFile = %d\n", curFile ); if ( curFile < 0 ) { - emit sigStatus( i18n( "Rewinding tape..." ) ); + emit sigtqStatus( i18n( "Rewinding tape..." ) ); rewind(); curFile = 0; } @@ -539,11 +539,11 @@ bool TapeDrive::seek( int file, int tarBlock ) // printf( "TapeDrive::seek() -- desired tapeBlock = %d\n", tapeBlock ); // Go to the desired record within the archive. - emit sigStatus( i18n( "Skipping to block..." ) ); + emit sigtqStatus( i18n( "Skipping to block..." ) ); int curBlock = getBlock(); // printf( "TapeDrive::seek() -- curBlock = %d\n", curBlock ); if ( curBlock < 0 ) { - emit sigStatus( i18n( "Rewinding tape..." ) ); + emit sigtqStatus( i18n( "Rewinding tape..." ) ); rewind(); nextFile( file ); if ( ( curBlock = getBlock() ) < 0 ) { @@ -597,13 +597,13 @@ bool TapeDrive::pastEOF() return FALSE; } - struct mtget tapeStatus; - if ( ioctl( _fd, MTIOCGET, &tapeStatus ) < 0 ) { + struct mtget tapetqStatus; + if ( ioctl( _fd, MTIOCGET, &tapetqStatus ) < 0 ) { printf( "TapeDrive::pastEOF() -- ioctl( MTIOCGET ) failed!\n" ); return FALSE; } - return GMT_EOF( tapeStatus.mt_gstat ); + return GMT_EOF( tapetqStatus.mt_gstat ); } bool TapeDrive::setBlockSize( int blockSize ) |