Fix inadvertent "TQ" changes.

pull/1/head
Darrell Anderson 13 years ago
parent 6aa759b112
commit 2f36c1bd45

@ -241,7 +241,7 @@ TQString K3bCddb::errorString() const
return i18n("Error while connecting to host.");
case K3bCddbQuery::WORKING:
return i18n("Working...");
case K3bCddbQuery::TQUERY_ERROR:
case K3bCddbQuery::QUERY_ERROR:
case K3bCddbQuery::READ_ERROR:
case K3bCddbQuery::FAILURE:
default:

@ -46,7 +46,7 @@ K3bCddbHttpQuery::~K3bCddbHttpQuery()
void K3bCddbHttpQuery::doQuery()
{
setError( WORKING );
m_state = TQUERY;
m_state = QUERY;
performCommand( queryString() );
}
@ -122,7 +122,7 @@ void K3bCddbHttpQuery::slotResult( KIO::Job* job )
switch( m_state ) {
case TQUERY:
case QUERY:
if( getCode( line ) == 200 ) {
// parse exact match and send a read command
K3bCddbResultHeader header;
@ -137,7 +137,7 @@ void K3bCddbHttpQuery::slotResult( KIO::Job* job )
emit infoMessage( i18n("Found multiple exact matches") );
m_state = TQUERY_DATA;
m_state = QUERY_DATA;
}
else if( getCode( line ) == 211 ) {
@ -145,7 +145,7 @@ void K3bCddbHttpQuery::slotResult( KIO::Job* job )
emit infoMessage( i18n("Found inexact matches") );
m_state = TQUERY_DATA;
m_state = QUERY_DATA;
}
else if( getCode( line ) == 202 ) {
@ -160,14 +160,14 @@ void K3bCddbHttpQuery::slotResult( KIO::Job* job )
else {
kdDebug() << "(K3bCddbHttpQuery) Error while querying: " << line << endl;
emit infoMessage( i18n("Error while querying") );
setError(TQUERY_ERROR);
setError(QUERY_ERROR);
m_state = FINISHED;
emitQueryFinished();
return;
}
break;
case TQUERY_DATA:
case QUERY_DATA:
if( line.startsWith( "." ) ) {
// finished query
// go on reading

@ -14,8 +14,8 @@
*/
#ifndef K3BCDDB_HTTP_TQUERY_H
#define K3BCDDB_HTTP_TQUERY_H
#ifndef K3BCDDB_HTTP_QUERY_H
#define K3BCDDB_HTTP_QUERY_H
#include "k3bcddbquery.h"
#include "k3bcddbresult.h"
@ -48,7 +48,7 @@ class K3bCddbHttpQuery : public K3bCddbQuery
private:
void performCommand( const TQString& );
enum State { TQUERY, TQUERY_DATA, READ, READ_DATA, FINISHED };
enum State { QUERY, QUERY_DATA, READ, READ_DATA, FINISHED };
int m_state;
TQString m_server;

@ -15,8 +15,8 @@
#ifndef K3BCDDB_LOCAL_TQUERY_H
#define K3BCDDB_LOCAL_TQUERY_H
#ifndef K3BCDDB_LOCAL_QUERY_H
#define K3BCDDB_LOCAL_QUERY_H
#include "k3bcddbquery.h"
#include "k3bcddbresult.h"

@ -95,7 +95,7 @@ void K3bCddbpQuery::slotConnectionClosed()
void K3bCddbpQuery::cddbpQuit()
{
m_state = TQUIT;
m_state = QUIT;
m_stream << "quit" << endl << flush;
}
@ -146,13 +146,13 @@ void K3bCddbpQuery::slotReadyRead()
}
// just ignore the reply since it's not important for the functionality
m_state = TQUERY;
m_state = QUERY;
m_stream << queryString() << endl << flush;
break;
}
case TQUERY:
case QUERY:
if( getCode( line ) == 200 ) {
// parse exact match and send a read command
K3bCddbResultHeader header;
@ -169,7 +169,7 @@ void K3bCddbpQuery::slotReadyRead()
emit infoMessage( i18n("Found multiple exact matches") );
m_state = TQUERY_DATA;
m_state = QUERY_DATA;
}
else if( getCode( line ) == 211 ) {
@ -177,7 +177,7 @@ void K3bCddbpQuery::slotReadyRead()
emit infoMessage( i18n("Found inexact matches") );
m_state = TQUERY_DATA;
m_state = QUERY_DATA;
}
else if( getCode( line ) == 202 ) {
@ -190,12 +190,12 @@ void K3bCddbpQuery::slotReadyRead()
else {
kdDebug() << "(K3bCddbpQuery) Error while querying: " << line << endl;
emit infoMessage( i18n("Error while querying") );
setError( TQUERY_ERROR );
setError( QUERY_ERROR );
cddbpQuit();
}
break;
case TQUERY_DATA:
case QUERY_DATA:
if( line.startsWith( "." ) ) {
// finished query
// go on reading
@ -246,7 +246,7 @@ void K3bCddbpQuery::slotReadyRead()
}
break;
case TQUIT:
case QUIT:
// no parsing needed
break;
}

@ -13,8 +13,8 @@
*/
#ifndef K3BCDDBP_TQUERY_H
#define K3BCDDBP_TQUERY_H
#ifndef K3BCDDBP_QUERY_H
#define K3BCDDBP_QUERY_H
#include "k3bcddbquery.h"
#include "k3bcddbresult.h"
@ -48,7 +48,7 @@ class K3bCddbpQuery : public K3bCddbQuery
private:
void cddbpQuit();
enum State { GREETING, HANDSHAKE, PROTO, TQUERY, TQUERY_DATA, READ, READ_DATA, TQUIT };
enum State { GREETING, HANDSHAKE, PROTO, QUERY, QUERY_DATA, READ, READ_DATA, QUIT };
int m_state;
TQString m_server;

@ -14,8 +14,8 @@
*/
#ifndef K3BCDDB_TQUERY_H
#define K3BCDDB_TQUERY_H
#ifndef K3BCDDB_QUERY_H
#define K3BCDDB_QUERY_H
#include <tqobject.h>
#include <tqstring.h>
@ -57,7 +57,7 @@ class LIBK3B_EXPORT K3bCddbQuery : public TQObject
CANCELED,
NO_ENTRY_FOUND,
CONNECTION_ERROR,
TQUERY_ERROR,
QUERY_ERROR,
READ_ERROR,
FAILURE,
WORKING };

@ -1,7 +1,7 @@
<HTML>
<HEAD>
<META HTTP-ETQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META HTTP-ETQUIV="Refresh" CONTENT="0; URL=http://www.icdia.org/">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://www.icdia.org/">
<TITLE>The New International CD-i Association</TITLE>
</HEAD>
<BODY>

@ -214,7 +214,7 @@ void K3bCutComboBox::cutText()
w -= ( pixmap(i)->width() + 4 );
TQString text;
if( d->method == STQUEEZE )
if( d->method == SQUEEZE )
text = K3b::squeezeTextToWidth( fontMetrics(), d->originalItems[i], w );
else
text = K3b::cutToWidth( fontMetrics(), d->originalItems[i], w );

@ -44,7 +44,7 @@ class LIBK3B_EXPORT K3bCutComboBox : public KComboBox
enum Method {
CUT,
STQUEEZE
SQUEEZE
};
/**

@ -37,9 +37,9 @@ namespace K3bVideoDVD
};
enum AudioQuantization {
AUDIO_TQUANTIZATION_16BIT = 0,
AUDIO_TQUANTIZATION_20BIT = 1,
AUDIO_TQUANTIZATION_24BIT = 2
AUDIO_QUANTIZATION_16BIT = 0,
AUDIO_QUANTIZATION_20BIT = 1,
AUDIO_QUANTIZATION_24BIT = 2
};
enum AudioSampleFrequency {

@ -231,7 +231,7 @@ bool K3bDevice::Device::init( bool bCheckWritingModes )
cmd.clear();
::memset( buf, 0, sizeof(buf) );
struct inquiry* inq = (struct inquiry*)buf;
cmd[0] = MMC_INTQUIRY;
cmd[0] = MMC_INQUIRY;
cmd[4] = sizeof(buf);
cmd[5] = 0;
if( cmd.transport( TR_DIR_READ, buf, sizeof(buf) ) ) {

@ -659,7 +659,7 @@ bool K3bDevice::DeviceManager::testForCdrom( const TQString& devicename )
::memset( buf, 0, sizeof(buf) );
ScsiCommand cmd( cdromfd );
cmd[0] = MMC_INTQUIRY;
cmd[0] = MMC_INQUIRY;
cmd[4] = sizeof(buf);
cmd[5] = 0;

@ -35,8 +35,8 @@ TQString K3bDevice::commandString( const unsigned char& command )
return "GET EVENT STATUS NOTIFICATION";
if( command == MMC_GET_PERFORMANCE )
return "GET PERFORMANCE";
if( command == MMC_INTQUIRY )
return "INTQUIRY";
if( command == MMC_INQUIRY )
return "INQUIRY";
if( command == MMC_LOAD_UNLOAD_MEDIUM )
return "LOAD/UNLOAD MEDIUM";
if( command == MMC_MECHANISM_STATUS )

@ -31,7 +31,7 @@ namespace K3bDevice
const unsigned char MMC_GET_CONFIGURATION = 0x46;
const unsigned char MMC_GET_EVENT_STATUS_NOTIFICATION = 0x4A;
const unsigned char MMC_GET_PERFORMANCE = 0xAC;
const unsigned char MMC_INTQUIRY = 0x12;
const unsigned char MMC_INQUIRY = 0x12;
const unsigned char MMC_LOAD_UNLOAD_MEDIUM = 0xA6;
const unsigned char MMC_MECHANISM_STATUS = 0xBD;
const unsigned char MMC_MODE_SELECT = 0x55;

@ -487,7 +487,7 @@ void K3bVcdTrackDialog::setupPbcTab()
m_labelAfterTimeout = new TQLabel( i18n( "after timeout playing" ), m_groupPlay, "m_labelTimeout" );
// m_labelAfterTimeout->setEnabled( false );
m_comboAfterTimeout = new K3bCutComboBox( K3bCutComboBox::STQUEEZE, m_groupPlay, "m_comboAfterTimeout" );
m_comboAfterTimeout = new K3bCutComboBox( K3bCutComboBox::SQUEEZE, m_groupPlay, "m_comboAfterTimeout" );
// m_comboAfterTimeout->setEnabled( false );
groupPlayLayout->addWidget( labelPlaying, 1, 0 );
@ -510,10 +510,10 @@ void K3bVcdTrackDialog::setupPbcTab()
TQLabel* labelPbc_return = new TQLabel( i18n( "Return:" ), m_groupPbc, "labelPbc_return" );
TQLabel* labelPbc_default = new TQLabel( i18n( "Default:" ), m_groupPbc, "labelPbc_default" );
m_pbc_previous = new K3bCutComboBox( K3bCutComboBox::STQUEEZE, m_groupPbc, "m_pbc_previous" );
m_pbc_next = new K3bCutComboBox( K3bCutComboBox::STQUEEZE, m_groupPbc, "m_pbc_next" );
m_pbc_return = new K3bCutComboBox( K3bCutComboBox::STQUEEZE, m_groupPbc, "m_pbc_return" );
m_pbc_default = new K3bCutComboBox( K3bCutComboBox::STQUEEZE, m_groupPbc, "m_pbc_default" );
m_pbc_previous = new K3bCutComboBox( K3bCutComboBox::SQUEEZE, m_groupPbc, "m_pbc_previous" );
m_pbc_next = new K3bCutComboBox( K3bCutComboBox::SQUEEZE, m_groupPbc, "m_pbc_next" );
m_pbc_return = new K3bCutComboBox( K3bCutComboBox::SQUEEZE, m_groupPbc, "m_pbc_return" );
m_pbc_default = new K3bCutComboBox( K3bCutComboBox::SQUEEZE, m_groupPbc, "m_pbc_default" );
groupPbcLayout->addWidget( labelPbc_previous, 1, 0 );
groupPbcLayout->addMultiCellWidget( m_pbc_previous, 1, 1, 1, 3 );

Loading…
Cancel
Save