summaryrefslogtreecommitdiffstats
path: root/tools/qtestlib/wince/cetest/main.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-05 09:11:52 (GMT)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-05 10:48:53 (GMT)
commitc379e151adc9c781f8f1e3d33cf68b3137868185 (patch)
treea6f9affb85d7954ee1495bacce0567d1d409d5c1 /tools/qtestlib/wince/cetest/main.cpp
parente3e1ea6c52473f120f8baee57e189ddc1c8671cb (diff)
downloadQt-c379e151adc9c781f8f1e3d33cf68b3137868185.zip
Qt-c379e151adc9c781f8f1e3d33cf68b3137868185.tar.gz
Qt-c379e151adc9c781f8f1e3d33cf68b3137868185.tar.bz2
cetest: add support for cetcpsync (our simple ActiveSync replacement)
Reviewed-By: mauricek
Diffstat (limited to 'tools/qtestlib/wince/cetest/main.cpp')
-rw-r--r--tools/qtestlib/wince/cetest/main.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/qtestlib/wince/cetest/main.cpp b/tools/qtestlib/wince/cetest/main.cpp
index 782f6d9..e0e475c 100644
--- a/tools/qtestlib/wince/cetest/main.cpp
+++ b/tools/qtestlib/wince/cetest/main.cpp
@@ -39,7 +39,12 @@
**
****************************************************************************/
-#include "activesyncconnection.h"
+#ifdef QT_CETEST_NO_ACTIVESYNC
+# include "cetcpsyncconnection.h"
+#else
+# include "activesyncconnection.h"
+#endif
+
#include "deployment.h"
#include <option.h>
#include <project.h>
@@ -290,7 +295,11 @@ int main(int argc, char **argv)
projectDeploymentList.append(CopyItem(TestConfiguration::localExecutable , TestConfiguration::remoteExecutable));
// deploy
+#ifdef QT_CETEST_NO_ACTIVESYNC
+ CeTcpSyncConnection connection;
+#else
ActiveSyncConnection connection;
+#endif
if (!connection.connect()) {
cout << "Error: Could not connect to device!" << endl;
return -1;