summaryrefslogtreecommitdiff
path: root/libopie/odevice.cpp
authorkergoth <kergoth>2002-12-12 00:28:48 (UTC)
committer kergoth <kergoth>2002-12-12 00:28:48 (UTC)
commitcb783a8ddbeb6c85481c5b1a807f21be83817255 (patch) (unidiff)
treeba7823d58f7cf34d8fffd5818ea5e1ff72432182 /libopie/odevice.cpp
parent474b8efcacfffb04bf72f486eca7b1455a2b81dd (diff)
downloadopie-cb783a8ddbeb6c85481c5b1a807f21be83817255.zip
opie-cb783a8ddbeb6c85481c5b1a807f21be83817255.tar.gz
opie-cb783a8ddbeb6c85481c5b1a807f21be83817255.tar.bz2
Proper zaurus model checking for ODevice
Diffstat (limited to 'libopie/odevice.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/odevice.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp
index bc43c52..a33d4ad 100644
--- a/libopie/odevice.cpp
+++ b/libopie/odevice.cpp
@@ -715,6 +715,4 @@ int iPAQ::lightSensorResolution ( ) const
715void Zaurus::init ( ) 715void Zaurus::init ( )
716{ 716{
717 d-> m_modelstr = "Zaurus SL5000";
718 d-> m_model = Model_Zaurus_SL5000;
719 d-> m_vendorstr = "Sharp"; 717 d-> m_vendorstr = "Sharp";
720 d-> m_vendor = Vendor_Sharp; 718 d-> m_vendor = Vendor_Sharp;
@@ -740,4 +738,21 @@ void Zaurus::init ( )
740 } 738 }
741 739
740 f. setName ( "/proc/deviceinfo/product" );
741 if ( f. open ( IO_ReadOnly ) ) {
742 QTextStream ts ( &f );
743 QString model = ts. readLine ( );
744 f. close ( );
745 if ( model == "SL-5000D" ) {
746 d-> m_model = Model_Zaurus_SL5000;
747 d-> m_modelstr = "Zaurus SL-5000D";
748 } else if ( model == "SL-5500" ) {
749 d-> m_model = Model_Zaurus_SL5500;
750 d-> m_modelstr = "Zaurus SL-5500";
751 }
752 }
753 else {
754 d-> m_model = Model_Zaurus_SL5000;
755 d-> m_modelstr = "Zaurus SL-5000D (unverified)";
756 }
742 757
743 m_leds [0] = Led_Off; 758 m_leds [0] = Led_Off;