summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-03-19 13:06:04 (UTC)
committer llornkcor <llornkcor>2002-03-19 13:06:04 (UTC)
commit4813077950f77a616ce5cd79276aa18db3dc23d4 (patch) (side-by-side diff)
tree27d21d8c0af3424e7afe704511077964a1290d8e
parentf298cb9f5557d88b9ff38feb4b5e090e5c164ec2 (diff)
downloadopie-4813077950f77a616ce5cd79276aa18db3dc23d4.zip
opie-4813077950f77a616ce5cd79276aa18db3dc23d4.tar.gz
opie-4813077950f77a616ce5cd79276aa18db3dc23d4.tar.bz2
fixed spelling error on qDebug message
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/qcopbridge.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/launcher/qcopbridge.cpp b/core/launcher/qcopbridge.cpp
index c78e827..c8af919 100644
--- a/core/launcher/qcopbridge.cpp
+++ b/core/launcher/qcopbridge.cpp
@@ -93,97 +93,97 @@ void QCopBridge::connectionClosed( QCopBridgePI *pi )
void QCopBridge::closeOpenConnections()
{
QCopBridgePI *pi;
for ( pi = openConnections.first(); pi != 0; pi = openConnections.next() )
pi->close();
}
void QCopBridge::desktopMessage( const QCString &command, const QByteArray &args )
{
command.stripWhiteSpace();
int paren = command.find( "(" );
if ( paren <= 0 ) {
qDebug("DesktopMessage: bad qcop syntax");
return;
}
QString params = command.mid( paren + 1 );
if ( params[params.length()-1] != ')' ) {
qDebug("DesktopMessage: bad qcop syntax");
return;
}
params.truncate( params.length()-1 );
QStringList paramList = QStringList::split( ",", params );
QString data;
if ( paramList.count() ) {
QDataStream stream( args, IO_ReadOnly );
for ( QStringList::Iterator it = paramList.begin(); it != paramList.end(); ++it ) {
QString str;
if ( *it == "QString" ) {
stream >> str;
} else if ( *it == "QCString" ) {
QCString cstr;
stream >> cstr;
str = QString::fromLocal8Bit( cstr );
} else if ( *it == "int" ) {
int i;
stream >> i;
str = QString::number( i );
} else if ( *it == "bool" ) {
int i;
stream >> i;
str = QString::number( i );
} else {
- qDebug(" cannot route the argument type %s throught the qcop bridge", (*it).latin1() );
+ qDebug(" cannot route the argument type %s through the qcop bridge", (*it).latin1() );
return;
}
str.replace( QRegExp("&"), "&amp;" );
str.replace( QRegExp(" "), "&0x20;" );
str.replace( QRegExp("\n"), "&0x0d;" );
str.replace( QRegExp("\r"), "&0x0a;" );
data += " " + str;
}
}
QString sendCommand = QString(command.data()) + data;
// send the command to all open connections
if ( command == "startSync()" ) {
// we need to buffer it a bit
sendSync = TRUE;
startTimer( 20000 );
}
QCopBridgePI *pi;
for ( pi = openConnections.first(); pi != 0; pi = openConnections.next() ) {
pi->sendDesktopMessage( sendCommand );
}
}
void QCopBridge::timerEvent( QTimerEvent * )
{
sendSync = FALSE;
killTimers();
}
QCopBridgePI::QCopBridgePI( int socket, QObject *parent = 0, const char* name = 0 )
: QSocket( parent, name )
{
setSocket( socket );
peerport = peerPort();
peeraddress = peerAddress();
#ifndef INSECURE
if ( !accessAuthorized(peeraddress) ) {
state = Forbidden;
startTimer( 0 );
} else
#endif
{
state = Connected;
sendSync = FALSE;
connect( this, SIGNAL( readyRead() ), SLOT( read() ) );