author | mickeyl <mickeyl> | 2003-12-05 21:24:53 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-12-05 21:24:53 (UTC) |
commit | 650d6e3ec023759f1c6566d7562857d8dd0e8028 (patch) (unidiff) | |
tree | b028807a522b553aa4cfae8bdb6fa174f9a7fe2b | |
parent | 978b8c98ba1e206dd683b2f1f0a743b8d2ce290f (diff) | |
download | opie-650d6e3ec023759f1c6566d7562857d8dd0e8028.zip opie-650d6e3ec023759f1c6566d7562857d8dd0e8028.tar.gz opie-650d6e3ec023759f1c6566d7562857d8dd0e8028.tar.bz2 |
add some comments to Zaurus class
-rw-r--r-- | libopie/odevice.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 71ed9e4..9373ef9 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp | |||
@@ -1490,12 +1490,25 @@ int iPAQ::lightSensorResolution ( ) const | |||
1490 | * | 1490 | * |
1491 | * Zaurus | 1491 | * Zaurus |
1492 | * | 1492 | * |
1493 | **************************************************/ | 1493 | **************************************************/ |
1494 | 1494 | ||
1495 | // Check whether this device is the sharp zaurus.. | 1495 | // Check whether this device is the sharp zaurus.. |
1496 | // FIXME This gets unnecessary complicated. We should think about splitting the Zaurus | ||
1497 | // class up into individual classes. We need three classes | ||
1498 | // | ||
1499 | // Zaurus-Collie (SA-model w/ 320x240 lcd, for SL5500 and SL5000) | ||
1500 | // Zaurus-Poodle (PXA-model w/ 320x240 lcd, for SL5600) | ||
1501 | // Zaurus-Corgi (PXA-model w/ 640x480 lcd, for C700, C750, C760, and C860) | ||
1502 | // | ||
1503 | // Only question right now is: Do we really need to do it? Because as soon | ||
1504 | // as the OpenZaurus kernel is ready, there will be a unified interface for all | ||
1505 | // Zaurus models (concerning apm, backlight, buttons, etc.) | ||
1506 | // | ||
1507 | // Comments? - mickeyl. | ||
1508 | |||
1496 | bool Zaurus::isZaurus() | 1509 | bool Zaurus::isZaurus() |
1497 | { | 1510 | { |
1498 | 1511 | ||
1499 | // If the special devices by embedix exist, it is quite simple: it is a Zaurus ! | 1512 | // If the special devices by embedix exist, it is quite simple: it is a Zaurus ! |
1500 | if ( QFile::exists ( "/dev/sharp_buz" ) || QFile::exists ( "/dev/sharp_led" ) ){ | 1513 | if ( QFile::exists ( "/dev/sharp_buz" ) || QFile::exists ( "/dev/sharp_led" ) ){ |
1501 | return true; | 1514 | return true; |
@@ -1620,12 +1633,13 @@ void Zaurus::init ( ) | |||
1620 | break; | 1633 | break; |
1621 | case Model_Zaurus_SLC7x0: | 1634 | case Model_Zaurus_SLC7x0: |
1622 | // Note: need to 1) set flipstate based on physical screen orientation | 1635 | // Note: need to 1) set flipstate based on physical screen orientation |
1623 | // and 2) check to see if the user overrode the rotation direction | 1636 | // and 2) check to see if the user overrode the rotation direction |
1624 | // using appearance, and if so, remove that item from the Config to | 1637 | // using appearance, and if so, remove that item from the Config to |
1625 | // ensure the rotate applet flips us back to the previous state. | 1638 | // ensure the rotate applet flips us back to the previous state. |
1639 | // treke said he has patches for detecting the phys. so where are they, treke? -mickeyl. | ||
1626 | if ( flipstate ) { | 1640 | if ( flipstate ) { |
1627 | // 480x640 | 1641 | // 480x640 |
1628 | d-> m_rotation = Rot0; | 1642 | d-> m_rotation = Rot0; |
1629 | d-> m_direction = CW; | 1643 | d-> m_direction = CW; |
1630 | } else { | 1644 | } else { |
1631 | // 640x480 | 1645 | // 640x480 |
@@ -1933,12 +1947,15 @@ bool Zaurus::setSoftSuspend ( bool soft ) | |||
1933 | return res; | 1947 | return res; |
1934 | } | 1948 | } |
1935 | 1949 | ||
1936 | 1950 | ||
1937 | bool Zaurus::setDisplayBrightness ( int bright ) | 1951 | bool Zaurus::setDisplayBrightness ( int bright ) |
1938 | { | 1952 | { |
1953 | // FIXME The C7x0 have a proc-interface (/proc/drivers/corgi-bl) which | ||
1954 | // is nice to use. Currently it exposes 16+1 levels. Implement this! | ||
1955 | // (or wait for kergoth unifying the interfaces in the OpenZaurus kernel.) | ||
1939 | bool res = false; | 1956 | bool res = false; |
1940 | int fd; | 1957 | int fd; |
1941 | 1958 | ||
1942 | if ( bright > 255 ) | 1959 | if ( bright > 255 ) |
1943 | bright = 255; | 1960 | bright = 255; |
1944 | if ( bright < 0 ) | 1961 | if ( bright < 0 ) |