[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/pim/kmobiletools/mobile-kioslaves/obex
From: Marco Gulino <marco () kmobiletools ! org>
Date: 2006-08-27 19:16:11
Message-ID: 1156706171.600078.6402.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 577879 by gulino:
Reverting changes in setHost().
M +11 -11 kio_obexprotocol.cpp
--- trunk/playground/pim/kmobiletools/mobile-kioslaves/obex/kio_obexprotocol.cpp \
#577878:577879 @@ -71,22 +71,22 @@
kdDebug() << "kio_obexProtocol::setHost(host=" << host << ", port=" << port << \
", user=" << user <<", pass=" << pass << ")\n"; QString bhost=host;
bhost=bhost.replace('\\', "/");
+ if(bhost.contains("nodevice")) bhost=QString::null;
/**
- @TODO this is what i have in mind:
+ this is what i have in mind:
* host = the "device" parameter of obexwrapper
* port = the "port" parameter
* user = the transport, i.e. bt or bluetooth, or irda, usb, and so on...
*/
- OBEXImpl::transport transp=OBEXImpl::null;
- if(host.contains( "bt") || user.contains( "bluetooth") ) \
transp=OBEXImpl::Bluetooth;
- if(host.contains( "irda") ) transp=OBEXImpl::IrDA;
- if(host.contains( "inet") ) transp=OBEXImpl::Inet;
- if(host.contains( "usb") ) transp=OBEXImpl::USB;
- if(host.contains( "fd") ) transp=OBEXImpl::FD;
- if(host.contains( "custom") ) transp=OBEXImpl::Custom;
- if(transp==OBEXImpl::null) transp=OBEXImpl::Bluetooth; // backward compatibility \
with the kdebluetooth obex kioslave
-
- m_impl.setHostConfig(bhost, port, transp);
+ OBEXImpl::transport transport=OBEXImpl::null;
+ if(user.contains( "bt") || user.contains( "bluetooth") ) \
transport=OBEXImpl::Bluetooth; + if(user.contains( "irda") ) \
transport=OBEXImpl::IrDA; + if(user.contains( "inet") ) transport=OBEXImpl::Inet;
+ if(user.contains( "usb") ) transport=OBEXImpl::USB;
+ if(user.contains( "fd") ) transport=OBEXImpl::FD;
+ if(user.contains( "custom") ) transport=OBEXImpl::Custom;
+ if(transport==OBEXImpl::null) transport=OBEXImpl::Bluetooth; // backward \
compatibility with the kdebluetooth obex kioslave + m_impl.setHostConfig(bhost, \
port, transport); }
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic