summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/applet/bluezapplet.cpp
Unidiff
Diffstat (limited to 'noncore/net/opietooth/applet/bluezapplet.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opietooth/applet/bluezapplet.cpp15
1 files changed, 10 insertions, 5 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
@@ -64,11 +64,11 @@ namespace OpieTooth {
64 64
65 int BluezApplet::checkBluezStatus() { 65 bool BluezApplet::checkBluezStatus() {
66 if (btDevice) { 66 if (btDevice) {
67 if (btDevice->isLoaded() ) { 67 if (btDevice->isLoaded() ) {
68 return 1; 68 return true;
69 } else { 69 } else {
70 return 0; 70 return false;
71 } 71 }
72 } else { 72 } else {
73 return 0; 73 return false;
74 } 74 }
@@ -130,2 +130,3 @@ namespace OpieTooth {
130 setBluezStatus(0); 130 setBluezStatus(0);
131 timerEvent(NULL);
131 break; 132 break;
@@ -133,2 +134,3 @@ namespace OpieTooth {
133 setBluezStatus(1); 134 setBluezStatus(1);
135 timerEvent(NULL);
134 break; 136 break;
@@ -137,2 +139,3 @@ namespace OpieTooth {
137 launchManager(); 139 launchManager();
140 timerEvent(NULL);
138 break; 141 break;
@@ -140,2 +143,3 @@ namespace OpieTooth {
140 setBluezDiscoveryStatus(0); 143 setBluezDiscoveryStatus(0);
144 timerEvent(NULL);
141 break; 145 break;
@@ -143,2 +147,3 @@ namespace OpieTooth {
143 setBluezDiscoveryStatus(1); 147 setBluezDiscoveryStatus(1);
148 timerEvent(NULL);
144 break; 149 break;
@@ -167,3 +172,3 @@ namespace OpieTooth {
167 void BluezApplet::timerEvent( QTimerEvent * ) { 172 void BluezApplet::timerEvent( QTimerEvent * ) {
168 int oldactive = bluezactive; 173 bool oldactive = bluezactive;
169 int olddiscovery = bluezDiscoveryActive; 174 int olddiscovery = bluezDiscoveryActive;