author | zecke <zecke> | 2005-08-10 19:43:26 (UTC) |
---|---|---|
committer | zecke <zecke> | 2005-08-10 19:43:26 (UTC) |
commit | 3d5d7e3ca64f41651cb18c2e1833e2221a912d2d (patch) (unidiff) | |
tree | 56bdafb2961e4da1c6cec792a84763dd0df2f176 | |
parent | 2693819adb7472aacf78cc4202ba7ee61b280b49 (diff) | |
download | opie-3d5d7e3ca64f41651cb18c2e1833e2221a912d2d.zip opie-3d5d7e3ca64f41651cb18c2e1833e2221a912d2d.tar.gz opie-3d5d7e3ca64f41651cb18c2e1833e2221a912d2d.tar.bz2 |
libopie2/opiecore/odevice.cpp:
-Patch by "Pawel Kolodziejski" <pablo@omega.xtr.net.pl> to instantiate
the Asus MyPal implementation
-rw-r--r-- | libopie2/opiecore/device/odevice.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie2/opiecore/device/odevice.cpp b/libopie2/opiecore/device/odevice.cpp index 56f305f..62bb68a 100644 --- a/libopie2/opiecore/device/odevice.cpp +++ b/libopie2/opiecore/device/odevice.cpp | |||
@@ -21,24 +21,25 @@ | |||
21 | -. .:....=;==+<; You should have received a copy of the GNU | 21 | -. .:....=;==+<; You should have received a copy of the GNU |
22 | -_. . . )=. = Library General Public License along with | 22 | -_. . . )=. = Library General Public License along with |
23 | -- :-=` this library; see the file COPYING.LIB. | 23 | -- :-=` this library; see the file COPYING.LIB. |
24 | If not, write to the Free Software Foundation, | 24 | If not, write to the Free Software Foundation, |
25 | Inc., 59 Temple Place - Suite 330, | 25 | Inc., 59 Temple Place - Suite 330, |
26 | Boston, MA 02111-1307, USA. | 26 | Boston, MA 02111-1307, USA. |
27 | 27 | ||
28 | */ | 28 | */ |
29 | 29 | ||
30 | 30 | ||
31 | #include "odevice_beagle.h" | 31 | #include "odevice_beagle.h" |
32 | #include "odevice_ipaq.h" | 32 | #include "odevice_ipaq.h" |
33 | #include "odevice_mypal.h" | ||
33 | #include "odevice_jornada.h" | 34 | #include "odevice_jornada.h" |
34 | #include "odevice_ramses.h" | 35 | #include "odevice_ramses.h" |
35 | #include "odevice_simpad.h" | 36 | #include "odevice_simpad.h" |
36 | #include "odevice_yopy.h" | 37 | #include "odevice_yopy.h" |
37 | #include "odevice_zaurus.h" | 38 | #include "odevice_zaurus.h" |
38 | #include "odevice_genuineintel.h" | 39 | #include "odevice_genuineintel.h" |
39 | 40 | ||
40 | /* QT */ | 41 | /* QT */ |
41 | #include <qapplication.h> | 42 | #include <qapplication.h> |
42 | #include <qfile.h> | 43 | #include <qfile.h> |
43 | #include <qtextstream.h> | 44 | #include <qtextstream.h> |
44 | #include <qwindowsystem_qws.h> | 45 | #include <qwindowsystem_qws.h> |
@@ -129,24 +130,25 @@ ODevice *ODevice::inst() | |||
129 | { | 130 | { |
130 | QTextStream s( &f ); | 131 | QTextStream s( &f ); |
131 | while ( !s.atEnd() ) | 132 | while ( !s.atEnd() ) |
132 | { | 133 | { |
133 | QString line; | 134 | QString line; |
134 | line = s.readLine(); | 135 | line = s.readLine(); |
135 | if ( line.startsWith( "Hardware" ) ) | 136 | if ( line.startsWith( "Hardware" ) ) |
136 | { | 137 | { |
137 | qDebug( "ODevice() - found '%s'", (const char*) line ); | 138 | qDebug( "ODevice() - found '%s'", (const char*) line ); |
138 | cpu_info = line; | 139 | cpu_info = line; |
139 | if ( line.contains( "sharp", false ) ) dev = new Internal::Zaurus(); | 140 | if ( line.contains( "sharp", false ) ) dev = new Internal::Zaurus(); |
140 | else if ( line.contains( "ipaq", false ) ) dev = new Internal::iPAQ(); | 141 | else if ( line.contains( "ipaq", false ) ) dev = new Internal::iPAQ(); |
142 | else if ( line.contains( "mypal", false ) ) dev = new Internal::MyPal(); | ||
141 | else if ( line.contains( "simpad", false ) ) dev = new Internal::SIMpad(); | 143 | else if ( line.contains( "simpad", false ) ) dev = new Internal::SIMpad(); |
142 | else if ( line.contains( "jornada", false ) ) dev = new Internal::Jornada(); | 144 | else if ( line.contains( "jornada", false ) ) dev = new Internal::Jornada(); |
143 | else if ( line.contains( "ramses", false ) ) dev = new Internal::Ramses(); | 145 | else if ( line.contains( "ramses", false ) ) dev = new Internal::Ramses(); |
144 | else if ( line.contains( "Tradesquare.NL", false ) ) dev = new Internal::Beagle(); | 146 | else if ( line.contains( "Tradesquare.NL", false ) ) dev = new Internal::Beagle(); |
145 | else qWarning( "ODevice() - unknown hardware - using default." ); | 147 | else qWarning( "ODevice() - unknown hardware - using default." ); |
146 | break; | 148 | break; |
147 | } else if ( line.startsWith( "vendor_id" ) ) { | 149 | } else if ( line.startsWith( "vendor_id" ) ) { |
148 | qDebug( "ODevice() - found '%s'", (const char*) line ); | 150 | qDebug( "ODevice() - found '%s'", (const char*) line ); |
149 | cpu_info = line; | 151 | cpu_info = line; |
150 | if( line.contains( "genuineintel", false ) ) { | 152 | if( line.contains( "genuineintel", false ) ) { |
151 | dev = new Internal::GenuineIntel(); | 153 | dev = new Internal::GenuineIntel(); |
152 | break; | 154 | break; |