[KBear-cvs] kbear/kbear/lib/interfaces connectionmanager.cpp,1.30,1.31 connectionmanager.h,1.25,1.26
Brought to you by:
kbjorn
From: <kb...@us...> - 2003-08-23 07:47:54
|
Update of /cvsroot/kbear/kbear/kbear/lib/interfaces In directory sc8-pr-cvs1:/tmp/cvs-serv3631/kbear/lib/interfaces Modified Files: connectionmanager.cpp connectionmanager.h misc.cpp Log Message: See Changelog Index: connectionmanager.cpp =================================================================== RCS file: /cvsroot/kbear/kbear/kbear/lib/interfaces/connectionmanager.cpp,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** connectionmanager.cpp 1 Jul 2003 23:24:22 -0000 1.30 --- connectionmanager.cpp 23 Aug 2003 07:47:51 -0000 1.31 *************** *** 144,147 **** --- 144,162 ---- } //----------------------------------------------- + void ConnectionManager::sendCommand( int ID, const QByteArray& data ) { + ConnectionInterface* connection = getConnectionByID( ID ); + if( connection ) { + KIO::Slave* slave = connection->getSlave(); + if( slave ) { + #if KDE_IS_VERSION( 3, 1, 3 ) + slave->send( KIO::CMD_SPECIAL, data ); + #else + slave->connection()->send( KIO::CMD_SPECIAL, data ); + #endif + } + } + + } + //----------------------------------------------- bool ConnectionManager::suspend( int ID ) { kdDebug()<<k_funcinfo<<" ID="<<ID<<endl; Index: connectionmanager.h =================================================================== RCS file: /cvsroot/kbear/kbear/kbear/lib/interfaces/connectionmanager.h,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** connectionmanager.h 1 Jul 2003 23:24:22 -0000 1.25 --- connectionmanager.h 23 Aug 2003 07:47:51 -0000 1.26 *************** *** 25,28 **** --- 25,29 ---- ////////////////////////////////////////////////////////////////////// // KDE specific include files + #include <kdeversion.h> #include <kio/slave.h> #include <kio/global.h> *************** *** 97,100 **** --- 98,103 ---- /** */ void cleanUp(); + /** */ + void sendCommand( int ID, const QByteArray& data ); signals: /** */ Index: misc.cpp =================================================================== RCS file: /cvsroot/kbear/kbear/kbear/lib/interfaces/misc.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** misc.cpp 5 Jun 2003 16:53:24 -0000 1.10 --- misc.cpp 23 Aug 2003 07:47:51 -0000 1.11 *************** *** 37,40 **** --- 37,41 ---- #include <string.h> #include <netdb.h> + #include <netinet/in.h> ////////////////////////////////////////////////////// // Application specific includes |