author | zecke <zecke> | 2002-06-15 23:07:12 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-06-15 23:07:12 (UTC) |
commit | 0675d8e8ea5f599af9f433e1e86b63953b26639d (patch) (unidiff) | |
tree | fb3aaa512aa8f4600de119574999749758d38139 /noncore/net/opietooth/applet/bluezapplet.cpp | |
parent | 3f49c8a3006c4c51cf7d4a2f84a3926efd3e1820 (diff) | |
download | opie-0675d8e8ea5f599af9f433e1e86b63953b26639d.zip opie-0675d8e8ea5f599af9f433e1e86b63953b26639d.tar.gz opie-0675d8e8ea5f599af9f433e1e86b63953b26639d.tar.bz2 |
fix it
Diffstat (limited to 'noncore/net/opietooth/applet/bluezapplet.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/applet/bluezapplet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp index a380ac7..6e5ee82 100644 --- a/noncore/net/opietooth/applet/bluezapplet.cpp +++ b/noncore/net/opietooth/applet/bluezapplet.cpp | |||
@@ -55,49 +55,49 @@ namespace OpieTooth { | |||
55 | bluezOffPixmap = Resource::loadPixmap( "bluetoothapplet/bluezoff" ); | 55 | bluezOffPixmap = Resource::loadPixmap( "bluetoothapplet/bluezoff" ); |
56 | // bluezDiscoveryOnPixmap = Resource::loadPixmap( "bluetoothapplet/magglass" ); | 56 | // bluezDiscoveryOnPixmap = Resource::loadPixmap( "bluetoothapplet/magglass" ); |
57 | startTimer(5000); | 57 | startTimer(5000); |
58 | timerEvent(NULL); | 58 | timerEvent(NULL); |
59 | } | 59 | } |
60 | 60 | ||
61 | BluezApplet::~BluezApplet() { | 61 | BluezApplet::~BluezApplet() { |
62 | } | 62 | } |
63 | 63 | ||
64 | int BluezApplet::checkBluezStatus() { | 64 | int BluezApplet::checkBluezStatus() { |
65 | if (btDevice) { | 65 | if (btDevice) { |
66 | if (btDevice->isLoaded() ) { | 66 | if (btDevice->isLoaded() ) { |
67 | return 1; | 67 | return 1; |
68 | } else { | 68 | } else { |
69 | return 0; | 69 | return 0; |
70 | } | 70 | } |
71 | } else { | 71 | } else { |
72 | return 0; | 72 | return 0; |
73 | } | 73 | } |
74 | } | 74 | } |
75 | 75 | ||
76 | int BluezApplet::setBluezStatus(int c) { | 76 | int BluezApplet::setBluezStatus(int c) { |
77 | 77 | ||
78 | if (c == 1) { | 78 | if (c == 1) { |
79 | btDevice = new Device("/dev/ttySB0", "scr" ); | 79 | btDevice = new Device("/dev/ttySB0", "csr" ); |
80 | // system("hciattach /dev/ttySB0 csr"); | 80 | // system("hciattach /dev/ttySB0 csr"); |
81 | //system("hcid"); | 81 | //system("hcid"); |
82 | } else { | 82 | } else { |
83 | if (btDevice) { | 83 | if (btDevice) { |
84 | delete btDevice; | 84 | delete btDevice; |
85 | } | 85 | } |
86 | //system("killall hciattach"); | 86 | //system("killall hciattach"); |
87 | //system("killall hcid"); | 87 | //system("killall hcid"); |
88 | } | 88 | } |
89 | return 0; | 89 | return 0; |
90 | } | 90 | } |
91 | 91 | ||
92 | int BluezApplet::checkBluezDiscoveryStatus() { | 92 | int BluezApplet::checkBluezDiscoveryStatus() { |
93 | } | 93 | } |
94 | 94 | ||
95 | int BluezApplet::setBluezDiscoveryStatus(int d) { | 95 | int BluezApplet::setBluezDiscoveryStatus(int d) { |
96 | } | 96 | } |
97 | 97 | ||
98 | void BluezApplet::mousePressEvent( QMouseEvent *) { | 98 | void BluezApplet::mousePressEvent( QMouseEvent *) { |
99 | 99 | ||
100 | QPopupMenu *menu = new QPopupMenu(); | 100 | QPopupMenu *menu = new QPopupMenu(); |
101 | QPopupMenu *signal = new QPopupMenu(); | 101 | QPopupMenu *signal = new QPopupMenu(); |
102 | int ret=0; | 102 | int ret=0; |
103 | 103 | ||