summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-01-16 19:50:25 (UTC)
committer harlekin <harlekin>2003-01-16 19:50:25 (UTC)
commit0ec2acb93d322caefff68191678141d72f8d6da7 (patch) (side-by-side diff)
treee49a373c2e676291c228ca41cb0defee98e75770
parent7957a2f100eb687e63cd3593097c5914539c7406 (diff)
downloadopie-0ec2acb93d322caefff68191678141d72f8d6da7.zip
opie-0ec2acb93d322caefff68191678141d72f8d6da7.tar.gz
opie-0ec2acb93d322caefff68191678141d72f8d6da7.tar.bz2
adapt to new bscp on ipaq
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/applet/bluezapplet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp
index c0ad246..3fdbde0 100644
--- a/noncore/net/opietooth/applet/bluezapplet.cpp
+++ b/noncore/net/opietooth/applet/bluezapplet.cpp
@@ -33,74 +33,74 @@
#include <qpe/resource.h>
#include <qpe/qcopenvelope_qws.h>
#include <qpe/resource.h>
#include <qpe/config.h>
#include <qpoint.h>
#include <qpainter.h>
#include <qlayout.h>
#include <qframe.h>
#include <qpixmap.h>
#include <qstring.h>
#include <qtimer.h>
#include <qpopupmenu.h>
#include <device.h>
namespace OpieTooth {
BluezApplet::BluezApplet( QWidget *parent, const char *name ) : QWidget( parent, name ) {
setFixedHeight( 18 );
setFixedWidth( 14 );
bluezOnPixmap = Resource::loadPixmap( "bluetoothapplet/bluezon" );
bluezOffPixmap = Resource::loadPixmap( "bluetoothapplet/bluezoff" );
// bluezDiscoveryOnPixmap = Resource::loadPixmap( "bluetoothapplet/magglass" );
- startTimer(5000);
+ startTimer(4000);
btDevice = 0;
bluezactive = false;
bluezDiscoveryActive = false;
}
BluezApplet::~BluezApplet() {
}
bool BluezApplet::checkBluezStatus() {
if (btDevice) {
if (btDevice->isLoaded() ) {
return true;
} else {
return false;
}
} else {
return false;
}
}
int BluezApplet::setBluezStatus(int c) {
if (c == 1) {
- btDevice = new Device("/dev/ttySB0", "csr" );
+ btDevice = new Device("/dev/ttySB0", "bcsp", "230400" );
} else {
if (btDevice) {
delete btDevice;
btDevice = 0;
}
}
return 0;
}
int BluezApplet::checkBluezDiscoveryStatus() {
}
int BluezApplet::setBluezDiscoveryStatus(int d) {
}
void BluezApplet::mousePressEvent( QMouseEvent *) {
QPopupMenu *menu = new QPopupMenu();
QPopupMenu *signal = new QPopupMenu();
int ret=0;
/* Refresh active state */
timerEvent( 0 );