summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/applet/bluezapplet.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp
index 39c15ab..b76b397 100644
--- a/noncore/net/opietooth/applet/bluezapplet.cpp
+++ b/noncore/net/opietooth/applet/bluezapplet.cpp
@@ -70,48 +70,52 @@ namespace OpieTooth {
70 delete btDevice; 70 delete btDevice;
71 } 71 }
72 } 72 }
73 73
74 bool BluezApplet::checkBluezStatus() { 74 bool BluezApplet::checkBluezStatus() {
75 if (btDevice) { 75 if (btDevice) {
76 if (btDevice->isLoaded() ) { 76 if (btDevice->isLoaded() ) {
77 return true; 77 return true;
78 } else { 78 } else {
79 return false; 79 return false;
80 } 80 }
81 } else { 81 } else {
82 return false; 82 return false;
83 } 83 }
84 } 84 }
85 85
86 int BluezApplet::setBluezStatus(int c) { 86 int BluezApplet::setBluezStatus(int c) {
87 87
88 if ( c == 1 ) { 88 if ( c == 1 ) {
89 switch ( ODevice::inst()->model() ) { 89 switch ( ODevice::inst()->model() ) {
90 case Model_iPAQ_H39xx: 90 case Model_iPAQ_H39xx:
91 btDevice = new Device( "/dev/tts/1", "bcsp", "921600" ); 91 btDevice = new Device( "/dev/tts/1", "bcsp", "921600" );
92 break; 92 break;
93 93
94 case Model_iPAQ_H5xxx:
95 btDevice = new Device( "/dev/tts/1", "any", "921600" );
96 break;
97
94 default: 98 default:
95 btDevice = new Device( "/dev/ttySB0", "bcsp", "230400" ); 99 btDevice = new Device( "/dev/ttySB0", "bcsp", "230400" );
96 break; 100 break;
97 } 101 }
98 } else { 102 } else {
99 if ( btDevice ) { 103 if ( btDevice ) {
100 delete btDevice; 104 delete btDevice;
101 btDevice = 0; 105 btDevice = 0;
102 } 106 }
103 } 107 }
104 return 0; 108 return 0;
105 } 109 }
106 110
107 int BluezApplet::checkBluezDiscoveryStatus() { 111 int BluezApplet::checkBluezDiscoveryStatus() {
108 } 112 }
109 113
110 int BluezApplet::setBluezDiscoveryStatus(int d) { 114 int BluezApplet::setBluezDiscoveryStatus(int d) {
111 } 115 }
112 116
113 void BluezApplet::mousePressEvent( QMouseEvent *) { 117 void BluezApplet::mousePressEvent( QMouseEvent *) {
114 118
115 QPopupMenu *menu = new QPopupMenu(); 119 QPopupMenu *menu = new QPopupMenu();
116 QPopupMenu *signal = new QPopupMenu(); 120 QPopupMenu *signal = new QPopupMenu();
117 int ret=0; 121 int ret=0;