From e8be90134f3d0d79abe55ed10897309a548376eb Mon Sep 17 00:00:00 2001 From: harlekin Date: Thu, 20 Mar 2003 18:20:20 +0000 Subject: added support for 39xx ipaq --- (limited to 'noncore/net/opietooth/applet/bluezapplet.cpp') diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp index f1618ae..39c15ab 100644 --- a/noncore/net/opietooth/applet/bluezapplet.cpp +++ b/noncore/net/opietooth/applet/bluezapplet.cpp @@ -35,6 +35,8 @@ #include #include +#include + #include #include #include @@ -46,6 +48,8 @@ #include +using namespace Opie; + namespace OpieTooth { BluezApplet::BluezApplet( QWidget *parent, const char *name ) : QWidget( parent, name ) { @@ -81,10 +85,18 @@ namespace OpieTooth { int BluezApplet::setBluezStatus(int c) { - if (c == 1) { - btDevice = new Device("/dev/ttySB0", "bcsp", "230400" ); + if ( c == 1 ) { + switch ( ODevice::inst()->model() ) { + case Model_iPAQ_H39xx: + btDevice = new Device( "/dev/tts/1", "bcsp", "921600" ); + break; + + default: + btDevice = new Device( "/dev/ttySB0", "bcsp", "230400" ); + break; + } } else { - if (btDevice) { + if ( btDevice ) { delete btDevice; btDevice = 0; } @@ -117,8 +129,8 @@ namespace OpieTooth { menu->insertItem( tr("Launch manager"), 2 ); menu->insertSeparator(6); - menu->insertItem( tr("Signal strength"), signal, 5); - menu->insertSeparator(8); + //menu->insertItem( tr("Signal strength"), signal, 5); + //menu->insertSeparator(8); if (bluezDiscoveryActive) { menu->insertItem( tr("Disable discovery"), 3 ); -- cgit v0.9.0.2