summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/applet/bluezapplet.cpp15
-rw-r--r--noncore/net/opietooth/applet/bluezapplet.h4
2 files changed, 12 insertions, 7 deletions
diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp
index 94e29c7..8bb7a93 100644
--- a/noncore/net/opietooth/applet/bluezapplet.cpp
+++ b/noncore/net/opietooth/applet/bluezapplet.cpp
@@ -63,13 +63,13 @@ namespace OpieTooth {
}
- int BluezApplet::checkBluezStatus() {
+ bool BluezApplet::checkBluezStatus() {
if (btDevice) {
if (btDevice->isLoaded() ) {
- return 1;
+ return true;
} else {
- return 0;
+ return false;
}
} else {
- return 0;
+ return false;
}
}
@@ -129,17 +129,22 @@ namespace OpieTooth {
case 0:
setBluezStatus(0);
+ timerEvent(NULL);
break;
case 1:
setBluezStatus(1);
+ timerEvent(NULL);
break;
case 2:
// start bluetoothmanager
launchManager();
+ timerEvent(NULL);
break;
case 3:
setBluezDiscoveryStatus(0);
+ timerEvent(NULL);
break;
case 4:
setBluezDiscoveryStatus(1);
+ timerEvent(NULL);
break;
//case 7:
@@ -166,5 +171,5 @@ namespace OpieTooth {
*/
void BluezApplet::timerEvent( QTimerEvent * ) {
- int oldactive = bluezactive;
+ bool oldactive = bluezactive;
int olddiscovery = bluezDiscoveryActive;
diff --git a/noncore/net/opietooth/applet/bluezapplet.h b/noncore/net/opietooth/applet/bluezapplet.h
index da05a18..6a8a00e 100644
--- a/noncore/net/opietooth/applet/bluezapplet.h
+++ b/noncore/net/opietooth/applet/bluezapplet.h
@@ -51,5 +51,5 @@ public slots:
void paintEvent( QPaintEvent* );
void launchManager();
- int checkBluezStatus();
+ bool checkBluezStatus();
int setBluezStatus(int);
int checkBluezDiscoveryStatus();
@@ -62,5 +62,5 @@ public slots:
QPixmap bluezOffPixmap;
QPixmap bluezDiscoveryOnPixmap;
- int bluezactive;
+ bool bluezactive;
int bluezDiscoveryActive;