summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/device/odevice.cpp
authorllornkcor <llornkcor>2006-04-23 20:19:27 (UTC)
committer llornkcor <llornkcor>2006-04-23 20:19:27 (UTC)
commit226ccbb7d87a54411d640432f0ac19cbd942aa01 (patch) (unidiff)
tree6d343d37cc3e9c2c4b9a8148a8f7cb32d110c322 /libopie2/opiecore/device/odevice.cpp
parentfce7a143353e2bdd41d878c6f0a1224e0f2a158e (diff)
downloadopie-226ccbb7d87a54411d640432f0ac19cbd942aa01.zip
opie-226ccbb7d87a54411d640432f0ac19cbd942aa01.tar.gz
opie-226ccbb7d87a54411d640432f0ac19cbd942aa01.tar.bz2
add support for HTC Universal device
Diffstat (limited to 'libopie2/opiecore/device/odevice.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libopie2/opiecore/device/odevice.cpp b/libopie2/opiecore/device/odevice.cpp
index 7b99eb4..c6e031f 100644
--- a/libopie2/opiecore/device/odevice.cpp
+++ b/libopie2/opiecore/device/odevice.cpp
@@ -34,12 +34,13 @@
34#include "odevice_jornada.h" 34#include "odevice_jornada.h"
35#include "odevice_ramses.h" 35#include "odevice_ramses.h"
36#include "odevice_simpad.h" 36#include "odevice_simpad.h"
37#include "odevice_yopy.h" 37#include "odevice_yopy.h"
38#include "odevice_zaurus.h" 38#include "odevice_zaurus.h"
39#include "odevice_genuineintel.h" 39#include "odevice_genuineintel.h"
40#include "odevice_htc.h"
40 41
41/* QT */ 42/* QT */
42#include <qapplication.h> 43#include <qapplication.h>
43#include <qfile.h> 44#include <qfile.h>
44#include <qtextstream.h> 45#include <qtextstream.h>
45#include <qwindowsystem_qws.h> 46#include <qwindowsystem_qws.h>
@@ -141,12 +142,14 @@ ODevice *ODevice::inst()
141 else if ( line.contains( "ipaq", false ) ) dev = new Internal::iPAQ(); 142 else if ( line.contains( "ipaq", false ) ) dev = new Internal::iPAQ();
142 else if ( line.contains( "mypal", false ) ) dev = new Internal::MyPal(); 143 else if ( line.contains( "mypal", false ) ) dev = new Internal::MyPal();
143 else if ( line.contains( "simpad", false ) ) dev = new Internal::SIMpad(); 144 else if ( line.contains( "simpad", false ) ) dev = new Internal::SIMpad();
144 else if ( line.contains( "jornada", false ) ) dev = new Internal::Jornada(); 145 else if ( line.contains( "jornada", false ) ) dev = new Internal::Jornada();
145 else if ( line.contains( "ramses", false ) ) dev = new Internal::Ramses(); 146 else if ( line.contains( "ramses", false ) ) dev = new Internal::Ramses();
146 else if ( line.contains( "Tradesquare.NL", false ) ) dev = new Internal::Beagle(); 147 else if ( line.contains( "Tradesquare.NL", false ) ) dev = new Internal::Beagle();
148 else if ( line.contains( "HTC", false ) ) dev = new Internal::HTC();
149
147 else qWarning( "ODevice() - unknown hardware - using default." ); 150 else qWarning( "ODevice() - unknown hardware - using default." );
148 break; 151 break;
149 } else if ( line.startsWith( "vendor_id" ) ) { 152 } else if ( line.startsWith( "vendor_id" ) ) {
150 qDebug( "ODevice() - found '%s'", (const char*) line ); 153 qDebug( "ODevice() - found '%s'", (const char*) line );
151 cpu_info = line; 154 cpu_info = line;
152 if( line.contains( "genuineintel", false ) ) { 155 if( line.contains( "genuineintel", false ) ) {