summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ChangeLog1
-rw-r--r--libopie2/opiecore/device/odevice_motorola_ezx.cpp55
2 files changed, 12 insertions, 44 deletions
diff --git a/ChangeLog b/ChangeLog
index 490ed17..d0bbcb9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,41 +1,42 @@
1 2006-??-??Opie 1.2.3 1 2006-??-??Opie 1.2.3
2 2
3 3
4 New Features 4 New Features
5 ------------ 5 ------------
6 6
7 Fixed Bugs 7 Fixed Bugs
8 ---------- 8 ----------
9 * n.a.- Improved iPAQ support in ODevice and low-level applets (Slavek Banko) 9 * n.a.- Improved iPAQ support in ODevice and low-level applets (Slavek Banko)
10 * n.a. - Improved platform support for the Motorola EZX platform (mickeyl)
10 11
11 Internal 12 Internal
12 -------- 13 --------
13 14
14 2006-05-28Opie 1.2.2 15 2006-05-28Opie 1.2.2
15 16
16 17
17 New Features 18 New Features
18 ------------ 19 ------------
19 * Appearance: Added configuration options to set smallIconSize, bigIconSize, useBigPixmaps (hrw, drw) 20 * Appearance: Added configuration options to set smallIconSize, bigIconSize, useBigPixmaps (hrw, drw)
20 * Opie-Notes: Notes application based on NoteZ (hrw) 21 * Opie-Notes: Notes application based on NoteZ (hrw)
21 * Opie-PackageManager: Added two configuration options: "Force recursive", "Verbose fetch" (hrw) 22 * Opie-PackageManager: Added two configuration options: "Force recursive", "Verbose fetch" (hrw)
22 * Added platform support for HTC Universal (ljp) 23 * Added platform support for HTC Universal (ljp)
23 * Made Opie-Bluetooth subsystem actually usable (korovkin) 24 * Made Opie-Bluetooth subsystem actually usable (korovkin)
24 * Added platform support for the Motorola EZX platform (mickeyl) 25 * Added platform support for the Motorola EZX platform (mickeyl)
25 26
26 Fixed Bugs 27 Fixed Bugs
27 ---------- 28 ----------
28 * #1695 - Date selector use too small fontsize on VGA screen (hrw) 29 * #1695 - Date selector use too small fontsize on VGA screen (hrw)
29 * #1686 - opie-console lack UI setting for switching scrollbar (hrw) 30 * #1686 - opie-console lack UI setting for switching scrollbar (hrw)
30 * #1647 - Opie-console doesn't respect scroll-bar on left side (hrw) 31 * #1647 - Opie-console doesn't respect scroll-bar on left side (hrw)
31 * #1624 - Button settngs changes are applied only after restart (hrw) 32 * #1624 - Button settngs changes are applied only after restart (hrw)
32 * #1492 - Backup and Restore does not show list of backups to restore on start (hrw) 33 * #1492 - Backup and Restore does not show list of backups to restore on start (hrw)
33 * n.a. - remove hardcoded font size from wellenreiter (hrw) 34 * n.a. - remove hardcoded font size from wellenreiter (hrw)
34 * n.a. - added patch to build Qt/E 2.3.10 with gcc 4.x.x (hrw) 35 * n.a. - added patch to build Qt/E 2.3.10 with gcc 4.x.x (hrw)
35 * n.a. - make blue-pin UI resizable to looks good in any resolution (hrw) 36 * n.a. - make blue-pin UI resizable to looks good in any resolution (hrw)
36 * n.a. - fix a problem with vCard send to Sony Ericsson k600i (ar) 37 * n.a. - fix a problem with vCard send to Sony Ericsson k600i (ar)
37 * n.a. - add a patch to build Qt/E 2.3.10 on amd64 with gcc 4.x.x (ar) 38 * n.a. - add a patch to build Qt/E 2.3.10 on amd64 with gcc 4.x.x (ar)
38 * n.a. - Opie-console fallback to FixedFont settings from qpe.conf in config (hrw) 39 * n.a. - Opie-console fallback to FixedFont settings from qpe.conf in config (hrw)
39 * n.a. - Update version in About applet (hrw) 40 * n.a. - Update version in About applet (hrw)
40 * n.a. - add firstusage and background pictures for 480x640 devices (mickeyl) 41 * n.a. - add firstusage and background pictures for 480x640 devices (mickeyl)
41 * n.a. - many bluetooth fixes (korovkin) 42 * n.a. - many bluetooth fixes (korovkin)
diff --git a/libopie2/opiecore/device/odevice_motorola_ezx.cpp b/libopie2/opiecore/device/odevice_motorola_ezx.cpp
index 69256dd..eed81ac 100644
--- a/libopie2/opiecore/device/odevice_motorola_ezx.cpp
+++ b/libopie2/opiecore/device/odevice_motorola_ezx.cpp
@@ -187,130 +187,97 @@ QValueList <OLed> Motorola_EZX::ledList() const
187{ 187{
188 QValueList <OLed> vl; 188 QValueList <OLed> vl;
189 vl << Led_Mail; 189 vl << Led_Mail;
190 return vl; 190 return vl;
191} 191}
192 192
193QValueList <OLedState> Motorola_EZX::ledStateList( OLed l ) const 193QValueList <OLedState> Motorola_EZX::ledStateList( OLed l ) const
194{ 194{
195 QValueList <OLedState> vl; 195 QValueList <OLedState> vl;
196 196
197 if ( l == Led_Mail ) 197 if ( l == Led_Mail )
198 vl << Led_Off << Led_On << Led_BlinkSlow; 198 vl << Led_Off << Led_On << Led_BlinkSlow;
199 return vl; 199 return vl;
200} 200}
201 201
202OLedState Motorola_EZX::ledState( OLed which ) const 202OLedState Motorola_EZX::ledState( OLed which ) const
203{ 203{
204 if ( which == Led_Mail ) 204 if ( which == Led_Mail )
205 return m_leds [0]; 205 return m_leds [0];
206 else 206 else
207 return Led_Off; 207 return Led_Off;
208} 208}
209 209
210bool Motorola_EZX::setLedState( OLed which, OLedState st ) 210bool Motorola_EZX::setLedState( OLed which, OLedState st )
211{ 211{
212 // Currently not supported 212 // Currently not supported
213 qDebug( "Motorola_EZX::setLedState: ODevice handling not yet implemented" ); 213 qDebug( "Motorola_EZX::setLedState: ODevice handling not yet implemented" );
214 return false; 214 return false;
215} 215}
216 216
217int Motorola_EZX::displayBrightnessResolution() const 217int Motorola_EZX::displayBrightnessResolution() const
218{ 218{
219 // Currently not supported
220 qDebug( "Motorola_EZX::displayBrightnessResolution: ODevice handling not yet implemented" );
221 return 100;
222
223#if 0
224 int res = 1; 219 int res = 1;
225 if (m_embedix) 220 int fd = ::open( m_backlightdev + "max_brightness", O_RDONLY|O_NONBLOCK );
226 { 221 if ( fd )
227 int fd = ::open( SHARP_FL_IOCTL_DEVICE, O_RDWR|O_NONBLOCK );
228 if ( fd )
229 {
230 int value = ::ioctl( fd, SHARP_FL_IOCTL_GET_STEP, 0 );
231 ::close( fd );
232 return value ? value : res;
233 }
234 }
235 else
236 { 222 {
237 int fd = ::open( m_backlightdev + "max_brightness", O_RDONLY|O_NONBLOCK ); 223 char buf[100];
238 if ( fd ) 224 if ( ::read( fd, &buf[0], sizeof buf ) ) ::sscanf( &buf[0], "%d", &res );
239 { 225 ::close( fd );
240 char buf[100];
241 if ( ::read( fd, &buf[0], sizeof buf ) ) ::sscanf( &buf[0], "%d", &res );
242 ::close( fd );
243 }
244 } 226 }
245 return res; 227 return res;
246#endif
247} 228}
248 229
249bool Motorola_EZX::setDisplayBrightness( int bright ) 230bool Motorola_EZX::setDisplayBrightness( int bright )
250{ 231{
251 qDebug( "Motorola_EZX::setDisplayBrightness( %d )", bright ); 232 qDebug( "Motorola_EZX::setDisplayBrightness( %d )", bright );
252 return false; 233 return false;
253 234
254#if 0
255 bool res = false; 235 bool res = false;
256 236
257 if ( bright > 255 ) bright = 255; 237 if ( bright > 255 ) bright = 255;
258 if ( bright < 0 ) bright = 0; 238 if ( bright < 0 ) bright = 0;
259 239
260 int numberOfSteps = displayBrightnessResolution(); 240 int numberOfSteps = displayBrightnessResolution();
261 int val = ( bright == 1 ) ? 1 : ( bright * numberOfSteps ) / 255; 241 int val = ( bright == 1 ) ? 1 : ( bright * numberOfSteps ) / 255;
262 242
263 if ( m_embedix ) 243 int fd = ::open( m_backlightdev + "brightness", O_WRONLY|O_NONBLOCK );
264 { 244 if ( fd )
265 int fd = ::open( SHARP_FL_IOCTL_DEVICE, O_WRONLY|O_NONBLOCK );
266 if ( fd )
267 {
268 res = ( ::ioctl( fd, SHARP_FL_IOCTL_STEP_CONTRAST, val ) == 0 );
269 ::close( fd );
270 }
271 }
272 else
273 { 245 {
274 int fd = ::open( m_backlightdev + "brightness", O_WRONLY|O_NONBLOCK ); 246 char buf[100];
275 if ( fd ) 247 int len = ::snprintf( &buf[0], sizeof buf, "%d", val );
276 { 248 res = ( ::write( fd, &buf[0], len ) == 0 );
277 char buf[100]; 249 ::close( fd );
278 int len = ::snprintf( &buf[0], sizeof buf, "%d", val );
279 res = ( ::write( fd, &buf[0], len ) == 0 );
280 ::close( fd );
281 }
282 } 250 }
283 return res; 251 return res;
284#endif
285} 252}
286 253
287bool Motorola_EZX::setDisplayStatus( bool on ) 254bool Motorola_EZX::setDisplayStatus( bool on )
288{ 255{
289 bool res = false; 256 bool res = false;
290 int fd = ::open( m_backlightdev + "power", O_WRONLY|O_NONBLOCK ); 257 int fd = ::open( m_backlightdev + "power", O_WRONLY|O_NONBLOCK );
291 if ( fd ) 258 if ( fd )
292 { 259 {
293 char buf[10]; 260 char buf[10];
294 buf[0] = on ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN; 261 buf[0] = on ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN;
295 buf[1] = '\0'; 262 buf[1] = '\0';
296 res = ( ::write( fd, &buf[0], 2 ) == 0 ); 263 res = ( ::write( fd, &buf[0], 2 ) == 0 );
297 ::close( fd ); 264 ::close( fd );
298 } 265 }
299 return res; 266 return res;
300} 267}
301 268
302void Motorola_EZX::systemMessage( const QCString &msg, const QByteArray & ) 269void Motorola_EZX::systemMessage( const QCString &msg, const QByteArray & )
303{ 270{
304 if ( msg == "deviceButtonMappingChanged()" ) { 271 if ( msg == "deviceButtonMappingChanged()" ) {
305 reloadButtonMapping(); 272 reloadButtonMapping();
306 } 273 }
307} 274}
308 275
309bool Motorola_EZX::suspend() { 276bool Motorola_EZX::suspend() {
310 if ( !isQWS( ) ) // only qwsserver is allowed to suspend 277 if ( !isQWS( ) ) // only qwsserver is allowed to suspend
311 return false; 278 return false;
312 279
313 bool res = false; 280 bool res = false;
314 QCopChannel::send( "QPE/System", "aboutToSuspend()" ); 281 QCopChannel::send( "QPE/System", "aboutToSuspend()" );
315 282
316 struct timeval tvs, tvn; 283 struct timeval tvs, tvn;