author | erik <erik> | 2007-02-08 01:43:09 (UTC) |
---|---|---|
committer | erik <erik> | 2007-02-08 01:43:09 (UTC) |
commit | 853b61f97e718359bef95147ab3c7beb0705acda (patch) (side-by-side diff) | |
tree | 7b374511f636951a2ab9ff0f9fec7ec2d64abd2a | |
parent | c36a2e25a8875a31957968482ba8a0831a8b0aba (diff) | |
download | opie-853b61f97e718359bef95147ab3c7beb0705acda.zip opie-853b61f97e718359bef95147ab3c7beb0705acda.tar.gz opie-853b61f97e718359bef95147ab3c7beb0705acda.tar.bz2 |
This commit adds support for the HTC Universal bluetooth device to
bluezapplet. This commit is based on a patch submitted by GoXbox Live
<goxboxlive at gmail dot com> to the opie-devel mailing list.
Thanks GoXbox Live!
-rw-r--r-- | noncore/net/opietooth/applet/bluezapplet.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp index 8498afc..787abc6 100644 --- a/noncore/net/opietooth/applet/bluezapplet.cpp +++ b/noncore/net/opietooth/applet/bluezapplet.cpp @@ -117,48 +117,52 @@ namespace OpieTooth { } } else { odebug << "btDevice is ZERO" << oendl; return false; } } int BluezApplet::setBluezStatus(int c, bool sync) { if ( c == 1 ) { switch ( ODevice::inst()->model() ) { case Model_iPAQ_H39xx: btDevice = new Device( "/dev/tts/1", "bcsp", "921600" ); break; case Model_iPAQ_H5xxx: btDevice = new Device( "/dev/tts/1", "any", "921600" ); break; #if OPIE_VERSION >= 102010 case Model_MyPal_716: btDevice = new Device( "/dev/ttyS1", "bcsp", "921600" ); break; #endif + case Model_HTC_Universal: + btDevice = new Device( "/dev/ttyS1", "texas", "115200" ); + break; + case Model_iPAQ_H22xx: btDevice = new Device( "/dev/tts/3", "any", "921600" ); break; default: btDevice = new Device( "/dev/ttySB0", "bcsp", "230400" ); break; } m_sync = sync; connect(btDevice, SIGNAL(device(const QString&, bool)), this, SLOT(slotDevice(const QString&, bool))); } else { setObexRecieveStatus(0); ::system("/etc/init.d/bluetooth stop >/dev/null 2>/dev/null"); if ( btManager ) { delete btManager; btManager = 0; } if ( btDevice ) { delete btDevice; btDevice = 0; } } |