summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2005-04-22 10:55:19 (UTC)
committer mickeyl <mickeyl>2005-04-22 10:55:19 (UTC)
commitd437899a4e4f822597c0979b7e54a4fc0fecbf9a (patch) (unidiff)
treefe26849a4a3370671422f1d7fa28530ed97ec0aa
parent945c98bd21a59f18a3ac0cdf330153163861731a (diff)
downloadopie-d437899a4e4f822597c0979b7e54a4fc0fecbf9a.zip
opie-d437899a4e4f822597c0979b7e54a4fc0fecbf9a.tar.gz
opie-d437899a4e4f822597c0979b7e54a4fc0fecbf9a.tar.bz2
- use OTaskbarApplet
- scale icons
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ChangeLog6
-rw-r--r--noncore/net/opietooth/applet/applet.pro6
-rw-r--r--noncore/net/opietooth/applet/bluezapplet.cpp50
-rw-r--r--noncore/net/opietooth/applet/bluezapplet.h18
-rw-r--r--noncore/net/opietooth/applet/bluezappletimpl.cpp72
-rw-r--r--noncore/net/opietooth/applet/bluezappletimpl.h55
6 files changed, 48 insertions, 159 deletions
diff --git a/ChangeLog b/ChangeLog
index c2fb11f..f2c8b4c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,275 +1,279 @@
1 2005-??-??Opie 1.2.1 1 2005-??-??Opie 1.2.1
2 2
3 3
4 New Features 4 New Features
5 ------------ 5 ------------
6 * OpieStumbler: New application (skyhusker) 6 * OpieStumbler: New application (skyhusker)
7 7
8 Fixed Bugs 8 Fixed Bugs
9 ---------- 9 ----------
10 * #1535- Missing line break and unnecessary location shown with Today-Calendar plugin (deller) 10 * #1535- Missing line break and unnecessary location shown with Today-Calendar plugin (deller)
11 * #1565 - crash-fix in odevice.cpp while scanning the distribution table (deller) 11 * #1565 - crash-fix in odevice.cpp while scanning the distribution table (deller)
12 * #1614 - Make Opie-console start in $HOME instead of / (skyhusker)
12 * n.a.- always show volume and wireless applet popups inside visible screen (deller) 13 * n.a.- always show volume and wireless applet popups inside visible screen (deller)
13 * n.a. - scale O-Menu-Applets appropriately (mickeyl) 14 * n.a. - scale O-Menu-Applets appropriately (mickeyl)
14 * n.a.- libopienet: fix bugs in wireless scanning and setting SSID (skyhusker) 15 * n.a.- libopienet: fix bugs in wireless scanning and setting SSID (skyhusker)
15 * n.a.- Wellenreiter: relax WE version matching test a bit (mickeyl) 16 * n.a.- Wellenreiter: relax WE version matching test a bit (mickeyl)
16 * #1614 - Make Opie-console start in $HOME instead of / (skyhusker) 17 * n.a.- scale BluezApplet appropriately (mickeyl)
17 18
19 Internal
20 --------
21 * make BluezApplet use OTaskbarApplet (mickeyl)
18 22
19 2005-03-25Opie 1.2.0 23 2005-03-25Opie 1.2.0
20 24
21 Fixed Bugs 25 Fixed Bugs
22 ---------- 26 ----------
23 * #1613 - AdvancedFM - scale toolbar icons appropriately (drw) 27 * #1613 - AdvancedFM - scale toolbar icons appropriately (drw)
24 * #1620 - OFileSelector - show the button on press and not on press on hold (alwin) 28 * #1620 - OFileSelector - show the button on press and not on press on hold (alwin)
25 * #1473 - Opie-Eye - Same as #1620 but we lack a common FileSystem Button class (zecke) 29 * #1473 - Opie-Eye - Same as #1620 but we lack a common FileSystem Button class (zecke)
26 * n.a. - PackageManager - fix bug where messages show up multiple times in install dialog (drw) 30 * n.a. - PackageManager - fix bug where messages show up multiple times in install dialog (drw)
27 * n.a.- make qpeglobal.h include qglobal.h (zecke) 31 * n.a.- make qpeglobal.h include qglobal.h (zecke)
28 32
29 2005-03-20Opie 1.2.0-rc1 33 2005-03-20Opie 1.2.0-rc1
30 34
31 35
32 New Features 36 New Features
33 ------------ 37 ------------
34 * Launcher: Support a static background pixmap (mickeyl) 38 * Launcher: Support a static background pixmap (mickeyl)
35 * LauncherSettings: Choose whether to have a static background pixmap (mickeyl) 39 * LauncherSettings: Choose whether to have a static background pixmap (mickeyl)
36 * PackageManager supports the 'lists_dir' ipkg configuration option (drw) 40 * PackageManager supports the 'lists_dir' ipkg configuration option (drw)
37 * Added hi-res inline images for large resolution devices (drw) 41 * Added hi-res inline images for large resolution devices (drw)
38 * Improved launcher icons for consistency (ar) 42 * Improved launcher icons for consistency (ar)
39 * Datebook: Added plugin system to datebook so holidays and birthdays from contacts may displayed in datebook (alwin) 43 * Datebook: Added plugin system to datebook so holidays and birthdays from contacts may displayed in datebook (alwin)
40 44
41 Fixed Bugs 45 Fixed Bugs
42 ---------- 46 ----------
43 * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers) 47 * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers)
44 * #1412 - Launcher Settings - fixed default settings for background in Edit tab dialog (drw) 48 * #1412 - Launcher Settings - fixed default settings for background in Edit tab dialog (drw)
45 * #1472 - Opie textedit now check for unsaved changes on ESC key (ljp) 49 * #1472 - Opie textedit now check for unsaved changes on ESC key (ljp)
46 * #1474 - Implement GUI for Scrollbars on the Left in Appearance (zecke) 50 * #1474 - Implement GUI for Scrollbars on the Left in Appearance (zecke)
47 * #1482 - Fix double '/' in paths (zecke) 51 * #1482 - Fix double '/' in paths (zecke)
48 * #1536 - Autosave of custom locations in opie backup (ar) 52 * #1536 - Autosave of custom locations in opie backup (ar)
49 * #1539 - Fixed displaying too long path in the delete dialog in opie-eye (zecke) 53 * #1539 - Fixed displaying too long path in the delete dialog in opie-eye (zecke)
50 * #1540 - Implemented deletion of DocLnks in opie-eye (zecke) 54 * #1540 - Implemented deletion of DocLnks in opie-eye (zecke)
51 * #1542 - Fixed Todo crash when priority < 1 or > 5 (drw) 55 * #1542 - Fixed Todo crash when priority < 1 or > 5 (drw)
52 * #1550 - Browse for alarm sound start in QPEDIR/sounds/ (zecke) 56 * #1550 - Browse for alarm sound start in QPEDIR/sounds/ (zecke)
53 * #1554 - Fixed Opie-Console name in .desktop file (mickeyl) 57 * #1554 - Fixed Opie-Console name in .desktop file (mickeyl)
54 * #1556 - Start to look for sound files in /opt/QtPalmtop/sounds (zecke) 58 * #1556 - Start to look for sound files in /opt/QtPalmtop/sounds (zecke)
55 * #1558 - Fixed opie-login breaking opie startup (mickeyl) 59 * #1558 - Fixed opie-login breaking opie startup (mickeyl)
56 * #1560 - Fixed Opie-Console picking up the wrong shell (bluelightning) 60 * #1560 - Fixed Opie-Console picking up the wrong shell (bluelightning)
57 * #1570 - Confirmation needed befor Restore a backup and overwrite local data (ar) 61 * #1570 - Confirmation needed befor Restore a backup and overwrite local data (ar)
58 * #1591 - Addressbook sortorder changed by clicking on column 0 (eilers) 62 * #1591 - Addressbook sortorder changed by clicking on column 0 (eilers)
59 * #1599 - Security - change recommendation for opie-multiauth to opie-securityplugin (gints) 63 * #1599 - Security - change recommendation for opie-multiauth to opie-securityplugin (gints)
60 * #1604 - Checkbook crashed on startup (drw) 64 * #1604 - Checkbook crashed on startup (drw)
61 * #1608 - Addressbook crashed after search, which may caused by not initialzed member variable (eilers) 65 * #1608 - Addressbook crashed after search, which may caused by not initialzed member variable (eilers)
62 * #1608 - QueryByExampe-Datediff on SQL database did not worked properly (eilers) 66 * #1608 - QueryByExampe-Datediff on SQL database did not worked properly (eilers)
63 * n.a. - Netsystemtime - fixed UI to prevent error dialog from displaying when it shouldn't, get rid of some compiler warnings (drw) 67 * n.a. - Netsystemtime - fixed UI to prevent error dialog from displaying when it shouldn't, get rid of some compiler warnings (drw)
64 * n.a. - PackageManager - fixed where last package in status file was not shown as installed when it should be (drw) 68 * n.a. - PackageManager - fixed where last package in status file was not shown as installed when it should be (drw)
65 * n.a. - PackageManager - fixed bug where lists_dir was not being honored at startup (drw) 69 * n.a. - PackageManager - fixed bug where lists_dir was not being honored at startup (drw)
66 * n.a. - PackageManager - provided default value for lists_dir when none is entered in configuration dialog (drw) 70 * n.a. - PackageManager - provided default value for lists_dir when none is entered in configuration dialog (drw)
67 * n.a. - OTabWidget - fixed scroll buttons, fix display position of tabs (drw) 71 * n.a. - OTabWidget - fixed scroll buttons, fix display position of tabs (drw)
68 * n.a. - AddressBook - fixed sorting by 'File As' name (drw) 72 * n.a. - AddressBook - fixed sorting by 'File As' name (drw)
69 * n.a. - AddressBook - fixed category handling for 'All' and 'Unfiled' (eilers) 73 * n.a. - AddressBook - fixed category handling for 'All' and 'Unfiled' (eilers)
70 * n.a. - AddressBook - fixed letter picker record selection and sort records afterwards (drw) 74 * n.a. - AddressBook - fixed letter picker record selection and sort records afterwards (drw)
71 75
72 Internal 76 Internal
73 -------- 77 --------
74 * Worked around bug in Qt/Embedded 2.3.10: qt_version() returns 231 (mickeyl) 78 * Worked around bug in Qt/Embedded 2.3.10: qt_version() returns 231 (mickeyl)
75 * Killed the need for weak symbols in QtE (zecke) 79 * Killed the need for weak symbols in QtE (zecke)
76 * Added optional building libqpe without inline images (mickeyl) 80 * Added optional building libqpe without inline images (mickeyl)
77 * OColorButton - fixed so does not emit a colorSelected signal inside of resizeEvent (drw) 81 * OColorButton - fixed so does not emit a colorSelected signal inside of resizeEvent (drw)
78 82
79 2005-02-03Opie 1.1.9 83 2005-02-03Opie 1.1.9
80 84
81 New Features 85 New Features
82 ------------ 86 ------------
83 * Number of icon columns in Launcher is customizable through Launcher.conf (hrw,zecke,mickeyl) 87 * Number of icon columns in Launcher is customizable through Launcher.conf (hrw,zecke,mickeyl)
84 * Number of icon columns in Launcher is customizable through LauncherSettings (mickeyl) 88 * Number of icon columns in Launcher is customizable through LauncherSettings (mickeyl)
85 * Usability enhancements in OpieIRC (skyhusker) 89 * Usability enhancements in OpieIRC (skyhusker)
86 90
87 Fixed Bugs 91 Fixed Bugs
88 ---------- 92 ----------
89 * #1501 - Fixed bug in todo sql backend (eilers) 93 * #1501 - Fixed bug in todo sql backend (eilers)
90 * #1505 - Added more Swap sizes in memoryapplet (mickeyl) 94 * #1505 - Added more Swap sizes in memoryapplet (mickeyl)
91 * #1525 - Hopefully fixed double alarms and not removing alarms set with the Clock application (zecke) 95 * #1525 - Hopefully fixed double alarms and not removing alarms set with the Clock application (zecke)
92 * #1533 - Security Owner Dialog (shown in case of unsuccessfull authentiacation) wasn't able to display information in non latin1 encoding (zecke) 96 * #1533 - Security Owner Dialog (shown in case of unsuccessfull authentiacation) wasn't able to display information in non latin1 encoding (zecke)
93 * n.a. - Removed hard coded font sizes in a couple of inputmethods (mickeyl) 97 * n.a. - Removed hard coded font sizes in a couple of inputmethods (mickeyl)
94 * n.a. - Removed MediumDlg appearing prior to FirstUsage wizard (i.e. calibration) (mickeyl) 98 * n.a. - Removed MediumDlg appearing prior to FirstUsage wizard (i.e. calibration) (mickeyl)
95 * n.a. - Fixed numerous buglets in OpieIRC (skyhusker) 99 * n.a. - Fixed numerous buglets in OpieIRC (skyhusker)
96 100
97 Internal 101 Internal
98 -------- 102 --------
99 * Added the Qtopia 1.7 SDK macros for quick-apps to easa compilation of 3rd party apps against our headers (mickeyl) 103 * Added the Qtopia 1.7 SDK macros for quick-apps to easa compilation of 3rd party apps against our headers (mickeyl)
100 * You can now use the Opie build system in combination with a OpenEmbedded staging area which makes a nice cross development environment (mickeyl) 104 * You can now use the Opie build system in combination with a OpenEmbedded staging area which makes a nice cross development environment (mickeyl)
101 * Made Opie compilable with Qt/Embedded 2.3.10 (ar) 105 * Made Opie compilable with Qt/Embedded 2.3.10 (ar)
102 * Changed Launcher to get default orientation from ODevice w/ QWS_DISPLAY overriding (mickeyl) 106 * Changed Launcher to get default orientation from ODevice w/ QWS_DISPLAY overriding (mickeyl)
103 * Build tree cleanups (mickeyl) 107 * Build tree cleanups (mickeyl)
104 108
105 2004-11-26Opie 1.1.8 109 2004-11-26Opie 1.1.8
106 110
107 New Features 111 New Features
108 ------------ 112 ------------
109 * PackageManager supports installation of local ipkg files (drw) 113 * PackageManager supports installation of local ipkg files (drw)
110 * PackageManager supports linking of applications to root (drw) 114 * PackageManager supports linking of applications to root (drw)
111 * PackageManager supports src/gz feeds (drw,wimpie) 115 * PackageManager supports src/gz feeds (drw,wimpie)
112 * Added a syslog information tab to sysinfo (mickeyl) 116 * Added a syslog information tab to sysinfo (mickeyl)
113 * Added new, more consistent, PIM icons + a GIMP teplate (ar) 117 * Added new, more consistent, PIM icons + a GIMP teplate (ar)
114 118
115 Fixed Bugs 119 Fixed Bugs
116 ---------- 120 ----------
117 * #1017 - Tetrix doesn't display correctly for high resolution screens (drw) 121 * #1017 - Tetrix doesn't display correctly for high resolution screens (drw)
118 * #1269 - VCards were imported into personal area if it was activated (eilers) 122 * #1269 - VCards were imported into personal area if it was activated (eilers)
119 * #1464 - Packagemanager dont set active filter after install a package (drw) 123 * #1464 - Packagemanager dont set active filter after install a package (drw)
120 * #1479 - Improved VCard-Parser to import VCards created by Evolution 2 and Apple Addressbook (eilers) 124 * #1479 - Improved VCard-Parser to import VCards created by Evolution 2 and Apple Addressbook (eilers)
121 * #1493 - Fixed one column layout bug of the launcher (hrw) 125 * #1493 - Fixed one column layout bug of the launcher (hrw)
122 * n.a. - PackageManager - (Minor UI tweak) in filter dialog, when option is enabled, set focus to widget that corresponds to that option (drw) 126 * n.a. - PackageManager - (Minor UI tweak) in filter dialog, when option is enabled, set focus to widget that corresponds to that option (drw)
123 * n.a. - PackageManager - (Minor UI tweak) fix double entry in source feed configuration when adding a new feed (drw) 127 * n.a. - PackageManager - (Minor UI tweak) fix double entry in source feed configuration when adding a new feed (drw)
124 * n.a. - Battery Applet - fix sizing of battery info popup (drw,mickeyl) 128 * n.a. - Battery Applet - fix sizing of battery info popup (drw,mickeyl)
125 129
126 Internal 130 Internal
127 -------- 131 --------
128 * Moved libopie1 to unsupported (mickeyl) 132 * Moved libopie1 to unsupported (mickeyl)
129 * Implemented generic queryByExample() with incremental searching. A lot of internal changes of the Pim2-library (eilers) 133 * Implemented generic queryByExample() with incremental searching. A lot of internal changes of the Pim2-library (eilers)
130 * Added fast and full featured and incremental sorted() for SQL addressbook backend (eilers) 134 * Added fast and full featured and incremental sorted() for SQL addressbook backend (eilers)
131 135
132 2004-11-14Opie 1.1.7 136 2004-11-14Opie 1.1.7
133 137
134 New Features 138 New Features
135 ------------ 139 ------------
136 * libOpieDB now uses SQLite V3 instead V2. Remember to upgrade your database files! (eilers) 140 * libOpieDB now uses SQLite V3 instead V2. Remember to upgrade your database files! (eilers)
137 * Backup now uses the busy indicator when backing up and restore (ar) 141 * Backup now uses the busy indicator when backing up and restore (ar)
138 * OpiePlayer2 gained adding of Directories to the playlist (zecke) 142 * OpiePlayer2 gained adding of Directories to the playlist (zecke)
139 * OpiePlayer2 better error handling (zecke) 143 * OpiePlayer2 better error handling (zecke)
140 * OpiePlayer2 progress indication while streaming (zecke) 144 * OpiePlayer2 progress indication while streaming (zecke)
141 * OpiePlayer2 ported to use libxine 1.0.0-rc6a (brad,zecke) 145 * OpiePlayer2 ported to use libxine 1.0.0-rc6a (brad,zecke)
142 * Ported brightnessapplet from Qtopia 1.7 (mickeyl) 146 * Ported brightnessapplet from Qtopia 1.7 (mickeyl)
143 * Opie-Eye got a Digital Camera File Backend (alwin,zecke) 147 * Opie-Eye got a Digital Camera File Backend (alwin,zecke)
144 * Support for Tuxpad1 of Tradesquare.NL (mickeyl,zecke) 148 * Support for Tuxpad1 of Tradesquare.NL (mickeyl,zecke)
145 * Opie-Console use Custom Font and Size in a Profile (harlekin) 149 * Opie-Console use Custom Font and Size in a Profile (harlekin)
146 * Opie-Console transparently log the Output and Input to a file (harlekin) 150 * Opie-Console transparently log the Output and Input to a file (harlekin)
147 * Added new O-menu icon to lock the PDA immediately: opie-lockapplet (clem) 151 * Added new O-menu icon to lock the PDA immediately: opie-lockapplet (clem)
148 * Opie-Security now hides the plugin-based authentication tabs if no auth. plugin package is installed (clem) 152 * Opie-Security now hides the plugin-based authentication tabs if no auth. plugin package is installed (clem)
149 * Opie-Security gained a 'test authentication' button (clem) 153 * Opie-Security gained a 'test authentication' button (clem)
150 * Opie-Eye got a more unique layout (menubar), a slideshow, user can setup some defaults 154 * Opie-Eye got a more unique layout (menubar), a slideshow, user can setup some defaults
151 * Opie-Mail improve the handling of POP mail boxes (alwin) 155 * Opie-Mail improve the handling of POP mail boxes (alwin)
152 * Both Opie-Eye and Opie-Mail were greatly improved due the hard work of Rajko Albrecht(alwin) 156 * Both Opie-Eye and Opie-Mail were greatly improved due the hard work of Rajko Albrecht(alwin)
153 * Opie IRC - backports of the 'NeIRC fork' (zecke) 157 * Opie IRC - backports of the 'NeIRC fork' (zecke)
154 158
155 Fixed Bugs 159 Fixed Bugs
156 ---------- 160 ----------
157 * #501 - Pickboard is able to show 'Umlaute' (TT,zecke) 161 * #501 - Pickboard is able to show 'Umlaute' (TT,zecke)
158 * #608 - Make Opie usable for left handed users (zecke) 162 * #608 - Make Opie usable for left handed users (zecke)
159 * #957 - Import of VCards/VTodos/VEvents with BASE64 encoding (ljp,zecke) 163 * #957 - Import of VCards/VTodos/VEvents with BASE64 encoding (ljp,zecke)
160 * #1245 - Opie-Go 'paused' (zecke) 164 * #1245 - Opie-Go 'paused' (zecke)
161 * #1358 - DocTab didn't show any MimeTypes (was fixed earlier) (zecke) 165 * #1358 - DocTab didn't show any MimeTypes (was fixed earlier) (zecke)
162 * #1380 - QDateBookAccess::remove() doesn't remove entries (eilers, zecke) 166 * #1380 - QDateBookAccess::remove() doesn't remove entries (eilers, zecke)
163 * #1395 - Build VNC Backend with gcc3.4 167 * #1395 - Build VNC Backend with gcc3.4
164 * #1440 - The icon of opie-mobilemsg is missing (CoreDump) 168 * #1440 - The icon of opie-mobilemsg is missing (CoreDump)
165 * #1426 - Add missing opie-bartender Icon (CoreDump) 169 * #1426 - Add missing opie-bartender Icon (CoreDump)
166 * #1445 - Opie-Sheet Has No Icon (CoreDump) 170 * #1445 - Opie-Sheet Has No Icon (CoreDump)
167 * #1448 - Brightness Applet added (mickeyl) 171 * #1448 - Brightness Applet added (mickeyl)
168 * #1450 - ZSame didn't clear the bonus item after winning a game (zecke) 172 * #1450 - ZSame didn't clear the bonus item after winning a game (zecke)
169 * #1482 - Fix OFileSelector to be able to sort by size (zecke) 173 * #1482 - Fix OFileSelector to be able to sort by size (zecke)
170 * n.a. - Opie-mail: fixed some crasher, some layout-problems 174 * n.a. - Opie-mail: fixed some crasher, some layout-problems
171 * n.a. - Converted applications to not hardcode /opt/QtPalmtop but to use QPEApplication::qpeDir (zecke) 175 * n.a. - Converted applications to not hardcode /opt/QtPalmtop but to use QPEApplication::qpeDir (zecke)
172 * n.a. - Converted usage of qpeDir() not to include a '/' as first charachter of the string (zecke) 176 * n.a. - Converted usage of qpeDir() not to include a '/' as first charachter of the string (zecke)
173 * n.a. - Build system: Enable distcc and ccache when crosscompiling too, and use them everywhere we can (clem) 177 * n.a. - Build system: Enable distcc and ccache when crosscompiling too, and use them everywhere we can (clem)
174 * n.a. - Build system: Fix deps in several config.in (and fix scripts/deps.pl too) to stop breaking builds, especially with make -j highNumber (clem) 178 * n.a. - Build system: Fix deps in several config.in (and fix scripts/deps.pl too) to stop breaking builds, especially with make -j highNumber (clem)
175 * n.a. - Removed hardcoded icon size in a couple of applets (mickeyl) 179 * n.a. - Removed hardcoded icon size in a couple of applets (mickeyl)
176 180
177 Internal 181 Internal
178 -------- 182 --------
179 * Opie-Qashmoney has been moved to unsupported (mickeyl) 183 * Opie-Qashmoney has been moved to unsupported (mickeyl)
180 * Opie-Ubrowser has been moved to unsupported (mickeyl) 184 * Opie-Ubrowser has been moved to unsupported (mickeyl)
181 185
182 2004-09-17Opie 1.1.6 186 2004-09-17Opie 1.1.6
183 187
184 New Features 188 New Features
185 ------------ 189 ------------
186 * Fifteen gained configurable number of items (zecke) 190 * Fifteen gained configurable number of items (zecke)
187 * Fifteen can have custom background images (zecke) 191 * Fifteen can have custom background images (zecke)
188 * Added daemonizing capabilities to QWS Server [via Qt/Embedded] (mickeyl) 192 * Added daemonizing capabilities to QWS Server [via Qt/Embedded] (mickeyl)
189 * Integrated the new security framework into libopie2 (zecke,clem) 193 * Integrated the new security framework into libopie2 (zecke,clem)
190 * Converted the launcher to use the new security framework (zecke) 194 * Converted the launcher to use the new security framework (zecke)
191 * Backup can now handle custom locations for backup and restore (ar) 195 * Backup can now handle custom locations for backup and restore (ar)
192 * Implemented right-on-hold feedback (wimpie,zecke) 196 * Implemented right-on-hold feedback (wimpie,zecke)
193 * Lots of new features in opie-reader (tim,pohly) 197 * Lots of new features in opie-reader (tim,pohly)
194 * Build system cleanups (schurig) 198 * Build system cleanups (schurig)
195 199
196 Fixed Bugs 200 Fixed Bugs
197 -------- 201 --------
198 * #1005 - Fixed backup to CompactFlash (ar) 202 * #1005 - Fixed backup to CompactFlash (ar)
199 * #1167 - Fixed Opie write crashing on more text than one page (ar) 203 * #1167 - Fixed Opie write crashing on more text than one page (ar)
200 * #1225 - Fixed repeated light flashing on Zaurus with keyz (mickeyl) 204 * #1225 - Fixed repeated light flashing on Zaurus with keyz (mickeyl)
201 * #1359 - Fixed bookmarks in Gutenbrowser (ljp) 205 * #1359 - Fixed bookmarks in Gutenbrowser (ljp)
202 * #1361 - Fixed auto upercase in Opie-Addressbook (eilers) 206 * #1361 - Fixed auto upercase in Opie-Addressbook (eilers)
203 * #1370 - Pimconverter now reacts on cancel key (eilers) 207 * #1370 - Pimconverter now reacts on cancel key (eilers)
204 * #1376 - Bring back the capslock/numlock display (zecke) 208 * #1376 - Bring back the capslock/numlock display (zecke)
205 * #1383 - Language settings now warns about losing open apps (Markus Litz) 209 * #1383 - Language settings now warns about losing open apps (Markus Litz)
206 * #1393 - Fixed line wrap issues in opie-console for the default profile (mickeyl) 210 * #1393 - Fixed line wrap issues in opie-console for the default profile (mickeyl)
207 * #1394 - Fixed oversized headline in opie-login (coredump) 211 * #1394 - Fixed oversized headline in opie-login (coredump)
208 * #1396 - Opie-console captures the escape key and vim is working (zecke) 212 * #1396 - Opie-console captures the escape key and vim is working (zecke)
209 * #1401 - Scrollbar is now only visible if necessary in DocTab (mickeyl) 213 * #1401 - Scrollbar is now only visible if necessary in DocTab (mickeyl)
210 214
211 2004-07-06Opie 1.1.4 215 2004-07-06Opie 1.1.4
212 216
213 New Features 217 New Features
214 ------------ 218 ------------
215 * Added four themes courtesy Robert Griebl (http://www.softforge.de/zstyle) 219 * Added four themes courtesy Robert Griebl (http://www.softforge.de/zstyle)
216 * Added Conversion tool for pim-data (eilers) 220 * Added Conversion tool for pim-data (eilers)
217 * Introduced new OPimAccessFactory and OBackendFactory which simplyfies database access (eilers) 221 * Introduced new OPimAccessFactory and OBackendFactory which simplyfies database access (eilers)
218 * Modified the PIM API for providing generic use of OPimRecords (eilers) 222 * Modified the PIM API for providing generic use of OPimRecords (eilers)
219 * Clicking on the application symbol now iterates over the application's top level widgets if already raised (zecke) 223 * Clicking on the application symbol now iterates over the application's top level widgets if already raised (zecke)
220 224
221 Fixed Bugs 225 Fixed Bugs
222 -------- 226 --------
223 * #1068 - Country Drop Down Box Off Screen 227 * #1068 - Country Drop Down Box Off Screen
224 * #1291 - Opie tinykate does not open .desktop files (ar) 228 * #1291 - Opie tinykate does not open .desktop files (ar)
225 * #1291 - Opie sheet not saving correctly (ar) 229 * #1291 - Opie sheet not saving correctly (ar)
226 * #1294 - Opie does not know about British Summer Time 230 * #1294 - Opie does not know about British Summer Time
227 * #1314 - Drawpad initialization (mickeyl) 231 * #1314 - Drawpad initialization (mickeyl)
228 * #1317 - Packagemanager crashes on hold-down or install (chicken) 232 * #1317 - Packagemanager crashes on hold-down or install (chicken)
229 * #1321 - Batteryapplet graphic glitch (harlekin) 233 * #1321 - Batteryapplet graphic glitch (harlekin)
230 * #1324 - ZSafe not starting up (mickeyl) 234 * #1324 - ZSafe not starting up (mickeyl)
231 * #1328 - Personal Home Address fields is trimmed to 1char (eilers) 235 * #1328 - Personal Home Address fields is trimmed to 1char (eilers)
232 * #1327 - Opie-mail ipk does not depend on libopiedb2 (chicken) 236 * #1327 - Opie-mail ipk does not depend on libopiedb2 (chicken)
233 * #1345 - Networksettingsplugin wlan plugin dependency on libpcap0 (mickeyl) 237 * #1345 - Networksettingsplugin wlan plugin dependency on libpcap0 (mickeyl)
234 * #1348 - Datebook dependency on libopiedb2 (chicken) 238 * #1348 - Datebook dependency on libopiedb2 (chicken)
235 * #1328 - Switched SQLDatabase and VCards char encoding from latin1 to unicode (eilers) 239 * #1328 - Switched SQLDatabase and VCards char encoding from latin1 to unicode (eilers)
236 240
237 2004-04-25Opie 1.1.3 241 2004-04-25Opie 1.1.3
238 242
239 * Introduced first implementation of SQL-Support using SQLite (eilers) 243 * Introduced first implementation of SQL-Support using SQLite (eilers)
240 * Added a new Gutenberg Project reader app - opie-gutenbrowser (ljp) 244 * Added a new Gutenberg Project reader app - opie-gutenbrowser (ljp)
241 * Added a real system graffiti character set (brad) 245 * Added a real system graffiti character set (brad)
242 * Added Generic Keyconfig Widget (zecke) 246 * Added Generic Keyconfig Widget (zecke)
243 * Improved Screenshotapplet and Drawpad integration. You can now open a screenshot in drawpad and take notes (zecke) 247 * Improved Screenshotapplet and Drawpad integration. You can now open a screenshot in drawpad and take notes (zecke)
244 * Added new Bible reader app - opie-dagger (drw) 248 * Added new Bible reader app - opie-dagger (drw)
245 * Added a new Image Viewer. Work is ongoing (zecke,alwin) 249 * Added a new Image Viewer. Work is ongoing (zecke,alwin)
246 * Added namespace usage in libopie2 and everywhere (zecke,alwin) 250 * Added namespace usage in libopie2 and everywhere (zecke,alwin)
247 * Enabled the possibility to pass command line arguments to applications (mickeyl) 251 * Enabled the possibility to pass command line arguments to applications (mickeyl)
248 * Added an about applet showing some credits and information about Opie (mickeyl) 252 * Added an about applet showing some credits and information about Opie (mickeyl)
249 * Added benchmarking functionality to sysinfo (mickeyl) 253 * Added benchmarking functionality to sysinfo (mickeyl)
250 * Added applet and configuration application for switching hardware keyboard layouts (alwin) 254 * Added applet and configuration application for switching hardware keyboard layouts (alwin)
251 * Ported applications from libopie1 to libopie2* (drw,ar,alwin) 255 * Ported applications from libopie1 to libopie2* (drw,ar,alwin)
252 * Imported fullscreen and font improvements from the Qkonsole fork to embeddedkonsole (waspe) 256 * Imported fullscreen and font improvements from the Qkonsole fork to embeddedkonsole (waspe)
253 * Clean-up of package information in control files (drw) 257 * Clean-up of package information in control files (drw)
254 * Repaired mediummount which was broken since integrating the quicklauncher (alwin) 258 * Repaired mediummount which was broken since integrating the quicklauncher (alwin)
255 * Improved big-screen support (zecke,ar) 259 * Improved big-screen support (zecke,ar)
256 * Improved multikeyboard support, added keyboard layout switching applet (mouse) 260 * Improved multikeyboard support, added keyboard layout switching applet (mouse)
257 * Added a new mail client based on libetpan (harlekin,alwin,jgf) 261 * Added a new mail client based on libetpan (harlekin,alwin,jgf)
258 * Added new package manager - opie-packagemanager (drw) 262 * Added new package manager - opie-packagemanager (drw)
259 * Improved light-n-power for C7x0 (mickeyl) 263 * Improved light-n-power for C7x0 (mickeyl)
260 * Added automatic rotation support for C7x0 (treke) 264 * Added automatic rotation support for C7x0 (treke)
261 * Split libopie1 up into a set of smaller - functionally grouped - libraries (mickeyl) 265 * Split libopie1 up into a set of smaller - functionally grouped - libraries (mickeyl)
262 * Added scanning the wireless network neighbourhood to networksettings (mickeyl) 266 * Added scanning the wireless network neighbourhood to networksettings (mickeyl)
263 267
264 2003-11-29Opie 1.0.3 268 2003-11-29Opie 1.0.3
265 269
266 * Released as Version 1.0.3 270 * Released as Version 1.0.3
267 * Improved i18n (various contributors) 271 * Improved i18n (various contributors)
268 * Reduced application startup time by integrating the TT quicklauncher (zecke,harlekin) 272 * Reduced application startup time by integrating the TT quicklauncher (zecke,harlekin)
269 * Made the Documents Tab optional (mickeyl) 273 * Made the Documents Tab optional (mickeyl)
270 * Integrated basic support for HP iPAQ 54xx and the Jornada 5xx (chicken) 274 * Integrated basic support for HP iPAQ 54xx and the Jornada 5xx (chicken)
271 275
272 2003-08-04Opie 1.0.0 276 2003-08-04Opie 1.0.0
273 277
274 * Released as Version 1.0.0 278 * Released as Version 1.0.0
275 * Including a PPP module for easy dial up (tille,harlekin,zecke) 279 * Including a PPP module for easy dial up (tille,harlekin,zecke)
diff --git a/noncore/net/opietooth/applet/applet.pro b/noncore/net/opietooth/applet/applet.pro
index bb8a053..b1cb910 100644
--- a/noncore/net/opietooth/applet/applet.pro
+++ b/noncore/net/opietooth/applet/applet.pro
@@ -1,13 +1,13 @@
1TEMPLATE = lib 1TEMPLATE = lib
2CONFIG += qt plugin warn_on 2CONFIG += qt plugin warn_on
3HEADERS = bluezapplet.h bluezappletimpl.h 3HEADERS = bluezapplet.h
4SOURCES = bluezapplet.cpp bluezappletimpl.cpp 4SOURCES = bluezapplet.cpp
5TARGET = bluetoothapplet 5TARGET = bluetoothapplet
6DESTDIR = $(OPIEDIR)/plugins/applets 6DESTDIR = $(OPIEDIR)/plugins/applets
7INCLUDEPATH += $(OPIEDIR)/include 7INCLUDEPATH += $(OPIEDIR)/include
8INCLUDEPATH += $(OPIEDIR)/noncore/net/opietooth/lib 8INCLUDEPATH += $(OPIEDIR)/noncore/net/opietooth/lib
9DEPENDPATH += $(OPIEDIR)/include 9DEPENDPATH += $(OPIEDIR)/include
10LIBS += -lqpe -lopietooth1 10LIBS += -lqpe -lopietooth1
11VERSION = 0.0.3 11VERSION = 0.0.4
12 12
13include( $(OPIEDIR)/include.pro ) 13include( $(OPIEDIR)/include.pro )
diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp
index 66e8f01..8925803 100644
--- a/noncore/net/opietooth/applet/bluezapplet.cpp
+++ b/noncore/net/opietooth/applet/bluezapplet.cpp
@@ -1,222 +1,234 @@
1/* 1/*
2               =. This file is part of the OPIE Project 2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 Maximilian Reiss <max.reiss@gmx.de> 3             .=l. Copyright (c) 2002 Maximilian Reiss <max.reiss@gmx.de>
4           .>+-= 4           .>+-=
5 _;:,     .>    :=|. This library is free software; you can 5 _;:,     .>    :=|. This library is free software; you can
6.> <,   >  .   <= redistribute it and/or modify it under 6.> <,   >  .   <= redistribute it and/or modify it under
7:=1 )Y*s>-.--   : the terms of the GNU Library General Public 7:=1 )Y*s>-.--   : the terms of the GNU Library General Public
8.="- .-=="i,     .._ License as published by the Free Software 8.="- .-=="i,     .._ License as published by the Free Software
9 - .   .-<_>     .<> Foundation; either version 2 of the License, 9 - .   .-<_>     .<> Foundation; version 2 of the License.
10     ._= =}       : or (at your option) any later version. 10     ._= =}       :
11    .%+i>       _;_. 11    .%+i>       _;_.
12    .i_,=:_.      -<s. This library is distributed in the hope that 12    .i_,=:_.      -<s. This library is distributed in the hope that
13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14    : ..    .:,     . . . without even the implied warranty of 14    : ..    .:,     . . . without even the implied warranty of
15    =_        +     =;=| MERCHANTABILITY or FITNESS FOR A 15    =_        +     =;=| MERCHANTABILITY or FITNESS FOR A
16  _.=:.       :    :=>: PARTICULAR PURPOSE. See the GNU 16  _.=:.       :    :=>: PARTICULAR PURPOSE. See the GNU
17..}^=.=       =       ; Library General Public License for more 17..}^=.=       =       ; Library General Public License for more
18++=   -.     .     .: details. 18++=   -.     .     .: details.
19 :     =  ...= . :.=- 19 :     =  ...= . :.=-
20 -.   .:....=;==+<; You should have received a copy of the GNU 20 -.   .:....=;==+<; You should have received a copy of the GNU
21  -_. . .   )=.  = Library General Public License along with 21  -_. . .   )=.  = Library General Public License along with
22    --        :-= this library; see the file COPYING.LIB. 22   --        :-= this library; see the file COPYING.LIB.
23 If not, write to the Free Software Foundation, 23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330, 24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 25 Boston, MA 02111-1307, USA.
26 26
27*/ 27*/
28 28
29 29
30#include "bluezapplet.h" 30#include "bluezapplet.h"
31#include <qapplication.h>
32 31
32/* OPIE */
33#include <opie2/otaskbarapplet.h>
34#include <opie2/odevice.h>
35#include <opie2/odebug.h>
36#include <qpe/applnk.h>
33#include <qpe/qcopenvelope_qws.h> 37#include <qpe/qcopenvelope_qws.h>
34#include <qpe/config.h> 38#include <qpe/config.h>
35#include <qpe/resource.h> 39#include <qpe/resource.h>
40using namespace Opie::Core;
36 41
37#include <opie2/odevice.h> 42/* QT */
38#include <opie2/odebug.h> 43#include <qapplication.h>
39
40#include <qpoint.h> 44#include <qpoint.h>
41#include <qpainter.h> 45#include <qpainter.h>
42#include <qlayout.h> 46#include <qlayout.h>
43#include <qframe.h> 47#include <qframe.h>
44#include <qpixmap.h> 48#include <qpixmap.h>
45#include <qstring.h> 49#include <qstring.h>
46#include <qtimer.h> 50#include <qtimer.h>
47#include <qpopupmenu.h> 51#include <qpopupmenu.h>
48 52
53/* STD */
49#include <device.h> 54#include <device.h>
50 55
51using namespace Opie::Core;
52
53namespace OpieTooth { 56namespace OpieTooth {
54 57
55 BluezApplet::BluezApplet( QWidget *parent, const char *name ) : QWidget( parent, name ) { 58 BluezApplet::BluezApplet( QWidget *parent, const char *name ) : QWidget( parent, name ) {
56 setFixedHeight( 18 ); 59 setFixedHeight( AppLnk::smallIconSize() );
57 setFixedWidth( 14 ); 60 setFixedWidth( AppLnk::smallIconSize() );
58 bluezOnPixmap = Resource::loadPixmap( "bluetoothapplet/bluezon" ); 61 bluezOnPixmap = Resource::loadImage( "bluetoothapplet/bluezon" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() );
59 bluezOffPixmap = Resource::loadPixmap( "bluetoothapplet/bluezoff" ); 62 bluezOffPixmap = Resource::loadImage( "bluetoothapplet/bluezoff" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() );
60 // bluezDiscoveryOnPixmap = Resource::loadPixmap( "bluetoothapplet/magglass" ); 63 //bluezDiscoveryOnPixmap = Resource::loadImage( "bluetoothapplet/magglass" )smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize());
61 startTimer(4000); 64 startTimer(4000);
62 btDevice = 0; 65 btDevice = 0;
63 bluezactive = false; 66 bluezactive = false;
64 bluezDiscoveryActive = false; 67 bluezDiscoveryActive = false;
65 68
66 } 69 }
67 70
68 BluezApplet::~BluezApplet() { 71 BluezApplet::~BluezApplet() {
69 if ( btDevice ) { 72 if ( btDevice ) {
70 delete btDevice; 73 delete btDevice;
71 } 74 }
72 } 75 }
73 76
77int BluezApplet::position()
78{
79 return 6;
80}
81
82
74 bool BluezApplet::checkBluezStatus() { 83 bool BluezApplet::checkBluezStatus() {
75 if (btDevice) { 84 if (btDevice) {
76 if (btDevice->isLoaded() ) { 85 if (btDevice->isLoaded() ) {
77 return true; 86 return true;
78 } else { 87 } else {
79 return false; 88 return false;
80 } 89 }
81 } else { 90 } else {
82 return false; 91 return false;
83 } 92 }
84 } 93 }
85 94
86 int BluezApplet::setBluezStatus(int c) { 95 int BluezApplet::setBluezStatus(int c) {
87 96
88 if ( c == 1 ) { 97 if ( c == 1 ) {
89 switch ( ODevice::inst()->model() ) { 98 switch ( ODevice::inst()->model() ) {
90 case Model_iPAQ_H39xx: 99 case Model_iPAQ_H39xx:
91 btDevice = new Device( "/dev/tts/1", "bcsp", "921600" ); 100 btDevice = new Device( "/dev/tts/1", "bcsp", "921600" );
92 break; 101 break;
93 102
94 case Model_iPAQ_H5xxx: 103 case Model_iPAQ_H5xxx:
95 btDevice = new Device( "/dev/tts/1", "any", "921600" ); 104 btDevice = new Device( "/dev/tts/1", "any", "921600" );
96 break; 105 break;
97 106
98 default: 107 default:
99 btDevice = new Device( "/dev/ttySB0", "bcsp", "230400" ); 108 btDevice = new Device( "/dev/ttySB0", "bcsp", "230400" );
100 break; 109 break;
101 } 110 }
102 } else { 111 } else {
103 if ( btDevice ) { 112 if ( btDevice ) {
104 delete btDevice; 113 delete btDevice;
105 btDevice = 0; 114 btDevice = 0;
106 } 115 }
107 } 116 }
108 return 0; 117 return 0;
109 } 118 }
110 119
111 int BluezApplet::checkBluezDiscoveryStatus() { 120 int BluezApplet::checkBluezDiscoveryStatus() {
112 } 121 }
113 122
114 int BluezApplet::setBluezDiscoveryStatus(int d) { 123 int BluezApplet::setBluezDiscoveryStatus(int d) {
115 } 124 }
116 125
117 void BluezApplet::mousePressEvent( QMouseEvent *) { 126 void BluezApplet::mousePressEvent( QMouseEvent *) {
118 127
119 QPopupMenu *menu = new QPopupMenu(); 128 QPopupMenu *menu = new QPopupMenu();
120 QPopupMenu *signal = new QPopupMenu(); 129 QPopupMenu *signal = new QPopupMenu();
121 int ret=0; 130 int ret=0;
122 131
123 /* Refresh active state */ 132 /* Refresh active state */
124 timerEvent( 0 ); 133 timerEvent( 0 );
125 134
126 135
127 if (bluezactive) { 136 if (bluezactive) {
128 menu->insertItem( tr("Disable Bluetooth"), 0 ); 137 menu->insertItem( tr("Disable Bluetooth"), 0 );
129 } else { 138 } else {
130 menu->insertItem( tr("Enable Bluetooth"), 1 ); 139 menu->insertItem( tr("Enable Bluetooth"), 1 );
131 } 140 }
132 141
133 menu->insertItem( tr("Launch manager"), 2 ); 142 menu->insertItem( tr("Launch manager"), 2 );
134 143
135 menu->insertSeparator(6); 144 menu->insertSeparator(6);
136 //menu->insertItem( tr("Signal strength"), signal, 5); 145 //menu->insertItem( tr("Signal strength"), signal, 5);
137 //menu->insertSeparator(8); 146 //menu->insertSeparator(8);
138 147
139 if (bluezDiscoveryActive) { 148 if (bluezDiscoveryActive) {
140 menu->insertItem( tr("Disable discovery"), 3 ); 149 menu->insertItem( tr("Disable discovery"), 3 );
141 } else { 150 } else {
142 menu->insertItem( tr("Enable discovery"), 4 ); 151 menu->insertItem( tr("Enable discovery"), 4 );
143 } 152 }
144 153
145 154
146 QPoint p = mapToGlobal( QPoint(1, -menu->sizeHint().height()-1) ); 155 QPoint p = mapToGlobal( QPoint(1, -menu->sizeHint().height()-1) );
147 ret = menu->exec(p, 0); 156 ret = menu->exec(p, 0);
148 157
149 switch(ret) { 158 switch(ret) {
150 case 0: 159 case 0:
151 setBluezStatus(0); 160 setBluezStatus(0);
152 timerEvent( 0 ); 161 timerEvent( 0 );
153 break; 162 break;
154 case 1: 163 case 1:
155 setBluezStatus(1); 164 setBluezStatus(1);
156 timerEvent( 0 ); 165 timerEvent( 0 );
157 break; 166 break;
158 case 2: 167 case 2:
159 // start bluetoothmanager 168 // start bluetoothmanager
160 launchManager(); 169 launchManager();
161 timerEvent( 0 ); 170 timerEvent( 0 );
162 break; 171 break;
163 case 3: 172 case 3:
164 setBluezDiscoveryStatus(0); 173 setBluezDiscoveryStatus(0);
165 timerEvent( 0 ); 174 timerEvent( 0 );
166 break; 175 break;
167 case 4: 176 case 4:
168 setBluezDiscoveryStatus(1); 177 setBluezDiscoveryStatus(1);
169 timerEvent(0 ); 178 timerEvent(0 );
170 break; 179 break;
171 //case 7: 180 //case 7:
172 // With table of currently-detected devices. 181 // With table of currently-detected devices.
173 } 182 }
174 183
175 delete signal; 184 delete signal;
176 delete menu; 185 delete menu;
177 } 186 }
178 187
179 188
180/** 189/**
181 * Launches the bluetooth manager 190 * Launches the bluetooth manager
182 */ 191 */
183 void BluezApplet::launchManager() { 192 void BluezApplet::launchManager() {
184 QCopEnvelope e("QPE/System", "execute(QString)"); 193 QCopEnvelope e("QPE/System", "execute(QString)");
185 e << QString("bluetooth-manager"); 194 e << QString("bluetooth-manager");
186 } 195 }
187 196
188/** 197/**
189 * Refresh timer 198 * Refresh timer
190 * @param the timer event 199 * @param the timer event
191 */ 200 */
192 void BluezApplet::timerEvent( QTimerEvent * ) { 201 void BluezApplet::timerEvent( QTimerEvent * ) {
193 bool oldactive = bluezactive; 202 bool oldactive = bluezactive;
194 int olddiscovery = bluezDiscoveryActive; 203 int olddiscovery = bluezDiscoveryActive;
195 204
196 bluezactive = checkBluezStatus(); 205 bluezactive = checkBluezStatus();
197 bluezDiscoveryActive = checkBluezDiscoveryStatus(); 206 bluezDiscoveryActive = checkBluezDiscoveryStatus();
198 207
199 if ((bluezactive != oldactive) || (bluezDiscoveryActive != olddiscovery)) { 208 if ((bluezactive != oldactive) || (bluezDiscoveryActive != olddiscovery)) {
200 update(); 209 update();
201 } 210 }
202 } 211 }
203 212
204/** 213/**
205 * Implementation of the paint event 214 * Implementation of the paint event
206 * @param the QPaintEvent 215 * @param the QPaintEvent
207 */ 216 */
208 void BluezApplet::paintEvent( QPaintEvent* ) { 217 void BluezApplet::paintEvent( QPaintEvent* ) {
209 QPainter p(this); 218 QPainter p(this);
210 odebug << "paint bluetooth pixmap" << oendl; 219 odebug << "paint bluetooth pixmap" << oendl;
211 220
212 if (bluezactive > 0) { 221 if (bluezactive > 0) {
213 p.drawPixmap( 0, 1, bluezOnPixmap ); 222 p.drawPixmap( 0, 1, bluezOnPixmap );
214 } else { 223 } else {
215 p.drawPixmap( 0, 1, bluezOffPixmap ); 224 p.drawPixmap( 0, 1, bluezOffPixmap );
216 } 225 }
217 226
218 if (bluezDiscoveryActive > 0) { 227 if (bluezDiscoveryActive > 0) {
219 p.drawPixmap( 0, 1, bluezDiscoveryOnPixmap ); 228 p.drawPixmap( 0, 1, bluezDiscoveryOnPixmap );
220 } 229 }
221 } 230 }
222}; 231};
232
233EXPORT_OPIE_APPLET_v1( OpieTooth::BluezApplet )
234
diff --git a/noncore/net/opietooth/applet/bluezapplet.h b/noncore/net/opietooth/applet/bluezapplet.h
index a8d91a5..a394e38 100644
--- a/noncore/net/opietooth/applet/bluezapplet.h
+++ b/noncore/net/opietooth/applet/bluezapplet.h
@@ -1,74 +1,74 @@
1/* 1/*
2               =. This file is part of the OPIE Project 2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 Maximilian Reiss <max.reiss@gmx.de> 3             .=l. Copyright (c) 2002 Maximilian Reiss <max.reiss@gmx.de>
4           .>+-= 4           .>+-=
5 _;:,     .>    :=|. This library is free software; you can 5 _;:,     .>    :=|. This library is free software; you can
6.> <,   >  .   <= redistribute it and/or modify it under 6.> <,   >  .   <= redistribute it and/or modify it under
7:=1 )Y*s>-.--   : the terms of the GNU Library General Public 7:=1 )Y*s>-.--   : the terms of the GNU Library General Public
8.="- .-=="i,     .._ License as published by the Free Software 8.="- .-=="i,     .._ License as published by the Free Software
9 - .   .-<_>     .<> Foundation; either version 2 of the License, 9 - .   .-<_>     .<> Foundation; version 2 of the License.
10     ._= =}       : or (at your option) any later version. 10     ._= =}       :
11    .%+i>       _;_. 11    .%+i>       _;_.
12    .i_,=:_.      -<s. This library is distributed in the hope that 12    .i_,=:_.      -<s. This library is distributed in the hope that
13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14    : ..    .:,     . . . without even the implied warranty of 14    : ..    .:,     . . . without even the implied warranty of
15    =_        +     =;=| MERCHANTABILITY or FITNESS FOR A 15    =_        +     =;=| MERCHANTABILITY or FITNESS FOR A
16  _.=:.       :    :=>: PARTICULAR PURPOSE. See the GNU 16  _.=:.       :    :=>: PARTICULAR PURPOSE. See the GNU
17..}^=.=       =       ; Library General Public License for more 17..}^=.=       =       ; Library General Public License for more
18++=   -.     .     .: details. 18++=   -.     .     .: details.
19 :     =  ...= . :.=- 19 :     =  ...= . :.=-
20 -.   .:....=;==+<; You should have received a copy of the GNU 20 -.   .:....=;==+<; You should have received a copy of the GNU
21  -_. . .   )=.  = Library General Public License along with 21  -_. . .   )=.  = Library General Public License along with
22    --        :-= this library; see the file COPYING.LIB. 22    --        :-= this library; see the file COPYING.LIB.
23 If not, write to the Free Software Foundation, 23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330, 24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 25 Boston, MA 02111-1307, USA.
26 26
27*/ 27*/
28 28
29#ifndef __BLUEZAPPLET_H__ 29#ifndef __BLUEZAPPLET_H__
30#define __BLUEZAPPLET_H__ 30#define __BLUEZAPPLET_H__
31 31
32#include <qwidget.h> 32#include <qwidget.h>
33#include <qpixmap.h> 33#include <qpixmap.h>
34#include <qtimer.h> 34#include <qtimer.h>
35 35
36namespace OpieTooth { 36namespace OpieTooth {
37 class Device; 37 class Device;
38 38
39 class BluezApplet : public QWidget { 39 class BluezApplet : public QWidget {
40 Q_OBJECT 40 Q_OBJECT
41 public: 41 public:
42 BluezApplet( QWidget *parent = 0, const char *name=0 ); 42 BluezApplet( QWidget *parent = 0, const char *name=0 );
43 ~BluezApplet(); 43 ~BluezApplet();
44 44 static int position();
45 protected: 45 protected:
46 void timerEvent(QTimerEvent *te ); 46 void timerEvent(QTimerEvent *te );
47 47
48public slots: 48public slots:
49 private: 49 private:
50 void mousePressEvent( QMouseEvent * ); 50 void mousePressEvent( QMouseEvent * );
51 void paintEvent( QPaintEvent* ); 51 void paintEvent( QPaintEvent* );
52 void launchManager(); 52 void launchManager();
53 bool checkBluezStatus(); 53 bool checkBluezStatus();
54 int setBluezStatus(int); 54 int setBluezStatus(int);
55 int checkBluezDiscoveryStatus(); 55 int checkBluezDiscoveryStatus();
56 int setBluezDiscoveryStatus(int); 56 int setBluezDiscoveryStatus(int);
57 57
58 private: 58 private:
59 Device* btDevice; 59 Device* btDevice;
60 QPixmap bluezOnPixmap; 60 QPixmap bluezOnPixmap;
61 QPixmap bluezOffPixmap; 61 QPixmap bluezOffPixmap;
62 QPixmap bluezDiscoveryOnPixmap; 62 QPixmap bluezDiscoveryOnPixmap;
63 bool bluezactive; 63 bool bluezactive;
64 bool bluezDiscoveryActive; 64 bool bluezDiscoveryActive;
65 65
66private slots: 66private slots:
67 67
68 68
69 }; 69 };
70}; 70};
71 71
72 72
73#endif 73#endif
74 74
diff --git a/noncore/net/opietooth/applet/bluezappletimpl.cpp b/noncore/net/opietooth/applet/bluezappletimpl.cpp
deleted file mode 100644
index 6677454..0000000
--- a/noncore/net/opietooth/applet/bluezappletimpl.cpp
+++ b/dev/null
@@ -1,72 +0,0 @@
1/*
2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 Maximilian Reiss <max.reiss@gmx.de>
4           .>+-=
5 _;:,     .>    :=|. This library is free software; you can
6.> <,   >  .   <= redistribute it and/or modify it under
7:=1 )Y*s>-.--   : the terms of the GNU Library General Public
8.="- .-=="i,     .._ License as published by the Free Software
9 - .   .-<_>     .<> Foundation; either version 2 of the License,
10     ._= =}       : or (at your option) any later version.
11    .%+i>       _;_.
12    .i_,=:_.      -<s. This library is distributed in the hope that
13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14    : ..    .:,     . . . without even the implied warranty of
15    =_        +     =;=| MERCHANTABILITY or FITNESS FOR A
16  _.=:.       :    :=>: PARTICULAR PURPOSE. See the GNU
17..}^=.=       =       ; Library General Public License for more
18++=   -.     .     .: details.
19 :     =  ...= . :.=-
20 -.   .:....=;==+<; You should have received a copy of the GNU
21  -_. . .   )=.  = Library General Public License along with
22    --        :-= this library; see the file COPYING.LIB.
23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26
27*/
28
29#include "bluezapplet.h"
30#include "bluezappletimpl.h"
31
32namespace OpieTooth {
33
34 BluezAppletImpl::BluezAppletImpl() : bluetooth(0), ref(0) {
35 }
36
37 BluezAppletImpl::~BluezAppletImpl() {
38 delete bluetooth;
39 }
40
41 QWidget *BluezAppletImpl::applet( QWidget *parent ) {
42 if ( !bluetooth ) {
43 bluetooth = new BluezApplet( parent );
44 }
45 return bluetooth;
46 }
47
48 int BluezAppletImpl::position() const {
49 return 6;
50 }
51
52 QRESULT BluezAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) {
53 *iface = 0;
54 if ( uuid == IID_QUnknown ) {
55 *iface = this;
56 } else if ( uuid == IID_TaskbarApplet ) {
57 *iface = this;
58 }
59
60 if ( *iface ) {
61 (*iface)->addRef();
62 }
63 return QS_OK;
64 }
65
66 Q_EXPORT_INTERFACE() {
67 Q_CREATE_INSTANCE( BluezAppletImpl )
68 }
69
70};
71
72
diff --git a/noncore/net/opietooth/applet/bluezappletimpl.h b/noncore/net/opietooth/applet/bluezappletimpl.h
deleted file mode 100644
index 3a4faa6..0000000
--- a/noncore/net/opietooth/applet/bluezappletimpl.h
+++ b/dev/null
@@ -1,55 +0,0 @@
1/*
2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 Maximilian Reiss <max.reiss@gmx.de>
4           .>+-=
5 _;:,     .>    :=|. This library is free software; you can
6.> <,   >  .   <= redistribute it and/or modify it under
7:=1 )Y*s>-.--   : the terms of the GNU Library General Public
8.="- .-=="i,     .._ License as published by the Free Software
9 - .   .-<_>     .<> Foundation; either version 2 of the License,
10     ._= =}       : or (at your option) any later version.
11    .%+i>       _;_.
12    .i_,=:_.      -<s. This library is distributed in the hope that
13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14    : ..    .:,     . . . without even the implied warranty of
15    =_        +     =;=| MERCHANTABILITY or FITNESS FOR A
16  _.=:.       :    :=>: PARTICULAR PURPOSE. See the GNU
17..}^=.=       =       ; Library General Public License for more
18++=   -.     .     .: details.
19 :     =  ...= . :.=-
20 -.   .:....=;==+<; You should have received a copy of the GNU
21  -_. . .   )=.  = Library General Public License along with
22    --        :-= this library; see the file COPYING.LIB.
23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26
27*/
28
29#ifndef BLUEZAPPLETIMPL_H
30#define BLUEZAPPLETIMPL_H
31
32#include <qpe/taskbarappletinterface.h>
33
34namespace OpieTooth {
35
36 class BluezApplet;
37
38 class BluezAppletImpl : public TaskbarAppletInterface {
39 public:
40 BluezAppletImpl();
41 virtual ~BluezAppletImpl();
42
43 QRESULT queryInterface( const QUuid&, QUnknownInterface** );
44 Q_REFCOUNT
45
46 virtual QWidget *applet( QWidget *parent );
47 virtual int position() const;
48
49 private:
50 BluezApplet *bluetooth;
51 ulong ref;
52 };
53};
54
55#endif