summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2004-10-22 06:06:15 (UTC)
committer llornkcor <llornkcor>2004-10-22 06:06:15 (UTC)
commit0ad51ab1359feaf04c3be229250a4e2e93892564 (patch) (side-by-side diff)
tree4e5a55814f2ab401b4c54cb4bd7a47ee347bf4ee
parent84b7a20c67226aa4305ad0cb7c05e2507ca0cc0e (diff)
downloadopie-0ad51ab1359feaf04c3be229250a4e2e93892564.zip
opie-0ad51ab1359feaf04c3be229250a4e2e93892564.tar.gz
opie-0ad51ab1359feaf04c3be229250a4e2e93892564.tar.bz2
upon further investigation, QD does indeed do different stuff for different version strings.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/server.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/core/launcher/server.cpp b/core/launcher/server.cpp
index 0eaebcf..42186d3 100644
--- a/core/launcher/server.cpp
+++ b/core/launcher/server.cpp
@@ -384,20 +384,25 @@ void Server::systemMsg(const QCString &msg, const QByteArray &data)
e << home;
int locked = (int) ServerApplication::screenLocked();
e << locked;
#endif
} else if ( msg == "sendVersionInfo()" ) {
/*
- * QtopiaDesktop relies on the major number
- * to start with 1.
- * we need to fake at least 1.4 to be able
- * to sync with QtopiaDesktop1.6
+ * @&$*! Qtopiadesktop relies on the major number
+ * to start with 1. (or 2 as the case of version 2.1 will be)
+ * we need to fake 1.7 to be able
+ * to sync with Qtopiadesktop 1.7.
+ * We'll send it Opie's version in the platform string for now,
+ * until such time when QD gets rewritten correctly.
*/
QCopEnvelope e( "QPE/Desktop", "versionInfo(QString,QString)" );
- QString opiename = "Opie";
- e << QString(QPE_VERSION) << opiename;
+
+ QString opiename = "Opie "+QString(QPE_VERSION);
+ QString QDVersion="1.7";
+ e << QDVersion << opiename;
+
} else if ( msg == "sendCardInfo()" ) {
#ifndef QT_NO_COP
QCopEnvelope e( "QPE/Desktop", "cardInfo(QString)" );
#endif
storage->update();
const QList<FileSystem> &fs = storage->fileSystems();